[分享]时钟万年历代码,供大家学习GUI
如题...
[此贴子已经被作者于2006-5-6 13:51:49编辑过]
[此贴子已经被作者于2006-5-6 13:51:49编辑过]
public static void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)
JFrame 是否应该具有当前外观为其提供的 Window 装饰(如边框、关闭窗口的小部件、标题等等)的提示。如果 defaultLookAndFeelDecorated 为 true,则当前的 LookAndFeel 支持提供窗口装饰,并且当前的窗口管理器支持未装饰的窗口,然后新创建的 JFrame 将具有当前 LookAndFeel 为其提供的 Window 装饰。否则,新创建的 JFrame 将具有当前窗口管理器为其提供的 Window 装饰。
执行以下操作可在单个 JFrame 上获得相同的效果:
JFrame frame = new JFrame();
frame.setUndecorated(true);
frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
