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.
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.
> 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.
*** This bug has been marked as a duplicate of bug 184571 ***