开发者

Draw a simple textbox in java?

开发者 https://www.devze.com 2023-03-07 05:15 出处:网络
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 :)

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

精彩评论

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