public void actionPerformed(ActionEvent e) { ICFDbTestTableObj selectedInstance = getSwingFocusAsTable(); if (selectedInstance != null) { ICFDbTestTableObj retObj = selectedInstance.testInstObjFuncNoArgs(); String msg; if (retObj != null) { msg = "testInstObjFuncNoArgs() returned a " + retObj.getClass().getName() + " named " + retObj.getObjName(); } else { msg = "testInstObjFuncNoArgs() returned null"; } JOptionPane.showMessageDialog(null, msg); } }
public void actionPerformed(ActionEvent e) { final String S_ProcName = "actionPerformed"; ICFDbTestSchemaObj schemaObj = swingSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } ICFDbTestTableObj retObj = schemaObj.getTableTableObj().testClassObjFuncNoArgs(); String msg; if (retObj != null) { msg = "testClassObjFuncNoArgs() returned a " + retObj.getClass().getName() + " named " + retObj.getObjName(); } else { msg = "testClassObjFuncNoArgs() returned null"; } JOptionPane.showMessageDialog(null, msg); }