logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1514261 - /logging/log4j/log4j2/trunk/jmx-gui/src/main/java/org/apache/logging/log4j/jmx/gui/ClientGUI.java
Date Thu, 15 Aug 2013 13:30:49 GMT
Author: ggregory
Date: Thu Aug 15 13:30:49 2013
New Revision: 1514261

URL: http://svn.apache.org/r1514261
Log:
The static field in ScrollPaneConstants should be accessed directly.

Modified:
    logging/log4j/log4j2/trunk/jmx-gui/src/main/java/org/apache/logging/log4j/jmx/gui/ClientGUI.java

Modified: logging/log4j/log4j2/trunk/jmx-gui/src/main/java/org/apache/logging/log4j/jmx/gui/ClientGUI.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/jmx-gui/src/main/java/org/apache/logging/log4j/jmx/gui/ClientGUI.java?rev=1514261&r1=1514260&r2=1514261&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/jmx-gui/src/main/java/org/apache/logging/log4j/jmx/gui/ClientGUI.java
(original)
+++ logging/log4j/log4j2/trunk/jmx-gui/src/main/java/org/apache/logging/log4j/jmx/gui/ClientGUI.java
Thu Aug 15 13:30:49 2013
@@ -43,6 +43,7 @@ import javax.swing.JScrollPane;
 import javax.swing.JTabbedPane;
 import javax.swing.JTextArea;
 import javax.swing.JToggleButton;
+import javax.swing.ScrollPaneConstants;
 import javax.swing.SwingUtilities;
 import javax.swing.UIManager;
 import javax.swing.UIManager.LookAndFeelInfo;
@@ -96,9 +97,9 @@ public class ClientGUI extends JPanel im
         wrapLinesToggleButton = new JToggleButton(toggleWrapAction);
         wrapLinesToggleButton.setToolTipText("Toggle line wrapping");
         final JScrollPane scrollStatusLog = new JScrollPane(statusLogTextArea, //
-                JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, //
-                JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
-        scrollStatusLog.setCorner(JScrollPane.LOWER_RIGHT_CORNER, wrapLinesToggleButton);
+                ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, //
+                ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
+        scrollStatusLog.setCorner(ScrollPaneConstants.LOWER_RIGHT_CORNER, wrapLinesToggleButton);
 
         tabbedPane = new JTabbedPane();
         tabbedPane.addTab("StatusLogger", scrollStatusLog);



Mime
View raw message