| Author |
Layout is leaving some pixels on the right
|
Francisco A Guimaraes
Ranch Hand
Joined: Mar 20, 2002
Posts: 182
|
|
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 ]
|
Francisco<br />SCJP<br />please use the [code][/code] tags when showing code.Click <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page" target="_blank" rel="nofollow">here</a> to see an example.
|
 |
 |
|
|
subject: Layout is leaving some pixels on the right
|
|
|