Author: jflesch
Date: 2007-08-10 17:51:05 +0000 (Fri, 10 Aug 2007)
New Revision: 14579

Modified:
   trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessagePanel.java
Log:
Change the way the subject is displayed to avoid an annoying horizontal scroll 
bar

Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessagePanel.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessagePanel.java        
2007-08-10 17:37:38 UTC (rev 14578)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessagePanel.java        
2007-08-10 17:51:05 UTC (rev 14579)
@@ -116,12 +116,17 @@

                subject = new JLabel("");

-               JPanel northPanel = new JPanel(new BorderLayout(10, 10));
-               northPanel.add(subject, BorderLayout.CENTER);
-               northPanel.add(actions, BorderLayout.EAST);
-               northPanel.add(buttonPanel, BorderLayout.WEST);
+               JPanel northPanel = new JPanel(new BorderLayout(5, 5));
+               JPanel northNorthPanel = new JPanel(new BorderLayout(5,5));

+               northNorthPanel.add(new JLabel(""), BorderLayout.CENTER);
+               northNorthPanel.add(actions, BorderLayout.EAST);
+               northNorthPanel.add(buttonPanel, BorderLayout.WEST);

+               northPanel.add(northNorthPanel, BorderLayout.CENTER);
+               northPanel.add(new JScrollPane(subject), BorderLayout.SOUTH);
+
+
                panel.add(northPanel, BorderLayout.NORTH);
        }



Reply via email to