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

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 揟ray Icon?but I am not satisfied with that because the balloon appears in the System tray area.

Let抯 say, we created a Text Field for Name. There use of Numbers or Special characters is obviously not allowed!! Isn抰 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,擨ncorrectname?擡rror?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

[986 byte] By [thobaisa] at [2007-11-26 17:36:57]
# 1

Hi,

Sometime ago there was an article on java.net about bubblepanel. You may want to check that out. The link is http://today.java.net/pub/a/today/2005/07/12/visualizations.html?page=last

This however isn't a tooltip and you will have to do your own work for that.

cheers,

vidyut

vidyuta at 2007-7-9 0:05:05 > top of Java-index,Desktop,Core GUI APIs...
# 2

> 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 揟ray Icon?br>> but I am not satisfied with that because the balloon

> appears in the System tray area.

>

> Let抯 say, we created a Text Field for Name. There

> use of Numbers or Special characters is obviously not

> allowed!! Isn抰 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,擨ncorrectname?擡r

> ror?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

Why not just create your own like tooltip graphic using any of the drawing application like coral draw then call it every time you want to issue an error massage and using the draw string method to draw the message string? Think Hard!!!

You can actually as well implement your own class to make this possible

good luck

Sq2000

Sq2000a at 2007-7-9 0:05:05 > top of Java-index,Desktop,Core GUI APIs...
# 3
yes Dear sq2000!but how can i draw balloon like picture?(i do poor drawings :))
thobaisa at 2007-7-9 0:05:05 > top of Java-index,Desktop,Core GUI APIs...