Unnamed
public java v1 · immutable// action listener in a Jdialog. it calls the startRead method which connect to the server, and display connection status and MOTD in a JTextAreabtnOk.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent e) { popup.dispose(); startRead(urlserveur.getText(),Integer.parseInt(fldPort.getText()),fldNick.getText(),fldChannel.getText()); } }); // The problem is that the program process the connection first, and then, set the text in the JTextArea :(