1.设置GUI左上角的图标的方法:
Image a = this.getToolkit().getImage("image//1.gif");
this.setIconImage(a);
2.this.setUndecorated(true);
this.getRootPane().setWindowDecorationStyle(JRootPane.COLOR_CHOOSER_DIALOG);
this.setUndecorated(true);
this.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
其中类似this.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
的方法还有其他的详见帮助文档中的相关说明,下面截图查找: