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 73464 - Matisse assigns JLayeredPane a default size of zero
Summary: Matisse assigns JLayeredPane a default size of zero
Status: RESOLVED DUPLICATE of bug 184571
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-10 03:26 UTC by _ gtzabari
Modified: 2010-04-22 08:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2006-03-10 03:26:53 UTC
dev build 200602281900

Matisse assigns a JLayeredPane a default size of zero which makes it hard to
layout components inside it. During runtime, it seems to assign JLayeredPane a
size which is too small and the components inside it get visually cut off.

Also, when dragging components inside JLayeredPane, they don't seem to provide
Matisse-style clipping (pixel units, guides to clip close to component
boundaries, etc) ... instead you are forced to drop your components in coarse
"blocks" which is difficult to use.
Comment 1 Jan Stola 2006-03-27 14:10:02 UTC
> Matisse assigns a JLayeredPane a default size of zero which makes it hard
> to layout components inside it. During runtime, it seems to assign
> JLayeredPane a size which is too small and the components inside it get
> visually cut off.

I am not sure what do you mean. If you insert JLayeredPane into a container
with Free Design than it has 100x100 pixels by default. It keeps its zero
preferred size in other layouts.

> Also, when dragging components inside JLayeredPane, they don't seem
> to provide Matisse-style clipping (pixel units, guides to clip close to
> component boundaries, etc) ... instead you are forced to drop your
> components in coarse

JLayeredPane uses null layout as its default layout manager. The snapping
and guiding lines are offered only in Free Design layout. Unfortunately
the form designer doesn't allow you to change the layout manager of
the JLayeredPane. I agree that we should consider addition of support
for that => chaning to enhancement.
"blocks" which is difficult to use.
Comment 2 Jan Stola 2010-04-22 08:40:32 UTC

*** This bug has been marked as a duplicate of bug 184571 ***