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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:30:49+00:00 2026-06-02T18:30:49+00:00

as the title says, when I when i call the method open of a

  • 0

as the title says, when I when i call the method open of a MessageBox instance, nothing happens.
This is the code:

Shell dialog = new Shell(SWT.TITLE | SWT.BORDER | SWT.APPLICATION_MODAL | SWT.ON_TOP);
shell.open();

In this dialog some actions let me open this message box:

MessageBox box = new MessageBox(dialog, SWT.ICON_WARNING | SWT.OK);
box.setText("Warning");
box.setMessage(label);
box.open();

I’m using Eclipse Indigo 3.7.2 for RCP and RAP Developers on Ubuntu 11.10 with Unity (Ubuntu2D) and Compiz 0.9.6, with OpenJDK 1.7.0_147. Here and here are some tips to solve this problem, (fixed by setting the environment variable GDK_NATIVE_WINDOWS), but nothing works.

  • 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-02T18:30:51+00:00Added an answer on June 2, 2026 at 6:30 pm

    Ok, I solved it. For some reasons, under Linux the message boxes are drawn under the components created with the flag SWT.ON_TOP (under Windows the messages boxes are always above any component). I just removed the SWT.ON_TOP from the parent dialog and everything works.

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

Sidebar

Related Questions

Title says all. Sample code: ArrayList<HashMap<String, Object>> data = new ArrayList<HashMap<String, Object>>(); HashMap<String, Object>
Like the title says: My web service method call looks like proxy.BeginGetWhatever(int param) {
As title says, how do I call a java class method from a jsp,
Title says it mostly. I want to add a simple extension method to the
As the title says: Is there no method being called on my other ViewController
As the title says, I'm trying to do something like this: public abstract class
Like the title says, I want to know what (int (*)()) in a C-define-function-call
As the title says i want to call a mixed mode assembly from unmanaged
As the title says Google Chrome opens window.open(someurl) just fine...but page/window with clicked link
As the title says, I know what causes this error but I want to

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.