使用JWindow而不是JFrame就没有那几个按钮了,例如:import javax.swing.*;class Test extends JWindow
{
JLabel label;
Test()
{
label=new JLabel("Text in here");
getContentPane().add(label);
}
public static void main(String[] args)
{
Test test=new Test();
test.setSize(200,200);
test.show(); //显示窗口 try
{
Thread.sleep(2000);
}
catch(InterruptedException e)
{}
test.dispose(); //三秒后关闭
System.exit(0);
}
}
{
JLabel label;
Test()
{
label=new JLabel("Text in here");
getContentPane().add(label);
}
public static void main(String[] args)
{
Test test=new Test();
test.setSize(200,200);
test.show(); //显示窗口 try
{
Thread.sleep(2000);
}
catch(InterruptedException e)
{}
test.dispose(); //三秒后关闭
System.exit(0);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货