[Jrisk-cvs] SF.net SVN: domination-code:[2649] Domination/swingUI/src/net/yura/ domination/ui/swing
Brought to you by:
yuranet
|
From: <yu...@us...> - 2025-03-01 19:43:02
|
Revision: 2649
http://sourceforge.net/p/domination/code/2649
Author: yuranet
Date: 2025-03-01 19:43:00 +0000 (Sat, 01 Mar 2025)
Log Message:
-----------
fix for window size of SwingGUI being too big when no internet connection
Modified Paths:
--------------
Domination/swingUI/src/net/yura/domination/ui/swinggui/SwingGUIPanel.java
Modified: Domination/swingUI/src/net/yura/domination/ui/swinggui/SwingGUIPanel.java
===================================================================
--- Domination/swingUI/src/net/yura/domination/ui/swinggui/SwingGUIPanel.java 2025-03-01 19:31:00 UTC (rev 2648)
+++ Domination/swingUI/src/net/yura/domination/ui/swinggui/SwingGUIPanel.java 2025-03-01 19:43:00 UTC (rev 2649)
@@ -1177,6 +1177,8 @@
errText.setEditable(false);
JScrollPane errScroll = new JScrollPane( errText );
+ // set to any small size, so it gets stretched, othersie when long text is in the log it will make the window massive
+ errScroll.setPreferredSize(new Dimension(10,10));
//errScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
//errScroll.setBorder( BorderFactory.createTitledBorder( BorderFactory.createLoweredBevelBorder() , "Error Log", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.ABOVE_TOP ) );
|