|
From: <max...@us...> - 2009-09-25 15:50:58
|
Revision: 3876
http://uni-d.svn.sourceforge.net/uni-d/?rev=3876&view=rev
Author: max_brod
Date: 2009-09-25 15:50:44 +0000 (Fri, 25 Sep 2009)
Log Message:
-----------
In the Tool window, show the scrollbars for the history panel from the begining (with vert. scrollbar appearing when it's needed, the textarea shrinked).
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 08:18:05 UTC (rev 3875)
+++ trunk/Uni-d/tool/src/main/java/be/unid/tool/shared/ui/ToolClientDisplay.java 2009-09-25 15:50:44 UTC (rev 3876)
@@ -132,7 +132,10 @@
historyPanel.add( new JLabel( i18n.txt( "history", appId ) ) );
constr.gridy = 1;
constr.insets = new Insets( 10, 0, 10, 0 );
- historyPanel.add( new JScrollPane( history ), constr );
+ 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 );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|