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 33888 - Options dialog has incorrect size
Summary: Options dialog has incorrect size
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-26 10:02 UTC by Jiri Skrivanek
Modified: 2008-12-23 09:42 UTC (History)
3 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 Jiri Skrivanek 2003-05-26 10:02:43 UTC
First time you open Options dialog it has zero
size (0x0), i.e. only title bar is shown.

Tested in build 200305260100, JDK1.4.1_02, Windows XP.
Comment 1 _ gtzabari 2003-05-30 16:16:40 UTC
Confirmed in May 30th build under OS/2, JDK 1.4.1_02. This bug is
still open.
Comment 2 mslama 2003-05-30 16:39:05 UTC
Marian please can you check. I use dev build on Linux RH 7.1, KDE
2.1.1 and never saw this.
Comment 3 Jiri Skrivanek 2003-06-02 08:08:04 UTC
I saw it only on Windows XP, Gili on OS/2. It is probably platform
dependent issue.
Comment 4 mslama 2003-06-02 15:55:53 UTC
Note: If Options window (it is NOT dialog) would have zero size
nothing would be shown. As at least title bar is shown it has nonzero
size. It seems OptionsPanel returns incorrect preferred size.

I found reason. As Peter did separation of window system to separate
module he removed call of 
((WorkspaceImpl) w).addToShownTcs(optionPanel);
so now optionsPanel returns incorrect preferred size: It causes
incorrect position of newly created Options window.

But this should not prevent Options window from showing. Jiri are you
able to reproduce it reliably? I could send you patch with logging to
see what is wrong.
Comment 5 Jiri Skrivanek 2003-06-02 16:02:19 UTC
Yes, it is easy to reproduce. I can test it with patch.
Comment 6 mslama 2003-06-03 12:39:31 UTC
Yes this is regression caused by removing call of componentShowing()
from OptionsAction.performAction when Options window is displayed for
the first time. (It happened when Peter did separation of window
system to module.)

I put explicit call of componentShowing() to initialize GUI of Options
panel sooner.
Comment 7 mslama 2003-06-03 12:44:55 UTC
Fixed in main trunk.

core/src/org/netbeans/core/actions/OptionsAction.java r.1.51
Comment 8 Jiri Skrivanek 2003-06-04 15:35:53 UTC
Verified in build 20030604-0018.