1 5 package net.sf.panoptes.swing.propeditors; 6 7 import javax.swing.JTextField ; 8 9 15 public class LongEditor extends JTextField { 16 17 20 public LongEditor(Integer value) { 21 super(new IntegerDocument(), value.toString(), 0); 22 } 23 24 public void setValue(Integer value) { 25 setText(value.toString()); 26 } 27 28 public Integer getValue() { 29 return Integer.valueOf(getText()); 30 } 31 } 32 | Popular Tags |