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]

# 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