From: <ni...@us...> - 2006-09-27 18:40:15
|
Revision: 5751 http://svn.sourceforge.net/jmol/?rev=5751&view=rev Author: nicove Date: 2006-09-27 11:40:06 -0700 (Wed, 27 Sep 2006) Log Message: ----------- Fix for the console layout Modified Paths: -------------- trunk/Jmol/src/org/jmol/applet/Console.java Modified: trunk/Jmol/src/org/jmol/applet/Console.java =================================================================== --- trunk/Jmol/src/org/jmol/applet/Console.java 2006-09-27 18:07:51 UTC (rev 5750) +++ trunk/Jmol/src/org/jmol/applet/Console.java 2006-09-27 18:40:06 UTC (rev 5751) @@ -70,23 +70,26 @@ jsp.setResizeWeight(.9); jsp.setDividerLocation(200); - c.setLayout(new BorderLayout()); - c.add(jsp, BorderLayout.CENTER); + c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS)); + jsp.setAlignmentX(Component.CENTER_ALIGNMENT); + c.add(jsp); - JLabel label1 = new JLabel(GT._("press CTRL-ENTER for new line or paste model data and press Load"), - SwingConstants.CENTER); Container c2 = new Container(); - Container c3 = new Container(); - c3.setLayout(new BoxLayout(c3, BoxLayout.Y_AXIS)); c2.setLayout(new BoxLayout(c2, BoxLayout.X_AXIS)); + c2.add(Box.createGlue()); c2.add(runButton); c2.add(loadButton); c2.add(clearInButton); c2.add(clearOutButton); c2.add(historyButton); - c3.add(c2); - c3.add(label1); - c.add(c3, BorderLayout.SOUTH); + c2.add(Box.createGlue()); + c.add(c2); + + JLabel label1 = new JLabel( + GT._("press CTRL-ENTER for new line or paste model data and press Load"), + SwingConstants.CENTER); + label1.setAlignmentX(Component.CENTER_ALIGNMENT); + c.add(label1); runButton.addActionListener(this); clearInButton.addActionListener(this); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |