@SuppressWarnings("static-access") private void createAndShowGUI(){
  if (isTextMode())   return;
  m_isInitialized=false;
  m_frame=new JFrame(s_logger.localizeMessage("guiWindowTitle"));
  m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  ArrayList<Image> images=new ArrayList<Image>();
  images.add(getImage("AD16.png"));
  images.add(getImage("AD32.png"));
  m_frame.setIconImages(images);
  m_menuFile.setText(s_logger.localizeMessage("guiMenuFile"));
  m_menuFile.setMnemonic(new Integer(s_logger.localizeMessage("guiMenuFileMnemonic")));
  m_menuFileSave.setText(s_logger.localizeMessage("guiMenuFileSave"));
  m_menuFileSave.setToolTipText(s_logger.localizeMessage("guiMenuFileSaveTip"));
  m_menuFileSave.setMnemonic(new Integer(s_logger.localizeMessage("guiMenuFileSaveMnemonic")));
  m_menuFileSave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,ActionEvent.CTRL_MASK));
  m_menuFileSave.setIcon(new ImageIcon(getImage("Save16.png")));
  m_menuFileSave.addActionListener(this);
  m_menuFileClose.setText(s_logger.localizeMessage("guiMenuFileClose"));
  m_menuFileClose.setToolTipText(s_logger.localizeMessage("guiMenuFileCloseTip"));
  m_menuFileClose.setMnemonic(new Integer(s_logger.localizeMessage("guiMenuFileCloseMnemonic")));
  m_menuFileClose.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,ActionEvent.CTRL_MASK));
  m_menuFileClose.setIcon(new ImageIcon(getImage("Logout16.png")));
  m_menuFileClose.addActionListener(this);
  m_menuFileExit.setText(s_logger.localizeMessage("guiMenuFileExit"));
  m_menuFileExit.setToolTipText(s_logger.localizeMessage("guiMenuFileExitTip"));
  m_menuFileExit.setMnemonic(new Integer(s_logger.localizeMessage("guiMenuFileExitMnemonic")));
  m_menuFileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,ActionEvent.CTRL_MASK));
  m_menuFileExit.setIcon(new ImageIcon(getImage("Cancel16.png")));
  m_menuFileExit.addActionListener(this);
  m_menuFile.add(m_menuFileSave);
  m_menuFile.addSeparator();
  m_menuFile.add(m_menuFileClose);
  m_menuFile.add(m_menuFileExit);
  m_menuHelp.setText(s_logger.localizeMessage("guiMenuHelp"));
  m_menuHelp.setMnemonic(new Integer(s_logger.localizeMessage("guiMenuHelpMnemonic")));
  m_menuHelpInfo.setText(s_logger.localizeMessage("guiMenuHelpInfo"));
  m_menuHelpInfo.setMnemonic(new Integer(s_logger.localizeMessage("guiMenuHelpInfoMnemonic")));
  m_menuHelpInfo.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1,0));
  m_menuHelpInfo.setIcon(new ImageIcon(getImage("Help16.png")));
  m_menuHelpInfo.addActionListener(this);
  m_menuHelpAbout.setText(s_logger.localizeMessage("guiMenuHelpAbout"));
  m_menuHelpAbout.setMnemonic(new Integer(s_logger.localizeMessage("guiMenuHelpAboutMnemonic")));
  m_menuHelpAbout.setIcon(new ImageIcon(getImage("About16.png")));
  m_menuHelpAbout.addActionListener(this);
  m_menuHelp.add(m_menuHelpInfo);
  m_menuHelp.addSeparator();
  m_menuHelp.add(m_menuHelpAbout);
  m_menuBar.add(m_menuFile);
  m_menuBar.add(m_menuHelp);
  m_frame.setJMenuBar(m_menuBar);
  addComponentsToPane(m_frame.getContentPane());
  ArrayList<String> vendors=s_dbEngine.getVendorList();
  for (  String vendorName : vendors) {
    m_sourceVendor.addItem(vendorName.toLowerCase());
    m_targetVendor.addItem(vendorName.toLowerCase());
  }
  resetSourceParameters();
  resetTargetParameters();
  resetMigrationMode();
  resetOptions();
  m_isInitialized=true;
  m_frame.pack();
  m_buttonStart.requestFocusInWindow();
  m_frame.setLocationRelativeTo(null);
  m_frame.setVisible(true);
}

@ SuppressWarnings ( "static-access" ) private void createAndShowGUI ( ) { if ( isTextMode ( ) ) return ; m_isInitialized = false ; m_frame = new JFrame ( s_logger . localizeMessage ( "guiWindowTitle" ) ) ; m_frame . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; ArrayList < Image > images = new ArrayList < Image > ( ) ; images . add ( getImage ( "AD16.png" ) ) ; images . add ( getImage ( "AD32.png" ) ) ; m_frame . setIconImages ( images ) ; m_menuFile . setText ( s_logger . localizeMessage ( "guiMenuFile" ) ) ; m_menuFile . setMnemonic ( new Integer ( s_logger . localizeMessage ( "guiMenuFileMnemonic" ) ) ) ; m_menuFileSave . setText ( s_logger . localizeMessage ( "guiMenuFileSave" ) ) ; m_menuFileSave . setToolTipText ( s_logger . localizeMessage ( "guiMenuFileSaveTip" ) ) ; m_menuFileSave . setMnemonic ( new Integer ( s_logger . localizeMessage ( "guiMenuFileSaveMnemonic" ) ) ) ; m_menuFileSave . setAccelerator ( KeyStroke . getKeyStroke ( KeyEvent . VK_S , ActionEvent . CTRL_MASK ) ) ; m_menuFileSave . setIcon ( new ImageIcon ( getImage ( "Save16.png" ) ) ) ; m_menuFileSave . addActionListener ( this ) ; m_menuFileClose . setText ( s_logger . localizeMessage ( "guiMenuFileClose" ) ) ; m_menuFileClose . setToolTipText ( s_logger . localizeMessage ( "guiMenuFileCloseTip" ) ) ; m_menuFileClose . setMnemonic ( new Integer ( s_logger . localizeMessage ( "guiMenuFileCloseMnemonic" ) ) ) ; m_menuFileClose . setAccelerator ( KeyStroke . getKeyStroke ( KeyEvent . VK_W , ActionEvent . CTRL_MASK ) ) ; m_menuFileClose . setIcon ( new ImageIcon ( getImage ( "Logout16.png" ) ) ) ; m_menuFileClose . addActionListener ( this ) ; m_menuFileExit . setText ( s_logger . localizeMessage ( "guiMenuFileExit" ) ) ; m_menuFileExit . setToolTipText ( s_logger . localizeMessage ( "guiMenuFileExitTip" ) ) ; m_menuFileExit . setMnemonic ( new Integer ( s_logger . localizeMessage ( "guiMenuFileExitMnemonic" ) ) ) ; m_menuFileExit . setAccelerator ( KeyStroke . getKeyStroke ( KeyEvent . VK_Q , ActionEvent . CTRL_MASK ) ) ; m_menuFileExit . setIcon ( new ImageIcon ( getImage ( "Cancel16.png" ) ) ) ; m_menuFileExit . addActionListener ( this ) ; m_menuFile . add ( m_menuFileSave ) ; m_menuFile . addSeparator ( ) ; m_menuFile . add ( m_menuFileClose ) ; m_menuFile . add ( m_menuFileExit ) ; m_menuHelp . setText ( s_logger . localizeMessage ( "guiMenuHelp" ) ) ; m_menuHelp . setMnemonic ( new Integer ( s_logger . localizeMessage ( "guiMenuHelpMnemonic" ) ) ) ; m_menuHelpInfo . setText ( s_logger . localizeMessage ( "guiMenuHelpInfo" ) ) ; m_menuHelpInfo . setMnemonic ( new Integer ( s_logger . localizeMessage ( "guiMenuHelpInfoMnemonic" ) ) ) ; m_menuHelpInfo . setAccelerator ( KeyStroke . getKeyStroke ( KeyEvent . VK_F1 , 0 ) ) ; m_menuHelpInfo . setIcon ( new ImageIcon ( getImage ( "Help16.png" ) ) ) ; m_menuHelpInfo . addActionListener ( this ) ; m_menuHelpAbout . setText ( s_logger . localizeMessage ( "guiMenuHelpAbout" ) ) ; m_menuHelpAbout . setMnemonic ( new Integer ( s_logger . localizeMessage ( "guiMenuHelpAboutMnemonic" ) ) ) ; m_menuHelpAbout . setIcon ( new ImageIcon ( getImage ( "About16.png" ) ) ) ; m_menuHelpAbout . addActionListener ( this ) ; m_menuHelp . add ( m_menuHelpInfo ) ; m_menuHelp . addSeparator ( ) ; m_menuHelp . add ( m_menuHelpAbout ) ; m_menuBar . add ( m_menuFile ) ; m_menuBar . add ( m_menuHelp ) ; m_frame . setJMenuBar ( m_menuBar ) ; addComponentsToPane ( m_frame . getContentPane ( ) ) ; ArrayList < String > vendors = s_dbEngine . getVendorList ( ) ; for ( String vendorName : vendors ) { m_sourceVendor . addItem ( vendorName . toLowerCase ( ) ) ; m_targetVendor . addItem ( vendorName . toLowerCase ( ) ) ; } resetSourceParameters ( ) ; resetTargetParameters ( ) ; resetMigrationMode ( ) ; resetOptions ( ) ; m_isInitialized = true ; m_frame . pack ( ) ; m_buttonStart . requestFocusInWindow ( ) ; m_frame . setLocationRelativeTo ( null ) ; m_frame . setVisible ( true ) ; }
create the gui and show it . for thread safety , this method should be invoked from the event - dispatching thread .
