java写字板字体文件类源代码

时间:2014-06-12 08:47:19
【文件属性】:

文件名称:java写字板字体文件类源代码

文件大小:4KB

文件格式:JAVA

更新时间:2014-06-12 08:47:19

java 写字板 字体文件

public class FontFrame extends JOptionPane { private JLabel font_label, style_label, size_label; private JTextField font_text,style_text, size_text; private JList font_list, type_list, size_list; private JScrollPane font, style, size; private JLabel sample; private String[] font_style = new String[] { "常规", "粗体", "倾斜", "粗体 倾斜" }; private String[] fontNames = GraphicsEnvironment .getLocalGraphicsEnvironment().getAvailableFontFamilyNames(); private String[] fontSize = new String[] { "8", "9", "10", "11", "12", "14", "16", "18", "20", "26", "30", "34", "38", "42" }; @SuppressWarnings("static-access") public FontFrame(MyNotepad myNotepad){ @SuppressWarnings("unused") int i = this.showConfirmDialog(myNotepad, createJPanel(), "字体", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); initAction(myNotepad,i); }


网友评论

  • 不错 基本实现了一般功能