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 12451 - Actions from popupmenu not fully visible
Summary: Actions from popupmenu not fully visible
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords: UI
: 19954 20011 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-05-26 20:25 UTC by emmanuel
Modified: 2008-12-22 18:47 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
CVS action menus - a) visible b) partly behind quick launch (83.69 KB, image/jpeg)
2001-07-20 20:35 UTC, emmanuel
Details
Action menu in 'editing source editor' also not fully visible (49.75 KB, image/jpeg)
2001-07-20 20:35 UTC, emmanuel
Details
Action menu in 'editing source editor' also not fully visible (49.75 KB, image/jpeg)
2001-07-20 20:35 UTC, emmanuel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emmanuel 2001-05-26 20:25:14 UTC
I use NB3.2 build 192.

With the default font size, the bottom part of CVS filesystem action menu (not 
the individually checked out files) displays behind the Windows quick launch 
bar.  When NB ide.cfg changed to fontsize 10, all is visible.  The quick 
launch BTW is on the second row from the bottom on my installation.  The very 
bottom row is where the open program icons are.  When I close the second row, 
and have the quick launch and open programs on the same row as the Windows 
start button and system tray, abovementioned action menu is fully visible. 

Could this be corrected please?

Kind regards
Emmanuel
Comment 1 emmanuel 2001-05-26 20:27:31 UTC
Created attachment 1441 [details]
CVS action menus - a) visible b) partly behind quick launch
Comment 2 emmanuel 2001-05-28 06:49:45 UTC
Created attachment 1442 [details]
Action menu in 'editing source editor' also not fully visible
Comment 3 emmanuel 2001-05-28 06:51:03 UTC
Created attachment 1443 [details]
Action menu in 'editing source editor' also not fully visible
Comment 4 Martin Entlicher 2001-05-28 11:27:15 UTC
Not sure whether org.openide.awt.JPopupMenuPlus can do anything about this.
Comment 5 Jan Zajicek 2001-05-28 14:00:54 UTC
The problem is that we cannot obtain if there exist some taskbar and the bounds
of the taskbar. This is general problem of all java applications on windows
platforms. If you can, please file an enhancement into the JDC at
(java.sun.com), thanks.
Comment 6 emmanuel 2001-05-28 21:02:05 UTC
I filed with java.sun.com., please advise what happens from here on.
Comment 7 Jiri Mzourek 2001-05-29 09:25:16 UTC
Emmanuel, as Jan mentioned, this is general problem in java apps., so we are not
able to easy solve this now. Thanks!

Comment 8 emmanuel 2001-06-11 21:45:19 UTC
Hello all,

Thank you for your assistance.  Here is my feedback.  I filed this with SUN and 
their reply follows below - in short, JDK1.4 addresses the "Taskbar bounds".

What I'm not sure of is, would this automatically be fixed once jdk1.4 is 
released or must NB also make changes in this regard?  Please advise.

Regards
Emmanuel

------------------------------------------------------------------------------
Please see # 4032847 and other bugs noted at:

http://search.java.sun.com/Search/java?qt=%2Btaskbar+%2Bwindows&col=obug&rf=0

(remove linefeeds/spaces from URL before pasting into browser)

# 4032847 is marked as fixed in merlin-beta (1.4 beta), the first public 
version of
which is already available at:
	http://java.sun.com/products/j2se/1.4

You may want to review it.


----------------- Original Bug Report-------------------

category : java
subcategory : classes_awt
release : 1.3
type : bug
synopsis : Java does not make "Taskbar bounds" available
description : D:\jdk1.3\bin>java -version > jdk.txt
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


Here is a full description of bug as placed with Netbeans and their reply;

http://www.netbeans.org/issues/show_bug.cgi?id=12451


---------

31 May 2001, eval1127@eng -- please see # 4032847 and other bugs noted at:
http://search.java.sun.com/Search/java?qt=%2Btaskbar+%2Bwindows&col=obug&rf=0

# 4032847 is marked as fixed in merlin-beta (1.4 beta), the first public 
version of
which is already available at:
	http://java.sun.com/products/j2se/1.4

You may want to review it.

workaround : Used smaller font
suggested_val : 
cust_name : Emmanuel van der Meulen
cust_email : emmanuel@icon.co.za
jdcid : emmanuelsun
keyword : webbug
company : Private
hardware : x86
OSversion : windows_2000
bugtraqID : 4032847
dateCreated : 2001-05-28 12:50:22.6
dateEvaluated : 2001-05-31 22:59:51.121

Comment 9 Lukas Hasik 2002-01-10 18:16:13 UTC
closing
Comment 10 Lukas Hasik 2002-01-10 18:16:34 UTC
jdk bug
Comment 11 emmanuel 2002-01-12 07:47:14 UTC
I'd like to bring this point across;

My understanding is that even though this was a jdk bug, which is now 
fixed, that NB is required to make provision for the second bottom 
bar.  I do not know whether this is correct, but jdk now makes 
available the fact that a second bar exists, for the app, in this 
case NB to make provision for it.

Please would you investigate.
Comment 12 iformanek 2002-01-14 08:38:57 UTC
I claim this bug in the name of UI team.
We need to fix this usability problem, even if the fix would require 
JNI code to find out the taskbar coordinates.
Clearly, on JDK 1.4, we need to make sure we use its new abilities 
correctly.
Comment 13 emmanuel 2002-01-14 11:17:48 UTC
Thank you for your willingness to attend to the issue.
Comment 14 Jiri Mzourek 2002-01-14 13:56:23 UTC
Target milestone changed.
Comment 15 Jiri Mzourek 2002-01-14 17:38:12 UTC
3.3.1_WAIVER keyword added
Comment 16 iformanek 2002-01-17 08:08:27 UTC
I approve the waiver for 3.3.1
Comment 17 Jan Chalupa 2002-01-17 09:08:54 UTC
Waiver approved by QA.
Comment 18 eadams 2002-01-18 10:22:02 UTC
Approved for waiver.

I have good news, there is a hidden workaround.  The
property netbeans.screen.rect can be set on the command
line.  It describes the rectangle on the screen where 
the menus will be described.  It was intended for the 
case were Windows user has a task bar that is not at the
bottom or is more then one row tall.  

If you screen is 1024x768 and you have a two row task bar
at 20 pixels per row (my guess), then try

     runide.exe -J-Dnetbeans.screen.rect=0,0,1024,728

This hidden property should not be considered a fix, its
a hack.  We should fix this bug early in the 3.4 release
cycle.
Comment 19 emmanuel 2002-01-27 04:18:21 UTC
Hello Evan,

My screen is 1280x960 so I used -J-Dnetbeans.screen.rect=0,0,1280,960 
in ide.cfg, but it made no change.

I'll wait until the issue is resolved, thank you.

Kind regards
Emmanuel
Comment 20 eadams 2002-01-27 16:49:35 UTC
Emmanuel,

If you set netbeans.screen.rect to the size of the screen
it will have no affect.  

In your case, you have two rows of task bar at the bottom.
Assuming a task bar row is 20 pixels, then you need to 
subtract 40 from the height field and use 920.

Try using -J-Dnetbeans.screen.rect=0,0,1280,920 and see if
that fixes the problem.
Comment 21 Jan Zajicek 2002-01-30 18:05:21 UTC
*** Issue 19954 has been marked as a duplicate of this issue. ***
Comment 22 Gabor Nagypal 2002-01-31 10:00:57 UTC
The -J-Dnetbeans.screen.rect hack does not solve issue 19954, which 
was marked as a duplicate of this bug.
Comment 23 Jan Zajicek 2002-01-31 12:54:09 UTC
-J-Dnetbeans.screen.rect is only hack/workaround - we need jdk to be
able to return right constraints taking taskbar into account and
display new dialogs right.

Comment 24 Jiri Mzourek 2002-02-13 13:57:26 UTC
*** Issue 20011 has been marked as a duplicate of this issue. ***
Comment 25 Jan Chalupa 2002-04-16 09:13:58 UTC
Requesting waiver for FFJ 4.0 (Orion).
Comment 26 Jan Chalupa 2002-05-02 10:50:54 UTC
Waiver approved.
Comment 27 Marian Mirilovic 2002-05-28 13:06:32 UTC
It's reproducible on [orion](rc5), [jdk1.4](fcs), Linux RH7.1/Gnome1.4
Comment 28 _ ttran 2002-06-07 15:39:19 UTC
this bug has been fixed if you have jdk 1.4 which implements
java.awt.Toolkit.getScreenInsets() correctly which unfortunately is
not always true.  In that case the user can tell the IDE explicitly
the size/positions of the taskbars using

-J-Dnetbeans.screen.insets=<top>,<left>,<bottom>,<right>

(I've fixed this bug as part of making IDE usable in multiple monitor
setup)
Comment 29 Marian Mirilovic 2003-01-08 12:36:57 UTC
verified in [nb_dev](20030108)
Comment 30 Quality Engineering 2003-07-01 16:34:49 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.