public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   ICFDbTestSchemaObj schemaObj = swingSchema.getSchema();
   ICFDbTestTextColObj obj = (ICFDbTestTextColObj) schemaObj.getTextColTableObj().newInstance();
   JInternalFrame frame = swingSchema.getTextColFactory().newViewEditJInternalFrame(obj);
   frame.addInternalFrameListener(getViewEditInternalFrameListener());
   ICFDbTestTextColEditObj edit = (ICFDbTestTextColEditObj) (obj.beginEdit());
   if (edit == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "edit");
   }
   ICFSecurityTenantObj secTenant = schemaObj.getSecTenant();
   edit.setRequiredOwnerTenant(secTenant);
   ICFDbTestTableObj container = (ICFDbTestTableObj) (getSwingContainer());
   if (container == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "SwingContainer");
   }
   edit.setRequiredContainerTable(container);
   ICFDbTestSwingTextColJPanelCommon jpanelCommon = (ICFDbTestSwingTextColJPanelCommon) frame;
   jpanelCommon.setPanelMode(CFJPanel.PanelMode.Add);
   Container cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     JInternalFrame myInternalFrame = (JInternalFrame) cont;
     myInternalFrame.getDesktopPane().add(frame);
     frame.setVisible(true);
     frame.show();
   }
 }
 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();
 }