Java Reference
In-Depth Information
L ISTING 13.3 Continued
DefaultEditorKit.pasteAction, “Paste”,
“toolbarButtonGraphics/general/Paste24.gif”,
};
private String[] familyActionNames = new String[] {
“font-family-SansSerif”, “SanSerif”,
“font-family-Monospaced”, “Monospaced”,
“font-family-Serif”, “Serif”,
};
private String[] styleActionNames = new String[] {
“font-italic”, “Italic”, “toolbarButtonGraphics/text/Italic24.gif”,
“font-bold”, “Bold”, “toolbarButtonGraphics/text/Bold24.gif”,
“font-underline”, “Underline”,
“toolbarButtonGraphics/text/Underline24.gif”,
};
private String[] sizeActionNames = new String[] {
“font-size-8”, “8”, “font-size-10”, “10”,
“font-size-12”, “12”, “font-size-14”, “14”,
“font-size-16”, “16”, “font-size-18”, “18”,
“font-size-24”, “24”, “font-size-36”, “36”,
“font-size-48”, “48”,
};
/**
* Constructor
*/
public MainFrame() {
setTitle(GeneralUtilities.getMsg(“application.title”));
setIconImage(GeneralUtilities.getImageIcon(“images/textuale16.gif”).getImage())
;
addImageButton.setIcon(GeneralUtilities.getImageIcon(“images/AddDraw24.gif”));
editor = new StyledEditorKit();
editor.install(textPane);
getContentPane().setLayout(borderLayout1);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(WindowEvent e) {
close();
}
});
getContentPane().add(jScrollPane1, BorderLayout.CENTER);
Search WWH ::




Custom Search