Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3669620
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:15:56+00:00 2026-05-19T02:15:56+00:00

I am trying to create a DockLayoutPanel using GWT. It should occupy the complete

  • 0

I am trying to create a DockLayoutPanel using GWT. It should occupy the complete screen.

DockLayoutPanel dockPanel = new DockLayoutPanel(Unit.EM);
dockPanel.addSouth(new HTML("South"), 2);
dockPanel.addNorth(new HTML("North"), 2);
dockPanel.addEast(new HTML("Easat"), 2);
dockPanel.addWest(new HTML("West"), 2);
dockPanel.add(new HTML("Center"));
RootLayoutPanel.get().add(dockPanel);
  1. I believe that the second parameter to the add methods is the width of the respective panels. How does the layout decide the height of the panel?
  2. How can I style the layout, like add border to the panels, spacing between the panels, add panel headings in-line with the border?
  3. Should the panel background colors be set using CSS, or is there a way to do so from java?
  4. Can I make these panels as drag and drop panels?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:15:56+00:00Added an answer on May 19, 2026 at 2:15 am

    1) The second parameter is really the size of the panel. It will be the width or the height, depending of the layout position. Use Unit.PX or Unit.PC for a clearer result, the EM unit maybe confusing at the beginning.

    2) Use CSS styles.

    3) Again, use CSS

    4) It’s not possible using GWT alone. Take a look to the GWT-Mosaic project. Specially to the “Drag & Drop Column/Row Layout”: http://mosaic.analytical-labs.com/#CwDNDColumnRowLayout

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying create a Regex-based replacement for an article to automatically convert embedded
I am trying create an application which will clone the GIT repository to the
I am trying create a table and add this table into tablecell (table inside
I am trying create a prototype where one of the features is a dropdown
I'm trying create a regex that verifies an xml entity name is valid (see
I'm trying create a small http proxy service. This is not working so well.
Trying to create an object from an HQL query, but just can't figure out
Trying to create DIV containers out of a mysql results which each hold chunks
trying to create a button that will goto the next option in a selectmenu

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.