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 64173 - JPanel as immediate child of JSplitPane is not shown correctly in design view
Summary: JPanel as immediate child of JSplitPane is not shown correctly in design view
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 02:28 UTC by ametzger
Modified: 2005-09-16 13:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot showing disagreement between navigator and design form (302.12 KB, image/jpeg)
2005-09-13 02:29 UTC, ametzger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ametzger 2005-09-13 02:28:45 UTC
As the attached screen shot shows, when a JPanel is the immediate child of a
JSplitPane then the design view is not shown correctly.  First, the JSplitPane
continues to show the mysterious "left button" and "right button" values when no
"buttons" exist in the form.  Secondly, the actual left child component in my
example (which is a JTextField) is shown below the split pane divider bar when
it should be above the bar.
Comment 1 ametzger 2005-09-13 02:29:38 UTC
Created attachment 24719 [details]
screen shot showing disagreement between navigator and design form
Comment 2 Jan Stola 2005-09-13 14:23:10 UTC
The "mysterious" buttons are buttons created by JSplitPane when
its components are not set. The text field and the panel aren't placed
in the split pane, they are placed directly in JFrame's content pane.
Comment 3 ametzger 2005-09-13 15:37:26 UTC
Sorry for the misleading bug report.  But, I have a rationalization :)

The reason that the JPanel is still directly under the JFrame is that I failed
to notice that NetBeans didn't complete the change in hierarchy when I used
drag-n-drop in the navigator tree to drag the JPanel from the JFrame to the
JSplitPane.

While trying to reproduce the scenario today, I received a RuntimeException.

The messages.log is attached.

Steps to reproduce (all components added from Navigator tree view):

Create new java app.
Add JFrame form.
Add JPanel to JFrame.
Add JTextFied to JPanel.
Add JSplitPane to JFrame.
Drag JPanel directly on top of JSplitPane node in navigator view.
RuntimeException occurs.

Comment 4 Jan Stola 2005-09-16 13:42:50 UTC
OK, I have filled the described bug as issue 64527 and added you to CC of this
issue.