1 17 18 package helloworld.listeners; 19 20 import Jmc.baseGui.base_guiListener; 21 import Jmc.commonGui.*; 22 import Jmc.commonGui.loader.*; 23 import Jmc.baseTools.*; 24 import Jmc.baseGui.*; 25 26 import javax.swing.table.*; 27 28 37 public class HelloWorldTableAdd_li implements base_guiListener 38 { 39 48 public void pcmf_execListener(base_guiObj xParam) throws Exception 49 { 50 Object l_row1[] = {"new 1", "new 2", "new 3", "new 4"}; 51 52 base_table_if l_table=(base_table_if) base_registredObject.pcmf_getObjByName("atable"); 54 base_tableLoader l_load = (base_tableLoader)base_registredObject.pcmf_getObjByName("tableLoader"); 55 56 if (l_table.pcmf_getValue() == null) 57 return; 58 59 ((DefaultTableModel)l_load.pcmf_getModel()).insertRow(Integer.parseInt(l_table.pcmf_getValue().toString()), l_row1); 61 l_table.pcmf_repaint(); 62 63 return; 64 } 65 } 66 | Popular Tags |