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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:16:45+00:00 2026-05-26T19:16:45+00:00

I am newly using GWT. I am using a simple code to create popup

  • 0

I am newly using GWT.
I am using a simple code to create popup I add few labels ontop and show()

final PopupPanel popup = new PopupPanel();

popup.setTitle("Start connector");
popup.add(new Label("Hello"));

popup.center();
popup.show();

Now I need two things:

  1. freeze the background when the popup is displayed
  2. the setTitle() does not add the title to the popuppanel window.

any hints will be useful.

Regards, Rohit

  • 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-26T19:16:45+00:00Added an answer on May 26, 2026 at 7:16 pm

    freeze the background when the popup is displayed

    Have a look at setGlassEnabled.

    From the PopupPanel javadoc:

    The PopupPanel can be optionally displayed with a “glass” element behind it, which is commonly used to gray out the widgets behind it. It can be enabled using setGlassEnabled(boolean). It has a default style name of “gwt-PopupPanelGlass”, which can be changed using setGlassStyleName(String).

    Just an advice: do not use the “modal” behavior of PopupPanel, it’s way too buggy to be usable. setGlassEnabled was added later as a replacement (not fully equivalent, but behaving reliably), and setModal is only kept there for backwards compatiibility.


    the setTitle() does not add the title to the popuppanel window.

    As the javadoc says:

    The title is the ‘tool-tip’ displayed to users when they hover over the object.

    You’re responsible for the PopupPanel’s content. Either you put a Label or whatever in the PopupPanel and make it look like a “title”, or you can use a DialogBox.

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

Sidebar

Related Questions

I'm newly using CODE::BLOCKS+mingw compiler If I don't type return 0 at the end
I am using slideDown animation to show some divs in a newly added table
i have a gwt project and using method GWT.create(SomeClass.class) throw exception. The exception is
I am using Eclipse (newly installed) to run some Java code, and for some
How do I add an event-handler to a newly created window using C++? _hWnd
I am newly started using WAMP server. I am unable to deploy my java
How can I stage and commit all files, including newly added files, using a
I started using defaultcontent.el to fill newly-created buffers with content. Apparently this module is
I'm using using Windows Vista and I'm having trouble logging in with a newly
I'm successfully importing external contacts into the newly created account using this tutorial .

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.