Hi everybody, I'm having a problem with drawing a "window" inside a JPanel.
This "window" will have a header and a body. The problem is that on the header, there is a space of a couple pixels unused so the header doesn't stay aligned with the body. The header is a JPanel with GridLayout, the "window" uses a BorderLayout and the frame uses a null layout. Below is the test code I wrote.If you run it, you'll see that there's a minimal yellow line after the magenta border, that's the background color, so the panel isn't using all the space. Can anyone help on this?
Francisco
[ October 14, 2004: Message edited by: Francisco A Guimaraes ]