?? longeditor.java
字號:
/* * LongEditor.java * * Created on 2007-8-17, 0:08:54 * * To change this template, choose Tools | Templates * and open the template in the editor. */package dyno.swing.designer.properties.editors;import java.text.NumberFormat;/** * * @author William Chen */public class LongEditor extends FormattedEditor { public LongEditor() { super(NumberFormat.getIntegerInstance()); } @Override public Object getValue() { Object v = super.getValue(); if (v == null) { return new Long(0); } else if (v instanceof Number) { return new Long(((Number)v).longValue()); } return v; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -