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 143933 - [65cat] Phantom button on Add business method dialog
Summary: [65cat] Phantom button on Add business method dialog
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: pslechta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 14:46 UTC by vanob
Modified: 2008-12-14 10:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
add business method dialog (15.48 KB, image/png)
2008-08-14 14:46 UTC, vanob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vanob 2008-08-14 14:46:13 UTC
[ BUILD # : 200808111757 ]
[ JDK VERSION : 1.6.0 ]

1. Create session bean with default settings
2. Inside session bean press Alt+Insert and choose add business
method.
3. When dialog appears press Alt. On the dialog this strange button
appears. See the image
Comment 1 vanob 2008-08-14 14:46:48 UTC
Created attachment 67417 [details]
add business method dialog
Comment 2 David Konecny 2008-08-14 22:24:16 UTC
I cannot reproduce but I'm not on Windows. Try to reproduce it please and resize the dialog to see what happens. Looks
to me like panel was not repainted properly. There are no other buttons then add/remove/up/down.
Comment 3 pslechta 2008-08-15 11:26:44 UTC
Reproducible on Win XP. Once you switch between Exceptions and Parameters tabs, the dialog is OK.
Comment 4 pslechta 2008-08-18 13:22:58 UTC
Tried to replicate one more time but not able to do it right now... Seems to be random problem...
Comment 5 David Konecny 2008-08-19 08:03:11 UTC
Sounds like layout manager problem? Pressing Alt on Windows shows mnemonics which will cause dialog redraw. Perhaps form
has something wrong - re-aligning all items in form could resolve the problem. But if reproducible it would be
interesting to know what's happening and what's wrong.
Comment 6 pslechta 2008-08-20 16:40:34 UTC
Steps to reproduce: open Add business method dialog and press Alt. Buttons are repainted and you see also phantom
buttons (these buttons are from the second tab, which should not be visible, because the first tab is active at the time)...
Comment 7 pslechta 2008-08-20 16:44:28 UTC
JDK (Swing) issue (I'm able to reproduce with very simple example outside of NetBeans). I did file a bug against Java SDK.

Fixed.

http://hg.netbeans.org/main/rev/76f2a3973cb8

Fixed based on workaround: do not call JPanel.setVisible(true) on JPanel that belongs to JTabbedPane...
Comment 8 Quality Engineering 2008-08-21 06:04:00 UTC
Integrated into 'main-golden', available in build *200808210201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/76f2a3973cb8
User: pslechta@netbeans.org
Log: #143933 [65cat] Phantom button on Add business method dialog
Comment 9 mvanek 2008-12-14 10:56:27 UTC
verified.
NetBeans IDE Dev (Build 200812080201)