|
|
@ -22,6 +22,7 @@ import javax.swing.event.TableModelEvent; |
|
|
|
import javax.swing.event.TableModelListener; |
|
|
|
import javax.swing.event.TableModelListener; |
|
|
|
import javax.swing.table.DefaultTableCellRenderer; |
|
|
|
import javax.swing.table.DefaultTableCellRenderer; |
|
|
|
import javax.swing.table.TableCellEditor; |
|
|
|
import javax.swing.table.TableCellEditor; |
|
|
|
|
|
|
|
import javax.swing.table.TableCellRenderer; |
|
|
|
import javax.swing.table.TableColumn; |
|
|
|
import javax.swing.table.TableColumn; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
@ -69,8 +70,9 @@ public class EmbeddedTableDataPane extends AbstractTableDataPane<EmbeddedTableDa |
|
|
|
|
|
|
|
|
|
|
|
// 显示double,date类;渲染date类
|
|
|
|
// 显示double,date类;渲染date类
|
|
|
|
dataJTable.setDefaultRenderer(Double.class, new DoubleRenderer()); |
|
|
|
dataJTable.setDefaultRenderer(Double.class, new DoubleRenderer()); |
|
|
|
dataJTable.setDefaultRenderer(Date.class, new FineTableHeaderUI.TableRenderer()); |
|
|
|
dataJTable.setDefaultRenderer(Date.class, new DateRenderer()); |
|
|
|
dataJTable.setDefaultRenderer(Integer.class, new DateRenderer()); |
|
|
|
dataJTable.setDefaultRenderer(Integer.class, new DoubleRenderer()); |
|
|
|
|
|
|
|
dataJTable.setDefaultRenderer(Number.class, new DoubleRenderer()); |
|
|
|
dataJTable.setDefaultEditor(Date.class, new DateEditor(new UIDatePicker(UIDatePicker.STYLE_CN_DATE1))); |
|
|
|
dataJTable.setDefaultEditor(Date.class, new DateEditor(new UIDatePicker(UIDatePicker.STYLE_CN_DATE1))); |
|
|
|
tableStructureChanged(); |
|
|
|
tableStructureChanged(); |
|
|
|
|
|
|
|
|
|
|
|