[Schmitzm-commits] r2289 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing/table

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 26 22:28:53 CET 2013


Author: mojays
Date: 2013-03-26 22:28:53 +0100 (Tue, 26 Mar 2013)
New Revision: 2289

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/table/DoubleRenderer.java
Log:
DoubleRenderer: constant for default renderer to render integer values

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/table/DoubleRenderer.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/table/DoubleRenderer.java	2013-03-26 19:59:16 UTC (rev 2288)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/table/DoubleRenderer.java	2013-03-26 21:28:53 UTC (rev 2289)
@@ -29,6 +29,7 @@
  ******************************************************************************/
 package de.schmitzm.swing.table;
 
+import java.text.DecimalFormat;
 import java.text.NumberFormat;
 
 import javax.swing.JLabel;
@@ -42,6 +43,9 @@
  * @version 1.0
  */
 public class DoubleRenderer extends DefaultTableCellRenderer.UIResource {
+  /** Default renderer to render integer values (right alignment. */
+  public static final DoubleRenderer INTEGER = new DoubleRenderer(new DecimalFormat("0"),null);
+  
   /** Speichert das Format, in dem der {@link Double}-Wert <b>in der Zelle</b>
    *  dargestellt wird. */
   protected NumberFormat cellFormatter = null;



More information about the Schmitzm-commits mailing list