• Post Reply Bookmark Topic Watch Topic
  • New Topic

Layout is leaving some pixels on the right

Francisco A Guimaraes
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?


[ October 14, 2004: Message edited by: Francisco A Guimaraes ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!