wood burning stoves 2.0*
The moose likes GWT and the fly likes Problem with padding between 2 vertical panels Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Problem with padding between 2 vertical panels" Watch "Problem with padding between 2 vertical panels" New topic
Author

Problem with padding between 2 vertical panels

Ray Clark
Ranch Hand

Joined: Aug 16, 2012
Posts: 52
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

Joined: Jul 26, 2007
Posts: 10167
    
    8

The setSpacing(0) is on what container? HorizontalPanel?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ray Clark
Ranch Hand

Joined: Aug 16, 2012
Posts: 52
Thank you, I solved my problem yesterday by using a DockPanel instead of a HorizontalPanel for the middle area of my page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with padding between 2 vertical panels
 
Similar Threads
gwt drag and drop problem
Layout three GWT panels Horizontally
Need suggestions on my Java Project
How to remove space around JSeparator
Help sorting out what combination of layouts will provide the result I need