Package com.l2client.gui.dialogs

Examples of com.l2client.gui.dialogs.GameServerJPanel


              if(true) return;
             
             
              //game server selection
              if(servers != null && servers.length >0){
                final GameServerJPanel p = Singleton.get().getGuiController().displayServerSelectionJPanel(servers);
                p.addCancelActionListener(new ActionListener(){
              @Override
              public void actionPerformed(ActionEvent e) {
                // this gets executed in jme thread
                // do 3d system calls in jme thread only!
                doDisconnect(false, "", -1);
                //FIXME this is just for the testcase
                doLogin();
              }
            });
                p.addSelectActionListener(new ActionListener(){
              @Override
              public void actionPerformed(ActionEvent e) {
                // this gets executed in jme thread
                // do 3d system calls in jme thread only!
                requestServerLogin(p.getSelectedServer());
              }
            });
              }
              else {
                Singleton.get().getGuiController().showErrorDialog("Failed to Connect to login server");
View Full Code Here


    desktopPane.removeAll();

    final JInternalFrame internalFrame = new TransparentInternalFrame();

    internalFrame.setLocation(desktopPane.getWidth()/2-200, desktopPane.getHeight()/2-150);
    final GameServerJPanel pan = new GameServerJPanel(serverInfos);
    internalFrame.add(pan);
   
    internalFrame.setVisible(true);
    internalFrame.setSize(new java.awt.Dimension(400, 300));
    internalFrame.pack();

    desktopPane.add(internalFrame);
   
    wireInputSwitch(new ArrayList<BaseUsable>()/*must pass empty otherwise not overriden*/, pan);
   
     // standard swing action:
    pan.addCancelActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        // this gets executed in swing thread
        // alter swing components only in swing thread!
        internalFrame.setVisible(false);
        desktopPane.remove(internalFrame);
      }
    });
    pan.addSelectActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        // this gets executed in swing thread
        // alter swing components ony in swing thread!
        internalFrame.setVisible(false);
        desktopPane.remove(internalFrame);
View Full Code Here

TOP

Related Classes of com.l2client.gui.dialogs.GameServerJPanel

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.