KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sellwin > gui > MoneyRenderer


1 package sellwin.gui;
2
3 import sellwin.utils.*;
4 import java.awt.*;
5 import javax.swing.*;
6 import javax.swing.event.*;
7 import javax.swing.table.*;
8
9 // SellWin http://sourceforge.net/projects/sellwincrm
10
//Contact support@open-app.com for commercial help with SellWin
11
//This software is provided "AS IS", without a warranty of any kind.
12

13 /**
14  * This class is a cell renderer for money
15  * fields on certain tables.
16  */

17 public class MoneyRenderer extends DefaultTableCellRenderer {
18
19     /**
20      * see the java spec
21      */

22     public void setValue(Object JavaDoc value) {
23         super.setValue(Prefs.money.format(value));
24     }
25 }
26
Popular Tags