java图形用户界面

来源:百度知道 编辑:UC知道 时间:2024/05/09 13:57:36
创建一个可以移动,改变大小,最大化,可变成图标,包含内容面板对象的且可以关闭的JFrame窗口类"题8_3".

老大,这些属性都是JFrame的默认值吧,不明白其中的可变成图标什么意思?莫非是传说中的最小化?
import javax.swing.*;
class MyFrame extends JFrame{
JLable msg;
MyFrame(){
super("你要的是这种东西?");
this.setBounds(100,100,100,100);
msg=new JLabel("莫非这是你要的东西?");
this.add(msg,BorderLayout.CENTER);
//this.add(msg);
this.setVisible(true);
}
public static void main(String [] args){
new MyFrame();
}
}

你是真不懂?