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 8325469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:26:49+00:00 2026-06-09T00:26:49+00:00

Alright, check my code: public MainForm() { HorizontalPanel horizontalPanel = new HorizontalPanel(); initWidget(horizontalPanel); VerticalPanel

  • 0

Alright, check my code:

public MainForm() {

        HorizontalPanel horizontalPanel = new HorizontalPanel();
        initWidget(horizontalPanel);

        VerticalPanel verticalPanel = new VerticalPanel();
        horizontalPanel.add(verticalPanel);

        MenuBar menuBar = new MenuBar(true);
        verticalPanel.add(menuBar);
        MenuBar menuBar_1 = new MenuBar(true);

        MenuItem mntmNewMenu = new MenuItem("General", false, menuBar_1);

        MenuItem mntmBuilding = new MenuItem("Building", false, (Command) null);
        menuBar_1.addItem(mntmBuilding);

        MenuItem mntmModularBuilding = new MenuItem("Modular Building", false, (Command) null);
        menuBar_1.addItem(mntmModularBuilding);
        menuBar.addItem(mntmNewMenu);
        MenuBar menuBar_2 = new MenuBar(true);

        MenuItem mntmNewMenu_1 = new MenuItem("New menu", false, menuBar_2);
        mntmNewMenu_1.setHTML("EPC");
        menuBar.addItem(mntmNewMenu_1); //target
        MenuBar menuBar_3 = new MenuBar(true);

        MenuItem mntmNewMenu_2 = new MenuItem("New menu", false, menuBar_3);
        mntmNewMenu_2.setHTML("Constructions");
        menuBar.addItem(mntmNewMenu_2);
        MenuBar menuBar_4 = new MenuBar(true);

        MenuItem mntmRecommendations = new MenuItem("Recommendations", false, menuBar_4);
        menuBar.addItem(mntmRecommendations);

    }

At the moment, the sub menu with Building and Modular Building options is coming out to the side. How can I change the code so that the sub menus appear below the menu bar selections? Some styling to show that they were sub menus would be helpful also.

Thank ya very much

  • 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-06-09T00:26:50+00:00Added an answer on June 9, 2026 at 12:26 am

    You can use StackPanel for this purpose. Please see the showcase here : http://gwt.google.com/samples/Showcase/Showcase.html#!CwStackPanel

    I hope this will be helpful.

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

Sidebar

Related Questions

Alright, so I got this code for gluLookAt: lookAt = new Vector3f(-player.pos.x, -player.pos.y, -player.pos.z);
Alright I'm pretty new to programming and stuff and I'm now trying to code
Alright, I need a sanity check. I was working on my project by starting
Alright, here I am again trying to write code from scratch and I can't
Alright I've been creating some test code to try and clear the upload queue,
Alright, probably not the best title, but meh. I have the following code inside
Alright, Question #1: well i have a richtextbox, and id like to add emotions
Alright so here's my current code: import System.IO import System.Environment import System.Directory main =
Alright, so my title sucked. An example works better: input = 'check yahoo.com' I
Check the bottom for revised edition Alright, here's the issue. I have a li

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.