\r
setTitle("Jalview 2005");\r
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r
- setVisible(true);\r
desktop = new JDesktopPane();\r
desktop.setBackground(Color.white);\r
setContentPane(desktop);\r
jalview.bin.Cache.setProperty("SCREEN_HEIGHT", getHeight() + "");\r
}\r
});\r
+ setVisible(true);\r
\r
/////////Add a splashscreen on startup\r
\r
SplashScreen splash = new SplashScreen(frame, image);\r
frame.setContentPane(splash);\r
desktop.add(frame);\r
- frame.setVisible(true);\r
+\r
openFrameCount++;\r
try\r
{\r
frame.setIconifiable(false);\r
frame.setMaximizable(false);\r
frame.setFrameIcon(null);\r
+ frame.setVisible(true);\r
\r
}\r
\r
public static void addInternalFrame(final JInternalFrame frame, String title, int w, int h)\r
{\r
desktop.add(frame);\r
- frame.setVisible(true);\r
openFrameCount++;\r
try {\r
frame.setSelected(true);\r
}\r
});\r
\r
+ frame.setVisible(true);\r
windowMenu.add(menuItem);\r
}\r
\r
addInternalFrame(af, file, 700, 500);\r
af.statusBar.setText("Successfully loaded file " + file);\r
\r
-\r
}\r
else\r
JOptionPane.showInternalMessageDialog(Desktop.desktop, "Couldn't open file.\n"\r
public static int setConservationSliderSource(AlignmentPanel ap, ColourSchemeI cs, String source)\r
{\r
SliderPanel sp = null;\r
+ ConservationColourScheme ccs = (ConservationColourScheme)cs;\r
+ int value = ccs.inc;\r
\r
if(conservationSlider == null)\r
{\r
- sp = new SliderPanel(ap, 30, true, cs);\r
+ sp = new SliderPanel(ap, value, true, cs);\r
conservationSlider = new JInternalFrame();\r
conservationSlider.setContentPane(sp);\r
- conservationSlider.setResizable(false);\r
addInternalFrame(conservationSlider, "Conservation Colour Increment ("+source+")", 420, 90);\r
+ conservationSlider.setResizable(false);\r
conservationSlider.addInternalFrameListener(new javax.swing.event.InternalFrameAdapter()\r
{\r
public void internalFrameClosed(javax.swing.event.InternalFrameEvent e)\r
}\r
else\r
{\r
+\r
conservationSlider.setTitle("Conservation Colour Increment ("+source+")");\r
sp = (SliderPanel)conservationSlider.getContentPane();\r
sp.cs = cs;\r
+ sp.setValue(value);\r
}\r
\r
if(ap.av.alignment.getGroups()!=null)\r
pid = new SliderPanel(ap, 50, false, cs);\r
PIDSlider = new JInternalFrame();\r
PIDSlider.setContentPane(pid);\r
- PIDSlider.setResizable(false);\r
addInternalFrame(PIDSlider, "Percentage Identity Threshold ("+source+")", 420, 90);\r
+ PIDSlider.setResizable(false);\r
}\r
else\r
{\r