|
|
@ -180,7 +180,7 @@ public class GUIPrism extends JFrame |
|
|
private PrismLog theLog; |
|
|
private PrismLog theLog; |
|
|
|
|
|
|
|
|
//gui components |
|
|
//gui components |
|
|
private ArrayList plugs; |
|
|
|
|
|
|
|
|
private ArrayList<GUIPlugin> plugs; |
|
|
private JTabbedPane theTabs; |
|
|
private JTabbedPane theTabs; |
|
|
private GUIPlugin logPlug; |
|
|
private GUIPlugin logPlug; |
|
|
private GUIEventHandler eventHandle; |
|
|
private GUIEventHandler eventHandle; |
|
|
@ -283,8 +283,7 @@ public class GUIPrism extends JFrame |
|
|
}); |
|
|
}); |
|
|
//Setup pluggable screens in here |
|
|
//Setup pluggable screens in here |
|
|
plugs = getPluginArray(this); |
|
|
plugs = getPluginArray(this); |
|
|
for (int i = 0; i < plugs.size(); i++) { |
|
|
|
|
|
GUIPlugin plug = (GUIPlugin) plugs.get(i); |
|
|
|
|
|
|
|
|
for (GUIPlugin plug : plugs) { |
|
|
if (plug.displaysTab()) { |
|
|
if (plug.displaysTab()) { |
|
|
theTabs.addTab(plug.getTabText(), plug); |
|
|
theTabs.addTab(plug.getTabText(), plug); |
|
|
theTabs.setEnabledAt(theTabs.getComponentCount() - 1, plug.isEnabled()); |
|
|
theTabs.setEnabledAt(theTabs.getComponentCount() - 1, plug.isEnabled()); |
|
|
@ -397,6 +396,10 @@ public class GUIPrism extends JFrame |
|
|
setIconImage(GUIPrism.getIconFromImage("smallPrism.png").getImage()); |
|
|
setIconImage(GUIPrism.getIconFromImage("smallPrism.png").getImage()); |
|
|
getContentPane().setSize(new java.awt.Dimension(800, 600)); |
|
|
getContentPane().setSize(new java.awt.Dimension(800, 600)); |
|
|
pack(); |
|
|
pack(); |
|
|
|
|
|
|
|
|
|
|
|
for (GUIPlugin plug : plugs) { |
|
|
|
|
|
plug.onInitComponentsCompleted(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void passCLArgs(String args[]) |
|
|
public void passCLArgs(String args[]) |
|
|
|