Solved

Tooltip text not displayed in JButton

Posted on 2003-10-27
6
261 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

705 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

12 Experts available now in Live!

Get 1:1 Help Now