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");
   }
   ICFSecurityISOTimezoneObj selectedInstance = getSwingFocusAsISOTimezone();
   if (selectedInstance != null) {
     String classCode = selectedInstance.getClassCode();
     if ("ITZN".equals(classCode)) {
       JInternalFrame frame =
           swingSchema.getISOTimezoneFactory().newAskDeleteJInternalFrame(selectedInstance);
       ((ICFDbTestSwingISOTimezoneJPanelCommon) frame).setPanelMode(CFJPanel.PanelMode.View);
       frame.addInternalFrameListener(getViewEditInternalFrameListener());
       getDesktopPane().add(frame);
       frame.setVisible(true);
       frame.show();
     } else {
       throw CFLib.getDefaultExceptionFactory()
           .newUnsupportedClassException(
               getClass(),
               S_ProcName,
               "selectedInstance",
               selectedInstance,
               "ICFDbTestISOTimezoneObj");
     }
   }
 }
 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");
   }
   ICFDbTestISOTimezoneObj obj =
       (ICFDbTestISOTimezoneObj) schemaObj.getISOTimezoneTableObj().newInstance();
   ICFDbTestISOTimezoneEditObj edit = (ICFDbTestISOTimezoneEditObj) (obj.beginEdit());
   if (edit == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "edit");
   }
   JInternalFrame frame = swingSchema.getISOTimezoneFactory().newViewEditJInternalFrame(obj);
   frame.addInternalFrameListener(getViewEditInternalFrameListener());
   ICFDbTestSwingISOTimezoneJPanelCommon jpanelCommon =
       (ICFDbTestSwingISOTimezoneJPanelCommon) frame;
   jpanelCommon.setPanelMode(CFJPanel.PanelMode.Add);
   getDesktopPane().add(frame);
   frame.setVisible(true);
   frame.show();
 }