/**
* 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);
}
GradientEditor.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:Progetto-C
作者:
评论列表
文章目录