2016-11-11 47 views
0

最近開始使用jframe。 我的應用程序由2個jframes登錄和菜單組成。登錄成功時 菜單jframe被實例化。 與jtattoo我使用紋理拉夫,所以我可以自定義一切 菜單屏幕目前總是打開全屏,因爲它甚至隱藏窗口任務欄。 我希望它被最大化,但不是全屏。如何阻止jtattoo使我的第二個jframe全屏?

在登錄幀的構造函數的jtattoo代碼:

Properties props = new Properties(); 
     props.put("textureSet", "Custom"); 
     props.put("backgroundTexture", ImageHelper.loadImage("../images/f.jpg")); 
     props.put("alterBackgroundTexture",ImageHelper.loadImage("../images/RolloverTexture.gif")); 
     props.put("rolloverTexture", ImageHelper.loadImage("../images/k.gif")); 
     props.put("selectedTexture", ImageHelper.loadImage("../images/DarkBackgroundTexture.jpg")); 
     props.setProperty("buttonColorLight", "240 240 240"); 
     props.setProperty("buttonColorDark", "220 220 220");= 
     props.setProperty("centerWindowTitle", "on"); 
     TextureLookAndFeel.setCurrentTheme(props); 
     UIManager.setLookAndFeel("com.jtattoo.plaf.texture.TextureLookAndFeel"); 

回答

1

寫入setExtendedState(JFrame.MAXIMIZED_BOTH);在菜單框架的組件可見之前