createConnection.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { makeConnectionInfo(); } });
createConnection.addActionListener(connectActionListener);
    public XdccIrc(IrcPlugin parent) {        this.parent = parent;        logger = Logger.getLogger(getClass());        try{            setLayout(new BorderLayout());            createConnection = new JButton("Connect");            createConnection.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent ae) {                    makeConnectionInfo();                }            });            newUserAction = new JButton("Talk Private");            newUserAction.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent ae) {                    newUser();                }            });            joinChannelAction = new JButton("Join a Channel");            joinChannelAction.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent ae) {                    joinChan();                }            });            changeNickAction = new JButton("Change nick");            changeNickAction.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent ae) {                    changeNick();                }            });            whoisAction = new JButton("Nick Info");            whoisAction.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent ae) {                    whois();                }            });            connectButton = new JButton("Connect");            cancelButton = new JButton("Cancel");            tabbedPane = createTabbedPane();            JPanel panel1 = new JPanel(new FlowLayout(FlowLayout.LEFT));            // Let's create a ToolBar            panel1.add(createConnection);            panel1.add(newUserAction);            panel1.add(joinChannelAction);            panel1.add(changeNickAction);            panel1.add(whoisAction);            add(panel1, BorderLayout.NORTH);            add(tabbedPane, BorderLayout.CENTER);            // mandatory things to do!            //setBounds(50, 50, 600, 400);            Toolkit theKit = java.awt.Toolkit.getDefaultToolkit();            Dimension dm = theKit.getScreenSize();            setBounds(dm.width / 6, dm.height / 6,                      (dm.width * 5) / 8, // width                      (dm.height * 2) / 3 // height                      );            setVisible(true);        }        catch(Exception e){            if (logger.isEnabledFor(Level.ERROR)){                logger.error("Unbehandelte Exception", e);            }        }    }