Click to See Complete Forum and Search --> : SWING - should I use GridBagLayout?


nanode
01-17-2001, 02:40 PM
I have an interesting problem. I have a JInternalFrame that must be able to add components to it's JLayeredPane at specific locations.

For example, I want to add a JButton @ 20,100 (x, y) on the frame. Using any layout manager, I can add components and then change their location - but the ultimately revert back to their original location if I manipulate their parent.

GridBag looks awful, but could it help me accomplish my goal?