开发者

Console within a JFrame

I wa开发者_StackOverflownt 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.


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


Use a JEditorPane, it is the most flexible.


I'd suggest you JTextArea or JScrollPane.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜