Package org.jmule.ui

Examples of org.jmule.ui.CommonUIPreferences


  public Launcher() {

    try {

      CommonUIPreferences _pref = CommonUIPreferences.getSingleton();

      if (_pref.getUIType().equals(JMuleUIManager.SWING_UI)) {
        splash = new JSplash();
      }

      if (_pref.getUIType().equals(JMuleUIManager.SWT_UI)) {
        // first of all we must start the swt thread
        SWTThread.getInstance().initialize();
        SWTThread.getInstance().start();
        splash = new SWTSplash();
      }
View Full Code Here


        connect_at_start_up.setText("Enable this option if you want JMule to connect at start up");

        connect_at_start_up.setSelected(false);

        CommonUIPreferences _pref = CommonUIPreferences.getSingleton();
        if(_pref.getUIType().equals("SWT")) {
          if(SWTPreferences.getInstance().isConnectAtStartup())
            connect_at_start_up.setSelected(true);
          else
            connect_at_start_up.setSelected(false);
        } else if(_pref.getUIType().equals("SWING")) {
          if(SwingPreferences.getSingleton().isConnectAtStartup())
            connect_at_start_up.setSelected(true);
          else
              connect_at_start_up.setSelected(false);
        }
View Full Code Here

TOP

Related Classes of org.jmule.ui.CommonUIPreferences

Copyright © 2018 www.massapicom. 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.