32 |
import java.awt.event.WindowAdapter; |
import java.awt.event.WindowAdapter; |
33 |
import java.awt.event.WindowEvent; |
import java.awt.event.WindowEvent; |
34 |
|
|
|
import java.util.logging.Level; |
|
|
|
|
35 |
import javax.swing.AbstractAction; |
import javax.swing.AbstractAction; |
36 |
import javax.swing.Action; |
import javax.swing.Action; |
37 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
94 |
InstrumentsDbFrame() { |
InstrumentsDbFrame() { |
95 |
setTitle(i18n.getLabel("InstrumentsDbFrame.title")); |
setTitle(i18n.getLabel("InstrumentsDbFrame.title")); |
96 |
if(Res.iconAppIcon != null) setIconImage(Res.iconAppIcon.getImage()); |
if(Res.iconAppIcon != null) setIconImage(Res.iconAppIcon.getImage()); |
97 |
|
|
98 |
|
((ViewConfig)CC.getViewConfig()).restoreMenuProperties(); |
99 |
|
|
100 |
instrumentsDbTree = new FantasiaInstrumentsDbTree(CC.getInstrumentsDbTreeModel()); |
instrumentsDbTree = new FantasiaInstrumentsDbTree(CC.getInstrumentsDbTreeModel()); |
101 |
|
|
117 |
splitPane.setDividerSize(3); |
splitPane.setDividerSize(3); |
118 |
splitPane.setDividerLocation(200); |
splitPane.setDividerLocation(200); |
119 |
|
|
120 |
|
// fix for moving the menu bar on top of the screen |
121 |
|
// when running on Mac OS and third party plugin is used |
122 |
|
((ViewConfig)CC.getViewConfig()).setNativeMenuProperties(); |
123 |
|
|
124 |
addMenu(); |
addMenu(); |
125 |
|
|
126 |
pack(); |
pack(); |