Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create Windows XP Balloon like Tool Tip for a Java Text Field

843805Feb 7 2007 — edited Feb 7 2007
Dear Programmers,

Is there any method using which I can create a windows XP balloon like tool tip and add it to a Java Text Field?

I downloaded and used some package called �Tray Icon� but I am not satisfied with that because the balloon appears in the System tray area.

Let�s say, we created a Text Field for Name. There use of Numbers or Special characters is obviously not allowed!! Isn�t it??

So if someone gives special characters as Input, then I want to show an error message.

We can do it
1) simply we use JFormattedTextField tf=new JFormattedTextField();
2) or we can show a error message.
JOptionPane.showMessageDialog(this,�Incorrectname�,�Error�,JOptionPane.ERROR_MESSAGE);

But I want more graphics. Cant we show a tool tip balloon there??

Please if anyone knows the answer then kindly let me Know. Waiting for your reply.
Thanks in advance!!

Thobais
GB

Message was edited by:
thobais
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2007
Added on Feb 7 2007
3 comments
160 views