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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:06:16+00:00 2026-05-23T06:06:16+00:00

I have Class which extends JDialog . Have an another JDialog declared inside the

  • 0

I have Class which extends JDialog.

Have an another JDialog declared inside the class as

private JDialog Dialog = new JDialog(this);

I want to display a error dialog in the declared dialog of the class.

How can i Achieve this.

I needed it for display purpose…now that they JTextfields in the declared dialog, need to put a error dialog… at the center of the declared dialog… this is the requirement

But error dialog are visible, but behind the declared dialog, i.e on the derived JDialog of the class…

Thank you in advance….

  • 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-23T06:06:17+00:00Added an answer on May 23, 2026 at 6:06 am

    I do not know exactly what you mean. However, if you want an error message dialog, why don’t you just use a JOptionPane? It works very easy, e.g. like this:

    JOptionPane.showMessageDialog(null, "message", "title", JOptionPane.ERROR_MESSAGE);
    

    For layout, you can even use html in the message. Like for example:

    <html>This went <b>wrong!</b><br>Next line</html>
    

    enter image description here

    Hope this is what you need 🙂

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

Sidebar

Related Questions

I have two Java classes: B, which extends another class A, as follows :
I have a class which looks something like this: public class Test { private
I have a class which extends JScrollPane, its viewport is another class which extends
I have a class which extends the Runnable . This class performs some heavy
Hello i'm implementing a custom dialog. I have a class which extends Dialog .
I have a DB helper class which extends SQLiteOpenHelper and in onCreate, I want
I have an Activity class (WiFiTest), inside which I have defined a private class
my question is simple. I have class TouchSurfaceView which extends GLSurfaceView. I want create
I have a class which is marked with a custom attribute, like this: public
I have a class: public class ANote extends JDialog{...} In GNOME(Linux) it shows an

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.