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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:12:21+00:00 2026-05-17T23:12:21+00:00

Im starting making an application with GWT. Now, i use the AbsolutePanel widget to

  • 0

Im starting making an application with GWT. Now, i use the AbsolutePanel widget to describe a “div”. After this, i create a label (should be a span?), i add to this panel and i apply a css class to the div.

this is the code :

public void onModuleLoad() {
    AbsolutePanel contenitore = new AbsolutePanel();
    final Label label = new Label("Hello, GWT!!!");
    contenitore.setStyleName("contenitore");
    contenitore.add(label);

}

// css
body {background:#999999;}
.contenitore{ background-color:#333333; width:980px; margin-left:auto; margin-right:auto; overflow:auto;}

Unfortunatly, it don’t get the css propiety of the div, and i cant see the label. Why? And, there are any change to see (im using the gwt debug on netbeans) which is the generated html code? cheers

  • 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-17T23:12:21+00:00Added an answer on May 17, 2026 at 11:12 pm

    Some tips on your example:

    • add the AbsolutePanel to the RootPanel
    RootPanel.get().add(contenitore);
    • the Label class creates a <div> element. If you’re looking for a <span> check out InlineLabel

    • to see how to deal with css in GWT check this out or have a look at UiBinder

    Hope that helps.

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

Sidebar

Related Questions

I'm trying to create an application that can use the android as a fax
I'm starting a a new application, and want to concentrate on making it modular.
I'm making an application starting others installed applications on an Android smartphone. Basically, here
I'm making a application in JavaFX 2.0. From my main window I am starting
I am making an application for android which should show pictures (i was already
To learn WP7 i'm making a simple soundboard application. This is my code. Please
Starting from the top, I am making an application that in the new project
I'm just starting to use the composite application libraries for WPF. In my shell
I'm starting making an app for a website that I own. I know some
I'm starting to give a little more attention to making my javascript and ajax

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.