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 61474 - Problems selecting a border for a JPanel
Summary: Problems selecting a border for a JPanel
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-27 17:16 UTC by _ gsporar
Modified: 2005-09-05 09:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample output (9.43 KB, image/png)
2005-07-27 17:17 UTC, _ gsporar
Details
sample output (11.22 KB, image/png)
2005-07-27 17:18 UTC, _ gsporar
Details
sample output (15.51 KB, image/png)
2005-07-27 17:18 UTC, _ gsporar
Details
sample output (11.51 KB, image/png)
2005-07-27 17:18 UTC, _ gsporar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gsporar 2005-07-27 17:16:51 UTC
I'm trying to build a simple Find Dialog; see endResult.png.

After I add the two checkboxes (see beforeAdd.png) I add a JPanel to contain the
radio buttons.  Here are the steps I follow:

1. Click JPanel in the Palette list.
2. Click to drop the JPanel into place on the dialog.
3. After the JPanel has been dropped, move the mouse around a bit, but keep it
inside the border shown for the new JPanel.
4. Right-click and select Properties to bring up the Properties dialog.
5. Click the ... button next to the border property to bring up the border
selection dialog.
6. Click "Titled Border" so that the dialog will display the properties for a
titled border.
7. Click next to Title and type in the title: Direction.
8. Click OK to close the border selection dialog.
9. Click Close to close the properties dialog.
10. Move the mouse back onto the dialog.  The form editor doesn't draw it
correctly - see broken.png for an example.

It appears that the form editor is confused about that JPanel - if I select
another component (for example the text field) the JPanel disappears because the
form editor doesn't seem to realize that it should have a border.

There are no exceptions shown in the IDE's message log file.  I am using the Q
build from 20050726.

Important note: If I omit step #3 the problem doesn't seem to occur and I end up
with the correct result (see notBroken.png).  So if I have a very steady hand on
the mouse I can get this to work: drop the JPanel and then without moving the
mouse at all right-click the mouse in order to bring up the properties dialog
box.  Sometimes I'm steady enough, sometimes I'm not.... :-)
Comment 1 _ gsporar 2005-07-27 17:17:34 UTC
Created attachment 23325 [details]
sample output
Comment 2 _ gsporar 2005-07-27 17:18:01 UTC
Created attachment 23326 [details]
sample output
Comment 3 _ gsporar 2005-07-27 17:18:18 UTC
Created attachment 23327 [details]
sample output
Comment 4 _ gsporar 2005-07-27 17:18:34 UTC
Created attachment 23328 [details]
sample output
Comment 5 Jan Stola 2005-08-03 13:29:28 UTC
Fixed.
Comment 6 _ gsporar 2005-08-17 01:26:00 UTC
When will this fix be in a dev. build?
Comment 7 Tomas Pavek 2005-08-17 17:20:14 UTC
It is already there. All fixes go to trunk so appear in dev builds the next day.