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 HelloWorldTableRemove_li implements base_guiListener 38 { 39 48 public void pcmf_execListener(base_guiObj xParam) throws Exception 49 { 50 base_table_if l_table=(base_table_if) base_registredObject.pcmf_getObjByName("atable"); 52 base_tableLoader l_load = (base_tableLoader)base_registredObject.pcmf_getObjByName("tableLoader"); 53 54 if (l_table.pcmf_getValue() == null) 55 return; 56 57 ((DefaultTableModel)l_load.pcmf_getModel()).removeRow(Integer.parseInt(l_table.pcmf_getValue().toString())); 59 l_table.pcmf_repaint(); 60 61 return; 62 } 63 } | Popular Tags |