Package com.l2client.gui.dialogs

Examples of com.l2client.gui.dialogs.ChatPanel


      @Override
      public void run() {
       
        Singleton.get().getGuiController().displayAdminTelePanel();
       
        final ChatPanel pan = Singleton.get().getGuiController().displayChatJPanel();
        clientInfo.getChatHandler().setChatPanel(pan);
        pan.addChatListener(new KeyListener() {
         
          @Override
          public void keyTyped(KeyEvent e) {
          }
         
          @Override
          public void keyReleased(KeyEvent e) {     
          }
         
          @Override
          public void keyPressed(KeyEvent e) {
            if(KeyEvent.VK_ENTER == e.getKeyCode()){
              clientInfo.getChatHandler().sendMessage(pan.getChatMessage());
            }
          }
        });
      }
    });
View Full Code Here


    final JDesktopPane desktopPane = jmeDesktop.getJDesktop();
//    desktopPane.removeAll();

    final JInternalFrame internalFrame = new TransparentInternalFrame();   
    final ChatPanel pan = new ChatPanel();
    pan.validate();
    internalFrame.add(pan);
    internalFrame.setVisible(true);
    internalFrame.setSize(new java.awt.Dimension(320, 250));
    internalFrame.pack();
    internalFrame.setLocation(0,desktopPane.getHeight()-internalFrame.getHeight());
    desktopPane.add(internalFrame);
   
    // minimize on mouse out maximize on mouse in
    MinMaxListener mima = new MinMaxListener(internalFrame, "Chatwindow", pan, desktopPane);
    pan.addMouseListener(mima);

    wireInputSwitch(new ArrayList<BaseUsable>()/*must pass empty otherwise not overriden*/, pan);

    desktopPane.repaint();
    desktopPane.revalidate();
View Full Code Here

TOP

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

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.