Draw a simple textbox in java?
I want to create 开发者_开发百科a simple textbox like in the picture in java. It displays a short text and close after a short time or we can click close button. Thanks first :)
..a short text and close after a short time ..
Tool tip
..or we can click close button.
JTextArea
or JEditorPane
in JDialog
(possibly also adding a javax.swing.Timer
to close it).
I've just resolved my problem using a simple JLabel and I use timer running in other thread to close it. Thanks guys :)
Use a glass pane to paint over other content.
http://download.oracle.com/javase/tutorial/uiswing/components/rootpane.html
精彩评论