For example... I have :
How can I make it so it will print this out in an another GUI?Code:System.out.println("OHI");
Panel would be good aswell.
Printable View
For example... I have :
How can I make it so it will print this out in an another GUI?Code:System.out.println("OHI");
Panel would be good aswell.
Have a look at JOptionPane.
Nothing! Just read the API and tutorials and decide whether you can use it.
Noo!
I meant like a logging thing.
It logs everything on another window !
Jdailog with a JTextArea. Append the logs to the JTextArea, done.
So...
What do I put for >[???]< ?Code:JDialog dialog = new JDialog();
jTextArea1.setText(dialog.>[???]<);
You seem to have it backwards. The JTextArea would be added to the JDialog and then you'd add text to the JDialog. Myself, I'd try to place these guys in their own class and give the class a public appendText(...) method that allows outside classes to append text to the JDialog's JTextField.