Examples of SettingsWindow


Examples of GUI.SettingsWindow

    if(mainWindow.getX() + mainWindow.getWidth() + 470 < screenSize.getWidth()){
      x = mainWindow.getX() + mainWindow.getWidth() + 10;
    }else if(mainWindow.getX() - 470 > 0){
      x = mainWindow.getX() - 460;
    }
    settingsWindow =  new SettingsWindow(new Rectangle(x,150,450,298), settings, this);
  }
View Full Code Here

Examples of graphics.SettingsWindow

    public ChatEngine(){
      this.settings=new Settings();
      conversation = new Conversation();
      connectWindow = new ConnectWindow();
        infoWindow = new InfoWindow();
        settingsWindow = new SettingsWindow();
        mainWindow = new MainWindow();
       
       
        mainWindow.setVisible(true);
       
View Full Code Here

Examples of gui.windows.SettingsWindow

        try {
            atmcModel = new ATMCModel(this);
            initComponents();
            connectTab = new ConnectTab(this);
            statusTab = new StatusTab();
            settingsWindow = new SettingsWindow(this);
            tabPane.add("Connection", (ConnectTab) connectTab);
            tabPane.add("Status", statusTab);


            this.validate();
View Full Code Here

Examples of lipstone.joshua.parser.SettingsWindow

      }
    };*/
    optionsClick = new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        SettingsWindow window = SettingsWindow.getSettingsWindow(core.getParser());
        Container c = core.getButtons();
        while ((c = c.getParent()) != null && !(c instanceof JFrame));
        if (c != null) {
          Point p = c.getLocation();
          p.x = p.x + c.getWidth();
          window.setLocation(p);
        }
        window.makeVisible();
      }
    };
    helpClick = new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        SettingsWindow window = SettingsWindow.getSettingsWindow(core.getParser());
        int index = window.indexOfTab("Help");
        if (index == -1)
          return;
        window.switchToTab(index);
        Container c = core.getButtons();
        while ((c = c.getParent()) != null && !(c instanceof JFrame));
        if (c != null) {
          Point p = c.getLocation();
          p.x = p.x + c.getWidth();
          window.setLocation(p);
        }
        window.makeVisible();
      }
    };
  }
View Full Code Here

Examples of org.jmule.ui.swt.settingswindow.SettingsWindow

    options_item.setImage(SWTImageRepository.getMenuImage("cog_edit.png"));
    options_item.setText(Localizer._("mainwindow.mainmenu.tools.options"));
   
    options_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        SettingsWindow window = new SettingsWindow();
        window.getCoreComponents();
        window.initUIComponents();
      }
    });
   
    // Help menu
    MenuItem helpItem = new MenuItem (this, SWT.CASCADE);
    helpItem.setText (Localizer._("mainwindow.mainmenu.help"));

    submenu = new Menu (shell, SWT.DROP_DOWN);
    helpItem.setMenu (submenu);
   
    MenuItem open_support_item = new MenuItem (submenu, SWT.PUSH);
    open_support_item.setText(Localizer._("mainwindow.mainmenu.help.open_support"));
    open_support_item.setImage(SWTImageRepository.getMenuImage("world_link.png"));
    open_support_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        SWTThread.getDisplay().asyncExec(new JMRunnable() {
          public void JMRun() {
            Program.launch(JMConstants.OPEN_SUPPORT);
          }
        })
      }
    });
   
    MenuItem bugtracker_item = new MenuItem (submenu, SWT.PUSH);
    bugtracker_item.setText(Localizer._("mainwindow.mainmenu.help.bug_tracker"));
    bugtracker_item.setImage(SWTImageRepository.getMenuImage("world_link.png"));
    bugtracker_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        SWTThread.getDisplay().asyncExec(new JMRunnable() {
          public void JMRun() {
            Program.launch(JMConstants.JMULE_BUG_TRACKER);
          }
        })
      }
    });
   
    /*MenuItem help_contents_item = new MenuItem (submenu, SWT.PUSH);
    help_contents_item.setText(Localizer._("mainwindow.mainmenu.help.contents"));
    help_contents_item.setImage(SWTImageRepository.getMenuImage("world_link.png"));
    help_contents_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        SWTThread.getDisplay().asyncExec(new JMRunnable() {
          public void JMRun() {
            Program.launch(JMConstants.ONLINE_HELP_WEB_SITE);
          }
        }); 
      }
    });*/
   
    MenuItem forum_item = new MenuItem (submenu, SWT.PUSH);
    forum_item.setText(Localizer._("mainwindow.mainmenu.help.forum"));
    forum_item.setImage(SWTImageRepository.getMenuImage("world_link.png"));
    forum_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        SWTThread.getDisplay().asyncExec(new JMRunnable() {
          public void JMRun() {
            Program.launch(JMConstants.JMULE_FORUMS);
          }
        });
      }
    });
   
    new MenuItem (submenu, SWT.SEPARATOR);
   
    MenuItem update_check_item = new MenuItem (submenu, SWT.PUSH);
    update_check_item.setText(Localizer._("mainwindow.mainmenu.help.updatecheck"));
    update_check_item.setImage(SWTImageRepository.getMenuImage("updater.png"));
    update_check_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        UpdaterWindow window = new UpdaterWindow();
        window.getCoreComponents();
        window.initUIComponents();
      }
     
    });
   
    new MenuItem (submenu, SWT.SEPARATOR);
   
    MenuItem about_item = new MenuItem (submenu, SWT.PUSH);
    about_item.setText(Localizer._("mainwindow.mainmenu.help.about"));
    about_item.setImage(SWTImageRepository.getMenuImage("information.png"));
    about_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        AboutWindow window = new AboutWindow();
        window.getCoreComponents();
        window.initUIComponents();
      }
    });
  }
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.