开发者

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 :)

Draw a simple textbox in java?


..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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜