private static void createAndShowGUI()
  {
//    Logger.global.
    if ( TLanguageNames.runtime.isAvailable() )
    {
      Logger.global.finer( "languages found" ) ;
    }
    else
    {
      Logger.global.warning( "languages NOT found" ) ;
    }

    // load icons, initialize other resources and load theme
    GUIGlobals.init() ;
    GUIGlobals.loadTheme( SimpleTheme.getTheme("Moon") );

    TMainFrame frame = new TMainFrame() ;

    GUIGlobals.APPLICATION_MAINFRAME = frame ;
//    frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ) ;

    // put theme properties into frame
    GUIGlobals.updateTheme( frame ) ;

    //Display the window.
    frame.pack() ;

    // set size
//    frame.setSize( 500, 400 ) ;
    frame.setSize( TGlobal.config.getDirectInt( "mainWidth", 500 ),
                   TGlobal.config.getDirectInt( "mainHeight", 400 ) ) ;

    // center the frame on screen
    frame.setLocationRelativeTo( null ) ;

    frame.setVisible( true ) ;

    Logger.global.finest( "window visible" ) ;

    // load the last project
    if ( TGlobal.config.getAutomaticLastLoad() )
    {
      String name = TGlobal.config.getLastProject() ;
      boolean load = false ;
      if ( name != null )
      {
        if ( name.length() > 0 )
        {
          frame.loadAction.load( new File( name ));
          load = true ;
        }
      }

      // detect older popeye versions without project handling and generate a
      // project
      if ( ( !load )  && ( TGlobal.config.PREFS_VERSION > TGlobal.config.getVersion()))
      {
        if ( TGlobal.tools.createProjectFromScratch(
              TGlobal.config.getLastFileName() ) )
        {
          JOptionPane.showMessageDialog( null,
                 "New Project generated! Please use the Save Project options.",
                 "automatic project conversion",
                 JOptionPane.INFORMATION_MESSAGE ) ;
        }
      }
    }

  }