This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 67176 - JavaDoc popup window buttons have not tooltips
Summary: JavaDoc popup window buttons have not tooltips
Status: CLOSED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: JDK_SPECIFIC
: 66382 70339 74770 98787 98823 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-20 10:56 UTC by kovica
Modified: 2011-06-09 09:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kovica 2005-10-20 10:56:08 UTC
I'm using NetBeans IDE Dev (Build 200510171800) on Linux and java 1.5.0_05.

In editor when JavaDoc popup window is shown it has some buttons on top, but
those buttons don't have any tooltips.
Comment 1 Martin Roskanin 2005-10-20 12:14:19 UTC
reproduced on winXP using jdk1.5
Comment 2 Martin Roskanin 2005-10-20 14:05:11 UTC
it looks like JDK problem. If there is component that is placed in heavyweight
popup, like in this case JButton on heavyWeight completion popup window, then
tooltip is not displayed because of the code in 
ToolTipManager.showTooltip:
	for (Container p = insideComponent.getParent(); p != null; p = p.getParent()) {
            if (p instanceof JPopupMenu) break;
	    if (p instanceof Window) {
		if (!((Window)p).isFocused()) {
		    return;
		}
		break;
	    }
	}


Popup.HeavyWeightWindow cannot be focused because of setFocusableWindowState(false);
in its constructor

The problem can be reproduced also on jdk1.6
Comment 3 Dusan Balek 2005-10-24 14:05:59 UTC
*** Issue 66382 has been marked as a duplicate of this issue. ***
Comment 4 Dusan Balek 2005-12-13 15:44:32 UTC
*** Issue 70339 has been marked as a duplicate of this issue. ***
Comment 5 Vitezslav Stejskal 2006-12-20 02:33:26 UTC
Still no tooltips in the main trunk - linux/gnome/jdk1.5.0_07. I am not sure how
this can be fixed, but I'm moving it to 'Code Completion' category to give it
more attention.
Comment 6 Vitezslav Stejskal 2007-02-11 06:42:18 UTC
*** Issue 74770 has been marked as a duplicate of this issue. ***
Comment 7 Dusan Balek 2007-03-23 18:43:15 UTC
*** Issue 98823 has been marked as a duplicate of this issue. ***
Comment 8 Dusan Balek 2007-03-23 18:46:53 UTC
There are tooltips, however, displayed behind JavaDoc popup :-(
CCing Mila.
Comment 9 Miloslav Metelka 2007-03-23 20:32:06 UTC
Well, it's sort of funny :)
I'm wondering whether this is not related to the fact that the popup created by
completion is not parented. We should first try to improve and apply the patch
from issue 58540 and check whether it resolves this as well before trying any
wilder solutions. 
 Only if that would not help we could experiment with overriding
JComponent.createToolTip() (which gets called for a component from the
ToolTipManager) etc.
Comment 10 Dusan Balek 2007-03-23 21:29:58 UTC
Milo, popups created by the code completion ARE parented since Feb 15.
Comment 11 Miloslav Metelka 2007-03-23 21:42:31 UTC
Strange, then why I'm still not able to select and copy the text from javadoc
popup in the current dev build? It was possible once I parented the javadoc
popup with the original patch in issue 58540. IIRC it only made all the popups
created by completion to be parented to the editor pane which was enough for
being able to select and copy the text from the javadoc popup. Not sure where
the problem is.
Comment 12 Miloslav Metelka 2007-04-13 22:58:01 UTC
As we've discussed with Dusan, the popups are parented but they are not
focusable. They were in my original patch so it's now clear that we need
focusability of the popups and proper handling of the possible focus traversal
among the popups and editor pane.
Comment 13 Jiri Prox 2007-08-17 08:45:10 UTC
*** Issue 98787 has been marked as a duplicate of this issue. ***
Comment 14 novakm 2007-10-16 08:36:25 UTC
Still valid in latest build of 6.0
Comment 15 Max Sauer 2008-02-26 18:21:06 UTC
Tooltips are displayed properly on JDK 1.6 on my system, but not on JDK 1.5.
---
Product Version: NetBeans IDE Dev (Build 080226)
Java: 1.6.0_04-dp; Java HotSpot(TM) 64-Bit Server VM 1.6.0_04-b12-45-optimized
System: Mac OS X version 10.5.2 running on x86_64; MacRoman; en_US (nb)
Userdir: /Users/maxa/.netbeans/dev

Comment 16 Max Sauer 2008-03-13 17:36:09 UTC
P4 IMO + works on JDK 1.6.
Comment 17 kovica 2008-03-13 17:47:12 UTC
I have
Product Version: NetBeans IDE 6.0.1 (Build 200801291616)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.22-14-generic running on i386; UTF-8; sl_SI (nb)
Userdir: /home/gregor/Apps/netbeans/USERDIR/60

and I still don't see any tooltips. Can someone verify on Linux?
Comment 18 Jiri Prox 2008-03-14 08:43:57 UTC
I can reproduce the issue in 6.0.1, but in 6.1 it's reproducible only with jdk1.5, with jdk1.6 it's ok


Product Version: NetBeans IDE Dev (Build 20080313092248)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Comment 19 Vitezslav Stejskal 2008-03-14 09:39:07 UTC
I have tooltips too on my Ubuntu 7.10 with:

Product Version: NetBeans IDE Dev (Build 080312)
Java: 1.6.0_10-ea; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/vita/devel/nb-ws/1

Please note that the JDK I'm using is an early access version of JDK6 Update 10. I didn't try other versions.
Comment 20 Dusan Balek 2008-12-02 13:57:45 UTC
Closing as WONTFIX.
Comment 21 Marian Mirilovic 2011-06-09 09:51:44 UTC
v/c