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 { |
194 |
|
String s = "org.jsampler.view.fantasia.MacOSApplicationHandler"; |
195 |
|
Class.forName(s).newInstance(); } |
196 |
|
catch(Throwable e) { } |
197 |
|
} |
198 |
|
|
199 |
addMenu(); |
addMenu(); |
200 |
|
|
201 |
|
if(CC.getViewConfig().isUsingScreenMenuBar()) { |
202 |
|
// fix for moving the menu bar on top of the screen |
203 |
|
// when running on Mac OS and third party plugin is used |
204 |
|
((ViewConfig)CC.getViewConfig()).restoreMenuProperties(); |
205 |
|
} |
206 |
|
|
207 |
int i = preferences().getIntProperty("MainFrame.hSplitDividerLocation", 220); |
int i = preferences().getIntProperty("MainFrame.hSplitDividerLocation", 220); |
208 |
hSplitPane.setDividerLocation(i); |
hSplitPane.setDividerLocation(i); |
209 |
|
|
319 |
|
|
320 |
private void |
private void |
321 |
addMenu() { |
addMenu() { |
|
if(CC.isMacOS()) { |
|
|
try { new MacOSApplicationHandler(); } |
|
|
catch(Throwable e) { } |
|
|
} |
|
|
|
|
|
if(CC.getViewConfig().isUsingScreenMenuBar()) { |
|
|
((ViewConfig)CC.getViewConfig()).setNativeMenuProperties(); |
|
|
} |
|
|
|
|
322 |
JMenu m; |
JMenu m; |
323 |
JMenuItem mi; |
JMenuItem mi; |
324 |
|
|
581 |
m.add(mi); |
m.add(mi); |
582 |
|
|
583 |
menuBar.add(m); |
menuBar.add(m); |
|
|
|
|
if(CC.getViewConfig().isUsingScreenMenuBar()) { |
|
|
((ViewConfig)CC.getViewConfig()).restoreMenuProperties(); |
|
|
} |
|
584 |
} |
} |
585 |
|
|
586 |
public static class ToPanelMenu extends FantasiaMenu implements ListSelectionListener { |
public static class ToPanelMenu extends FantasiaMenu implements ListSelectionListener { |