Tooltip text not displayed in JButton

Hi guys,
      I create a application with JButton using j2sdk1.4.2. The problem is tooltiptext is not displayed over the JButton. But it will work fine in jre1.4.1. help me.....
Thanx in advance
Bye
Baskaran
ka_baskaranAsked:
Who is Participating?
 
sciuriwareCommented:
In cases like these I would comment out all statements that start "go." except for the tooltip.
If that won't work the problem is elsewhere.
Then re-enable the statements one by one ....
By the way: is an "example-from-the-book" working at all? It would qualify your machine,
O.S. and JAVA installation at once.
;JOOP!
0
 
tomboshellCommented:
Could you post the part of your code that is causing the problem?
0
 
sciuriwareCommented:
It is not a 1.4.2 problem. (it works on W2K + 1.4.2)
;JOOP!
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
ka_baskaranAuthor Commented:
This is my code
                  JButton go=new JButton(new ImageIcon(new URL(getCodeBase(),imageURLPath+"Go.gif")));
                  go.setBorder(null);
                  go.setCursor(new Cursor(Cursor.HAND_CURSOR));
                  go.setToolTipText("Open");
                  go.setFont(standardFont);
                  go.setBackground(editorBackgroundColor);
                  go.addActionListener(new DisplayProcess());
0
 
ka_baskaranAuthor Commented:
If it is not an 1.4.2 problem, then where is the problem?
0
 
ka_baskaranAuthor Commented:
Finally i got it,
I Just reorganize the code
Then tool tip shows
Thanx
Baskaran
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.