Examples of MainFrame


Examples of com.salas.bb.views.mainframe.MainFrame

            int newType = (Integer)evt.getNewValue();
            controller.changeTagsStorage(newType);
        } else if (UserPreferences.PROP_SHOW_TOOLBAR_LABELS.equals(prop))
        {
            boolean visible = (Boolean)evt.getNewValue();
            MainFrame mainFrame = controller.getMainFrame();
            if (mainFrame != null) mainFrame.setToolbarLabelsVisible(visible);
        } else if (UserPreferences.PROP_SHOW_UNREAD_BUTTON_MENU.equals(prop))
        {
            boolean visible = (Boolean)evt.getNewValue();
            UnreadButton.setShowMenuOnClick(visible);
        } else if (UserPreferences.PROP_SHOW_TOOLBAR.equals(prop))
        {
            boolean visible = (Boolean)evt.getNewValue();
            MainFrame mainFrame = controller.getMainFrame();
            if (mainFrame != null) mainFrame.setToolbarVisible(visible);
        } else if (UserPreferences.PROP_UPDATE_FEEDS.equals(prop))
        {
            boolean update = (Boolean)evt.getNewValue();
            controller.getPoller().setUpdateFeedsManually(update);
        } else if (UserPreferences.PROP_UPDATE_READING_LISTS.equals(prop))
        {
            boolean update = (Boolean)evt.getNewValue();
            controller.getPoller().setUpdateReadingListsManually(update);
        } else if (UserPreferences.PROP_PROXY_ENABLED.equals(prop) ||
            UserPreferences.PROP_PROXY_HOST.equals(prop) ||
            UserPreferences.PROP_PROXY_PORT.equals(prop))
        {
            controller.setProxySettings((UserPreferences)evt.getSource());
        } else if (UserPreferences.PROP_SHOW_APPICON_IN_SYSTRAY.equals(prop))
        {
            NotificationArea.setAppIconAlwaysVisible((Boolean)evt.getNewValue());
        } else if (UserPreferences.PROP_MINIMIZE_TO_SYSTRAY.equals(prop))
        {
            MainFrame mainFrame = controller.getMainFrame();
            if (mainFrame != null) mainFrame.setMinimizeToSystemTray((Boolean)evt.getNewValue());
        } else if (UserPreferences.PROP_DIB_MODE.equals(prop))
        {
            int mode = (Integer)evt.getNewValue();
            if (controller.dockIconUnreadMonitor != null) controller.dockIconUnreadMonitor.setMode(mode);
        }
View Full Code Here

Examples of com.salas.bb.views.mainframe.MainFrame

     *
     * @return Main Window Frame.
     */
    protected AbstractFrame createMainFrame()
    {
        MainFrame mainFrame = new MainFrame(connectionState);

        Application.setDefaultParentFrame(mainFrame);
        GlobalController.SINGLETON.setMainFrame(mainFrame);

        return mainFrame;
View Full Code Here

Examples of com.sun.enterprise.tools.upgrade.gui.MainFrame

            CliLogMessageListener l = new CliLogMessageListener();
            LogService.addLogMessageListener(l)//to log and output command line parsing
            new ArgsParser(args, commonInfo).parse();
            LogService.removeLogMessageListener(l);
        }
        MainFrame gui = new MainFrame(commonInfo);
        LogService.addLogMessageListener(gui);
        gui.addDialogListener(new DialogListener(){
            public void dialogProcessed(DialogEvent evt){
                processUIEvent(evt);
            }
        });
        UpdateProgressManager.getProgressManager().addUpgradeUpdateListener(gui);
        gui.setVisible(true);
    }
View Full Code Here

Examples of com.sun.enterprise.tools.verifier.gui.MainFrame

     *             returns failure_count+error_count otherwise.
     */
    public static void main(String[] args) throws IOException {
        Verifier verifier = new Verifier(args);
        if (verifier.frameworkContext.isUsingGui()) {
            MainFrame mf = new MainFrame(
                    verifier.frameworkContext.getJarFileName(), true, verifier);
            mf.setSize(800, 600);
            mf.setVisible(true);
        } else {
            LocalStringManagerImpl smh = StringManagerHelper.getLocalStringsManager();
            try {
                verifier.verify();
            } catch (Exception e) {
View Full Code Here

Examples of com.sun.j3d.utils.applet.MainFrame

  public static void main(String argv[])
  {
   
    BranchGroup group;
   
    new MainFrame(new Java3DTest(), 500, 500);
  }
View Full Code Here

Examples of com.suwish.pc.ui.main.MainFrame

      if(!StringUtils.isEmpty(lookFeel)){
        UIManager.setLookAndFeel(lookFeel);
      }
    }catch(Exception ex){}
    PhoneManager.getInstance().initEvt();
    new MainFrame();
   
//    Class<?> setting = getClass().getClassLoader().loadClass("com.suwish.pc.Setting");
//    setting.getMethod("initConfiguration", (Class[])null).invoke(setting, (Object[])null);
//    Class<?> clazz = getClass().getClassLoader().loadClass("com.suwish.pc.ui.main.MainFrame");
//    clazz.newInstance();
View Full Code Here

Examples of com.test.wordprocessor.ui.MainFrame

  /**
   * @param args
   */
  public static void main(String[] args) {

    MainFrame frame = new MainFrame("BestDraft Word Processor");
    frame.setBounds(320, 120, 600, 500);
    frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    frame.setVisible(true);
  }
View Full Code Here

Examples of de.kopis.jusenet.ui.MainFrame

       
        new JUsenet();
    }
   
    public JUsenet() {
        MainFrame frame = new MainFrame();
        frame.setVisible(true);
    }
View Full Code Here

Examples of de.netsysit.view.MainFrame

       
        ActionFactory.init();
  EventQueue.invokeLater(new Runnable() {
            @Override public void run() {
                try {
                    MainFrame mainFrame = MainFrame.getInstance();
                    mainFrame.setLocationRelativeTo(null);
                    mainFrame.setVisible(true);
                } catch (Exception e) {System.out.println(e.getMessage());}
    }
  });
       
       
View Full Code Here

Examples of de.sciss.eisenkraut.gui.MainFrame

    final List          warnings;
    final Preferences      prefs      = getUserPrefs();
    final double        prefsVersion;
//    final ObserverPalette    frameObserver;
//    final ControlRoomFrame    paletteCtrlRoom;
    final MainFrame        mainFrame;
//    final CacheManager      cacheManager;
    final OSCRoot        oscServer;
    final SuperColliderClient  superCollider;
    String            lafName;
    List            openDoc      = null;

    // ---- init prefs ----

    oscServer      = new OSCRoot( prefs.node( OSCRoot.DEFAULT_NODE ), 0x4549 );
    prefsVersion = prefs.getDouble( PrefsUtil.KEY_VERSION, 0.0 );
    if( prefsVersion < APP_VERSION ) {
      warnings = PrefsUtil.createDefaults( prefs, prefsVersion );
    } else {
      warnings = null;
    }
   
    // ---- check commandline options ----

        // WebLookAndFeel.install();
        // System.out.println(UIManager.getLookAndFeel().getName());
        UIManager.installLookAndFeel("WebLookAndFeel", "com.alee.laf.WebLookAndFeel");
        WebCheckBoxStyle   .animated            = false;
        WebProgressBarStyle.progressTopColor    = Color.lightGray;
        WebProgressBarStyle.progressBottomColor = Color.gray;
        // XXX TODO: how to really turn of animation?
        WebProgressBarStyle.highlightWhite      = new Color(255, 255, 255, 0); // 48)
        WebProgressBarStyle.highlightDarkWhite  = new Color(255, 255, 255, 0);

    lafName = prefs.get( PrefsUtil.KEY_LOOKANDFEEL, null );
    for( int i = 0; i < args.length; i++ ) {
      if( args[ i ].startsWith( "-" )) {
        if( args[ i ].equals( "-laf" )) {
          if( (i + 2) < args.length ) {
            UIManager.installLookAndFeel( args[ i + 1 ], args[ i + 2 ]);
            if( lafName == null ) lafName = args[ i + 2 ];
            i += 2;
          } else {
            System.err.println( "Option -laf requires two additional arguments (screen-name and class-name)." );
            System.exit( 1 );
          }
        } else {
          System.err.println( "Unknown option " + args[ i ]);
          System.exit( 1 );
        }
      } else {
        if( openDoc == null ) openDoc = new ArrayList();
        openDoc.add( args[ i ]);
      }
    }
       
    // ---- init look-and-feel ----

    System.setProperty( "swing.aatext", "true" );
    lookAndFeelUpdate( lafName );

//    JFrame.setDefaultLookAndFeelDecorated( true );

    // ---- init infrastructure ----
    // warning : reihenfolge is crucial
//    oscServer      = new OSCRoot( prefs.node( OSCRoot.DEFAULT_NODE ), 0x4549 );
    osc          = new OSCRouterWrapper( oscServer, this );
    final CacheManager cache = new PrefCacheManager( prefs.node( PrefCacheManager.DEFAULT_NODE ));
    superCollider    = new SuperColliderClient();

    init();
   
    // ---- listeners ----

    quitAfterSaveListener = new ProcessingThread.Listener() {
      public void processStarted( ProcessingThread.Event e ) { /* empty */ }

      // if the saving was successfull, we will call closeAll again
      public void processStopped( ProcessingThread.Event e )
      {
        if( e.isDone() ) {
          quit();
        }
      }
    };

    try {
      superCollider.init();
    }
    catch( IOException e1 ) {
      BasicWindowHandler.showErrorDialog( null, e1, "SuperColliderClient Initialization" );
      System.exit( 1 );
      return;
    }

//    scPlugInManager    = new SCPlugInManager( this );

    // ---- component views ----

    mainFrame    = new MainFrame();
    ((BasicWindowHandler) getWindowHandler()).setDefaultBorrower( mainFrame );
    final AppWindow ctrlRoom  = new ControlRoomFrame();
    final AppWindow observer  = new ObserverPalette();

    // means no preferences found, so
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.