摘要:
JTable sortingimport javax.swing.JFrame;import javax.swing.JScrollPane;import javax.swing.JTable;import javax.swing.SwingUtilities;import javax.swing.table.DefaultTableModel;import javax.swing.table.TableModel;import javax.swing.table.TableRowSorter;public class JTableSortDemo { public static void 阅读全文
摘要:
How to operate data in JTable public boolean isRecordSelected() { return masterTable.getSelectedRow() != -1; } @Action public void newRecord() { desktopapplicationdbtest.Car c = new desktopapplicationdbtest.Car(); entityManager.persist(c); list.add(c); int row = list.size()-1; masterTable.setRowSele 阅读全文
摘要:
How to open a JFrame @Action public void showAboutBox() { if (aboutBox == null) { JFrame mainFrame = NumberSliderApp.getApplication().getMainFrame(); aboutBox = new NumberSliderAboutBox(mainFrame); aboutBox.setLocationRelativeTo(mainFrame); } NumberSliderApp.getApplication().show(aboutBox); } 阅读全文
摘要:
netbean 数据绑定http://netbeans.org/kb/docs/java/gui-binding_zh_CN.html 阅读全文