Reputation: 11357
I want a scrollable console within a JFrame, so people can see messages while using the GUI.
I'm currently using a JLabel, but this obviously only allows one message at a time.
Upvotes: 1
Views: 2079
Reputation: 5553
Have you checked the JTextArea Swing component?
This tutorial should help you as there is a scrollable text area in one of the samples: http://download.oracle.com/javase/tutorial/uiswing/components/textfield.html
Upvotes: 5