188 |
rootPane.add(hSplitPane); |
rootPane.add(hSplitPane); |
189 |
rootPane.add(bottomPane, BorderLayout.SOUTH); |
rootPane.add(bottomPane, BorderLayout.SOUTH); |
190 |
add(rootPane); |
add(rootPane); |
191 |
|
|
192 |
|
if(CC.isMacOS()) { |
193 |
|
try { new MacOSApplicationHandler(); } |
194 |
|
catch(Throwable e) { } |
195 |
|
} |
196 |
|
|
197 |
addMenu(); |
addMenu(); |
198 |
|
|
199 |
|
if(CC.getViewConfig().isUsingScreenMenuBar()) { |
200 |
|
// fix for moving the menu bar on top of the screen |
201 |
|
// when running on Mac OS and third party plugin is used |
202 |
|
((ViewConfig)CC.getViewConfig()).restoreMenuProperties(); |
203 |
|
} |
204 |
|
|
205 |
int i = preferences().getIntProperty("MainFrame.hSplitDividerLocation", 220); |
int i = preferences().getIntProperty("MainFrame.hSplitDividerLocation", 220); |
206 |
hSplitPane.setDividerLocation(i); |
hSplitPane.setDividerLocation(i); |
207 |
|
|
317 |
|
|
318 |
private void |
private void |
319 |
addMenu() { |
addMenu() { |
|
if(CC.isMacOS()) { |
|
|
try { new MacOSApplicationHandler(); } |
|
|
catch(Throwable e) { } |
|
|
} |
|
|
|
|
|
if(CC.getViewConfig().isUsingScreenMenuBar()) { |
|
|
((ViewConfig)CC.getViewConfig()).setNativeMenuProperties(); |
|
|
} |
|
|
|
|
320 |
JMenu m; |
JMenu m; |
321 |
JMenuItem mi; |
JMenuItem mi; |
322 |
|
|
579 |
m.add(mi); |
m.add(mi); |
580 |
|
|
581 |
menuBar.add(m); |
menuBar.add(m); |
|
|
|
|
if(CC.getViewConfig().isUsingScreenMenuBar()) { |
|
|
((ViewConfig)CC.getViewConfig()).restoreMenuProperties(); |
|
|
} |
|
582 |
} |
} |
583 |
|
|
584 |
public static class ToPanelMenu extends FantasiaMenu implements ListSelectionListener { |
public static class ToPanelMenu extends FantasiaMenu implements ListSelectionListener { |