Changeset 699
- Timestamp:
- 01/15/14 17:54:12 (10 years ago)
- Location:
- trunk/src/org/expeditee/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/Browser.java
r667 r699 160 160 161 161 private Browser() { 162 // Use the default values initially so we can load the profile frame163 setSizes(new Dimension(UserSettings.InitialWidth.get(),164 UserSettings.InitialHeight.get()));165 162 // center the frame on the screen 166 163 Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); … … 192 189 } 193 190 191 setSizes(new Dimension(UserSettings.InitialWidth.get(), UserSettings.InitialHeight.get())); 192 193 // set the layout to absolute layout for widgets 194 this.getContentPane().setLayout(new AbsoluteLayout()); 195 196 _mouseEventRouter = new MouseEventRouter(getJMenuBar(), 197 getContentPane()); 198 199 // enable the glasspane-for capturing all mouse events 200 this.setGlassPane(_mouseEventRouter); 201 202 this.getGlassPane().setVisible(true); 203 this.getContentPane().setBackground(Color.white); 204 this.getContentPane().setFocusTraversalKeysEnabled(false); 205 206 addComponentListener(this); 207 pack(); 208 209 // Reset windows to user specified size 210 // Must be done after initialising the content pane above! 211 setSizes(new Dimension(UserSettings.InitialWidth.get(), UserSettings.InitialHeight.get())); 212 194 213 // UserSettings.ProfileName.set(FrameIO.ConvertToValidFramesetName(System.getProperty("user.name"))); 195 214 String userName = UserSettings.ProfileName.get(); … … 216 235 FreeItems.setCursor(cursor); 217 236 } 218 219 // set the layout to absolute layout for widgets220 this.getContentPane().setLayout(new AbsoluteLayout());221 222 _mouseEventRouter = new MouseEventRouter(getJMenuBar(),223 getContentPane());224 225 // enable the glasspane-for capturing all mouse events226 this.setGlassPane(_mouseEventRouter);227 228 this.getGlassPane().setVisible(true);229 this.getContentPane().setBackground(Color.white);230 this.getContentPane().setFocusTraversalKeysEnabled(false);231 232 addComponentListener(this);233 pack();234 235 // Reset windows to user specified size236 // Must be done after initialising the content pane above!237 setSizes(new Dimension(UserSettings.InitialWidth.get(),238 UserSettings.InitialHeight.get()));239 237 240 238 /* -
trunk/src/org/expeditee/gui/FrameGraphics.java
r669 r699 39 39 40 40 // the maximum size that can be used to paint on 41 private static Dimension _MaxSize = n ew Dimension(UserSettings.InitialWidth.get(), UserSettings.InitialHeight.get() - MessageBay.MESSAGE_BUFFER_HEIGHT);41 private static Dimension _MaxSize = null; 42 42 43 43 // Final passes to renderering the current frame
Note:
See TracChangeset
for help on using the changeset viewer.