Solved

Tooltip text not displayed in JButton

Posted on 2003-10-27
6
265 Views
Last Modified: 2008-03-03
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
0
Comment
Question by:ka_baskaran
  • 3
  • 2
6 Comments
 
LVL 7

Expert Comment

by:tomboshell
ID: 9632073
Could you post the part of your code that is causing the problem?
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 9632180
It is not a 1.4.2 problem. (it works on W2K + 1.4.2)
;JOOP!
0
 

Author Comment

by:ka_baskaran
ID: 9632259
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:ka_baskaran
ID: 9632266
If it is not an 1.4.2 problem, then where is the problem?
0
 
LVL 24

Accepted Solution

by:
sciuriware earned 300 total points
ID: 9639754
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
 

Author Comment

by:ka_baskaran
ID: 10085604
Finally i got it,
I Just reorganize the code
Then tool tip shows
Thanx
Baskaran
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
simple java question 3 56
even odd program using while loop 3 44
how to see all occupied ports on windows 10 laptop 15 68
Java string replace 11 49
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question