add note about desktopManager
authoramwaterhouse <Andrew Waterhouse>
Thu, 7 Apr 2005 10:41:22 +0000 (10:41 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 7 Apr 2005 10:41:22 +0000 (10:41 +0000)
src/jalview/gui/Desktop.java

index 6baa2bb..b2c86bb 100755 (executable)
@@ -47,11 +47,16 @@ public class Desktop extends jalview.jbgui.GDesktop implements DropTargetListene
     setTitle("Jalview 2005");\r
     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r
     desktop = new JDesktopPane();\r
-    desktop.setBackground(new Color(220,220,230));\r
+ //   desktop.setBackground(Color.white);\r
     setContentPane(desktop);\r
     desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);\r
+\r
+\r
+    // This line prevents Windows Look&Feel resizing all new windows to maximum\r
+    // if previous window was maximised\r
     desktop.setDesktopManager( new DefaultDesktopManager() );\r
 \r
+\r
     Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r
     String x = jalview.bin.Cache.getProperty("SCREEN_X");\r
     String y = jalview.bin.Cache.getProperty("SCREEN_Y");\r