jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1351005 - in /jmeter/trunk/src/jorphan/org/apache/jorphan/gui: NumberRenderer.java RightAlignRenderer.java
Date Sat, 16 Jun 2012 20:58:55 GMT
Author: pmouawad
Date: Sat Jun 16 20:58:54 2012
New Revision: 1351005

URL: http://svn.apache.org/viewvc?rev=1351005&view=rev
Log:
Use Root interface SwingConstant

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/gui/NumberRenderer.java
    jmeter/trunk/src/jorphan/org/apache/jorphan/gui/RightAlignRenderer.java

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/gui/NumberRenderer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/NumberRenderer.java?rev=1351005&r1=1351004&r2=1351005&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/gui/NumberRenderer.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/gui/NumberRenderer.java Sat Jun 16 20:58:54
2012
@@ -21,7 +21,7 @@ package org.apache.jorphan.gui;
 import java.text.DecimalFormat;
 import java.text.NumberFormat;
 
-import javax.swing.JLabel;
+import javax.swing.SwingConstants;
 import javax.swing.table.DefaultTableCellRenderer;
 
 /**
@@ -35,13 +35,13 @@ public class NumberRenderer extends Defa
     public NumberRenderer() {
         super();
         formatter = NumberFormat.getInstance();
-        setHorizontalAlignment(JLabel.RIGHT);
+        setHorizontalAlignment(SwingConstants.RIGHT);
     }
 
     public NumberRenderer(String format) {
         super();
         formatter = new DecimalFormat(format);
-        setHorizontalAlignment(JLabel.RIGHT);
+        setHorizontalAlignment(SwingConstants.RIGHT);
     }
 
     @Override

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/gui/RightAlignRenderer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/RightAlignRenderer.java?rev=1351005&r1=1351004&r2=1351005&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/gui/RightAlignRenderer.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/gui/RightAlignRenderer.java Sat Jun 16 20:58:54
2012
@@ -18,7 +18,7 @@
 
 package org.apache.jorphan.gui;
 
-import javax.swing.JLabel;
+import javax.swing.SwingConstants;
 import javax.swing.table.DefaultTableCellRenderer;
 
 /**
@@ -29,6 +29,6 @@ public class RightAlignRenderer extends 
 
     public RightAlignRenderer() {
         super();
-        setHorizontalAlignment(JLabel.RIGHT);
+        setHorizontalAlignment(SwingConstants.RIGHT);
     }
 }
\ No newline at end of file



Mime
View raw message