最终效果:
一,主程序类:
package my;
//此类用于设置窗口的公共属性
public class SwingDemo {
public static void main(String[] args) {
MyFrame frame = new MyFrame("Swing");
frame.setVisible(true);
frame.setSize(300,400
最终效果:
一,主程序类:
package my;
//此类用于设置窗口的公共属性
public class SwingDemo {
public static void main(String[] args) {
MyFrame frame = new MyFrame("Swing");
frame.setVisible(true);
frame.setSize(300,400