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

  • Home
  • SEARCH
  • 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 8611879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:29:06+00:00 2026-06-12T04:29:06+00:00

this is a newbie question. I am experimenting a little with Java, and I

  • 0

this is a newbie question. I am experimenting a little with Java, and I stumbled across a method which is supposed to call an empty dialog.

The method, however, has a Dialog parameter in the signature which I have no idea how to use. It looks like this:

public TestDialog(GraphicsConfiguration gc,
                     int x, int y,
                     Dialog dialog)
{
    super(dialog, getMsg("dialog.title"), true, gc);
    initDialog(x, y);
}

I see from the javadocs that it’s supposed to represent the parent window, but how would I call this method exactly and what do I need to pass as the Dialog parameter? I have googled, but couldn’t find much; please be patient, i’m just starting out with this language 🙂

Edit

I should point out that I understand what the Dialog parameter does, it allows the method to retrieve information from the calling dialog (in this example, it’s supposed to retrieve a text string); I just have no idea how to call this.

  • 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-12T04:29:08+00:00Added an answer on June 12, 2026 at 4:29 am

    A dialog must have either a frame or another dialog defined as its owner when it’s constructed. So at some point, you’ll have a dialog with a frame as it’s parent.

    The Dialog class has both constructors, with Dialog or Frame as parents.

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

Sidebar

Related Questions

This is a newbie question... I want to create a service which responds to
I have this situation: MySQL - Newbie question: Which are the PK and the
Sorry for this newbie question, but I can't find on google what I need
Sorry if this is a newbie question, searching google and SO turns up nothing,
I know that this is a newbie question but I am a newbie so
Don't dismiss this as a newbie question! It's not, I'm not, I've tried everything,
I'm really new to VSTO so sorry if this is a newbie question. I'm
I'm pretty new to Maven, so I apologize if this is a newbie question.
this may sound a newbie question anyway Im new to GCD, I'm creating and
This is a very newbie question and i will probably get downvoted for it,

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.