m.frame.setVisible(true);
m.frame1.setVisible(true);
   static public void main(String[] args) {      if (!isSpecified("-nc",args)) {         if (!checkBootStrapper(args)) {            // if we did not find a running instance and the -d options is            //    specified start up the bootstrap deamon to allow checking            //    for running instances            if (isSpecified("-d",args)) {               strapper = new BootStrapper();               strapper.start();            }         }         else {            System.exit(0);         }      }      My5250 m = new My5250();      if (strapper != null)         strapper.addBootListener(m);      if (args.length > 0) {         if (isSpecified("-width",args) ||               isSpecified("-height",args)) {            int width = m.frame.getWidth();            int height = m.frame.getHeight();            if (isSpecified("-width",args)) {               width = Integer.parseInt(m.getParm("-width",args));            }            if (isSpecified("-height",args)) {               height = Integer.parseInt(m.getParm("-height",args));            }            m.frame.setSize(width,height);            m.frame.centerFrame();         }          /**           * @todo this crap needs to be rewritten it is a mess           */         if (args[0].startsWith("-")) {            // check if a session parameter is specified on the command line            if (isSpecified("-s",args)) {               String sd = getParm("-s",args);               if (sessions.containsKey(sd)) {                  sessions.setProperty("emul.default",sd);               }               else {                  args = null;               }            }            // check if a locale parameter is specified on the command line            if (isSpecified("-L",args)) {               Locale.setDefault(parseLocal(getParm("-L",args)));               LangTool.init();               if (args[0].startsWith("-")) {                  m.sessionArgs = null;               }               else {                  m.frame.setVisible(true);                  LangTool.init();                  m.sessionArgs = args;               }            }            else {               LangTool.init();               if (isSpecified("-s",args))                  m.sessionArgs = args;               else                  m.sessionArgs = null;            }         }         else {            LangTool.init();            m.sessionArgs = args;         }      }      else {         LangTool.init();         m.sessionArgs = null;      }      if (m.sessionArgs != null) {         // BEGIN         // 2001/09/19 natural computing MR         Vector os400_sessions = new Vector();         Vector session_params = new Vector();         for (int x = 0; x < args.length; x++) {            if (args[x].equals("-s")) {               x++;               if (args[x] != null && sessions.containsKey(args[x])) {                  os400_sessions.addElement(args[x]);               }else{                  x--;                  session_params.addElement(args[x]);               }            }else{               session_params.addElement(args[x]);            }         }         for (int x = 0; x < session_params.size(); x++)            m.sessionArgs[x] = session_params.elementAt(x).toString();         m.startNewSession();         for (int x = 1; x < os400_sessions.size(); x++ ) {            String sel = os400_sessions.elementAt(x).toString();            if (!m.frame.isVisible())               m.frame.setVisible(true);            m.sessionArgs = new String[NUM_PARMS];            m.parseArgs(sessions.getProperty(sel),m.sessionArgs);            m.newSession(sel,m.sessionArgs);         }         // 2001/09/19 natural computing MR         // END      }      else {         m.startNewSession();      }   }