logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r834797 - in /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw: ApplicationPreferenceModelPanel.java LogUI.java
Date Wed, 11 Nov 2009 08:11:31 GMT
Author: sdeboy
Date: Wed Nov 11 08:11:31 2009
New Revision: 834797

URL: http://svn.apache.org/viewvc?rev=834797&view=rev
Log:
Updates to App preference model panel layout

Modified:
    logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
    logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java?rev=834797&r1=834796&r2=834797&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
(original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
Wed Nov 11 08:11:31 2009
@@ -419,13 +419,13 @@
       configurationURL = new JComboBox(new DefaultComboBoxModel(committedPreferenceModel.getConfigurationURLs()));
       configurationURL.setEditable(true);
       configurationURL.setPrototypeDisplayValue("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
-      configurationURL.setPreferredSize(new Dimension(375, 25));
+      configurationURL.setPreferredSize(new Dimension(375, 15));
 
-      identifierExpression = new JTextField(20);
+      identifierExpression = new JTextField(30);
       toolTipDisplayMillis = new JTextField(8);
       cyclicBufferSize = new JTextField(8);
       Box p = new Box(BoxLayout.X_AXIS);
-
+                                                           
       p.add(showNoReceiverWarning);
       p.add(Box.createHorizontalGlue());
 
@@ -460,7 +460,7 @@
       add(p2);
       add(p3);
       add(ok4);
-      
+
       JPanel p4 = new JPanel(new FlowLayout(FlowLayout.LEFT));
 
       p4.add(new JLabel("ToolTip Display (millis)"));
@@ -473,14 +473,21 @@
       p5.add(new JLabel("Cyclic buffer size"));
       p5.add(Box.createHorizontalStrut(5));
       p5.add(cyclicBufferSize);
+      p5.add(Box.createHorizontalStrut(5));
+      p5.add(new JLabel("Cyclic buffer size change will take effect on Chainsaw restart"));
       add(p5);
 
-      JPanel p6 = new JPanel(new FlowLayout(FlowLayout.LEFT));
+      Box p6 = new Box(BoxLayout.Y_AXIS);
 
-      p6.add(new JLabel("Automatic Configuration URL"));
-      p6.add(Box.createHorizontalStrut(5));
-      p6.add(configurationURL);
-      add(p6);
+      Box configURLPanel = new Box(BoxLayout.X_AXIS);
+      JLabel configLabel = new JLabel("Automatic Configuration URL");
+      configURLPanel.add(configLabel);
+      configURLPanel.add(Box.createHorizontalStrut(5));
+
+      configURLPanel.add(configurationURL);
+      configURLPanel.add(Box.createHorizontalGlue());
+
+      p6.add(configURLPanel);
 
       JButton browseButton = new JButton("Browse");
       browseButton.addActionListener(new ActionListener()
@@ -518,19 +525,14 @@
               }
           }
       });
+      Box browsePanel = new Box(BoxLayout.X_AXIS);
+      browsePanel.add(Box.createHorizontalGlue());
+      browsePanel.add(browseButton);
+      p6.add(Box.createVerticalStrut(5));
+      p6.add(browsePanel);
+      p6.add(Box.createVerticalGlue());
+      add(p6);
 
-      JPanel p7 = new JPanel(new FlowLayout(FlowLayout.RIGHT));
-      p7.add(browseButton);
-      add(p7);
-
-      JPanel p8 = new JPanel(new FlowLayout(FlowLayout.LEFT));
-      p8.add(
-        new JLabel(
-          "Cyclic buffer size change will apply the next time you start Chainsaw"));
-      add(p8);
-
-      add(Box.createVerticalGlue());
-      
       configurationURL.setToolTipText("A complete and valid URL identifying the location
of a valid log4 xml configuration file to auto-configure Receivers and other Plugins");
       configurationURL.setInputVerifier(new InputVerifier() {
 

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java?rev=834797&r1=834796&r2=834797&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java (original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java Wed Nov 11 08:11:31
2009
@@ -883,7 +883,7 @@
       ((ImageIcon) ChainsawIcons.ICON_PREFERENCES).getImage());
     preferencesFrame.getContentPane().add(applicationPreferenceModelPanel);
 
-    preferencesFrame.setSize(640, 520);
+    preferencesFrame.setSize(750, 520);
 
     Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
     preferencesFrame.setLocation(



Mime
View raw message