This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with padding between 2 vertical panels

 
Ray Clark
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a DockPanel for laying out my page. I have a header at top, a footer at the bottom, and a HorizontalPanel in the middle. The HorizontalPanel consists of 2 VerticalPanels.

My problem is that there is spacing between the two VerticalPanels and I want them to touch. I can see that because I have a background color set for the two vertical panels and the colors don't bump up against each other. I've tried setSpacing(0) and that doesn't seem to make any difference.

Any ideas as to how I can get the two vertical panels to appear to touch each other?

Thank you.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The setSpacing(0) is on what container? HorizontalPanel?
 
Ray Clark
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, I solved my problem yesterday by using a DockPanel instead of a HorizontalPanel for the middle area of my page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic