GradientEditor.java 文件源码

java
阅读 37 收藏 0 点赞 0 评论 0

项目:Progetto-C 作者:
/**
 * Simple test case for the gradient painter
 * 
 * @param argv The arguments supplied at the command line
 */
public static void main(String[] argv) {
    JFrame frame = new JFrame();
    JPanel panel = new JPanel();
    panel.setBorder(BorderFactory.createTitledBorder("Gradient"));
    panel.setLayout(null);
    frame.setContentPane(panel);

    GradientEditor editor = new GradientEditor();
    editor.setBounds(10,15,270,100);
    panel.add(editor);
    frame.setSize(300,200);

    frame.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
            System.exit(0);
        }
    });

    frame.setVisible(true);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号