From: <max...@us...> - 2009-09-25 15:57:41
|
Revision: 3877 http://uni-d.svn.sourceforge.net/uni-d/?rev=3877&view=rev Author: max_brod Date: 2009-09-25 15:57:23 +0000 (Fri, 25 Sep 2009) Log Message: ----------- Other attempt to prevent the history text area from shrinking. Modified Paths: -------------- trunk/Uni-d/tool/src/main/java/be/unid/tool/shared/ui/ToolClientDisplay.java Modified: trunk/Uni-d/tool/src/main/java/be/unid/tool/shared/ui/ToolClientDisplay.java =================================================================== --- trunk/Uni-d/tool/src/main/java/be/unid/tool/shared/ui/ToolClientDisplay.java 2009-09-25 15:50:44 UTC (rev 3876) +++ trunk/Uni-d/tool/src/main/java/be/unid/tool/shared/ui/ToolClientDisplay.java 2009-09-25 15:57:23 UTC (rev 3877) @@ -127,19 +127,13 @@ constr.insets = new Insets( 10, 0, 10, 0 ); infoPanel.add( info, constr ); - JPanel historyPanel = new JPanel( new GridBagLayout() ); - historyPanel.setBorder( new EtchedBorder() ); - historyPanel.add( new JLabel( i18n.txt( "history", appId ) ) ); - constr.gridy = 1; - constr.insets = new Insets( 10, 0, 10, 0 ); JScrollPane historyScrollPane=new JScrollPane(history); historyScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); historyScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); - historyPanel.add( historyScrollPane, constr ); - + getContentPane().add( statusPanel );//, BorderLayout.NORTH ); getContentPane().add( infoPanel );//, BorderLayout.CENTER ); - getContentPane().add( historyPanel );//, BorderLayout.SOUTH ); + getContentPane().add( historyScrollPane );//, BorderLayout.SOUTH ); pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |