Solved

Tooltip text not displayed in JButton

Posted on 2003-10-27
6
264 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

862 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now