• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

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
0
ka_baskaran
Asked:
ka_baskaran
  • 3
  • 2
1 Solution
 
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
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
ka_baskaranAuthor Commented:
If it is not an 1.4.2 problem, then where is the problem?
0
 
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
 
ka_baskaranAuthor Commented:
Finally i got it,
I Just reorganize the code
Then tool tip shows
Thanx
Baskaran
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now