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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:04:22+00:00 2026-05-27T02:04:22+00:00

errorPopup= popFactory.getPopup(this, errorBox, (verifierTopComponent.super.getX()+verifierTopComponent.super.getWidth()/2), (verifierTopComponent.super.getY()+verifierTopComponent.super.getHeight()/2)); The code above works, and properly centers the popup…

  • 0
 errorPopup= popFactory.getPopup(this, errorBox, 
                    (verifierTopComponent.super.getX()+verifierTopComponent.super.getWidth()/2),
                    (verifierTopComponent.super.getY()+verifierTopComponent.super.getHeight()/2));

The code above works, and properly centers the popup… but only if the window is fullscreen, on my main monitor.

How do I make it more robust? I’d like to center it in the middle of the current RCP instance.

(verifierTopComponent is my incorrectly named TopComponent in the module).

After the comment below, I’m wondering if maybe y’all typically use a vastly different method to create a popup? I’m just trying to put something in the user’s face to let them know why things won’t work as they have done them.

  • 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-27T02:04:23+00:00Added an answer on May 27, 2026 at 2:04 am

    When using the NetBeans RCP you should rather use DialogDisplayer and DialogDescriptor

    Something like this:

    DialogDescriptor dd = new DialogDescriptor(errorBox, "Error message");
    Object result = DialogDisplayer.getDefault().notify(dd);
    

    It will automatically take care of calculating the correct position.

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

Sidebar

Related Questions

function customAlert(inputID,msg){ var div = $(.errorPopup); div.css({display:block}); $(#+inputID).addClass(CO_form_alert).parent().addClass(alertRed); if (div.length == 0) { div
This is my first attempt at a plugin but I think I'm missing the
This is my source : public MyScreen() { // Set the displayed title of
On this page with captcha demo: http://www.tutorialcadet.com/demo/ajaxform/ the captcha image is not refreshing (when
okay i found this regex from Stack overflow, which can isolate the URL and
I know this question has been asked before, but I have tried the given
When i'm tryng to click the button i'm ghetting an error : popup is
Problem Description: Occassionally when debugging, I get the following error. I'm using visual studio
I have built the site: www.bgarchitect.co.nz which was as much a learning experience in
We are having a problem with our selenium tests which run in IE on

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.