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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:46:08+00:00 2026-06-05T14:46:08+00:00

I am from system programming background in C and Java programming is Greek and

  • 0

I am from system programming background in C and Java programming is Greek and Latin for me.

So my problem is:- I have 2 JFrame Objects

  • I have a parent Object A
  • which has child Objects B.

Object B has buttons on it.
If a button is clicked in B I want to update the UI of parent Object.

How can I can communicate to the parent – to update itself?

  • 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-05T14:46:10+00:00Added an answer on June 5, 2026 at 2:46 pm

    Do the updates need to be made ‘live’ while the values are adjusting and the 2nd GUI is open, or can they be delayed until it is closed?

    They can be delayed until it is closed.

    Use a modal dialog or JOptionPane instead.

    • How to Make Dialogs
    • How to Use Modality in Dialogs

    Using a modal dialog, whatever code line comes immediately after setting it visible, is blocked from being processed until it is closed. That is where you examine (the return value of the option pane &) the value of the controls you put in the dialog. Note that the idea here is do not extend dialog. Instead just create an instance of one in the main code, create the controls, add them to it, and show it using the main frame as the parent.

    Putting ‘everything in one class’ is not a good design, nor what I am suggesting in general. It is just that there is little cause here for the main GUI not to have references to controls that affect/update it.

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

Sidebar

Related Questions

I am from Unix programming background and am facing a unique behavior/problem during porting
Here is a challenge question I've got from Linux system programming lecture. Any of
I have written the following IronPython code: import clr clr.AddReference(System.Drawing) from System import *
Problem: during execution, instances of classes that derives from System.Workflow.ComponentModel.Activity is serialized by the
I come from a procedural programming background, and need some help grasping how methods
I have a background in programming and have done a little .NET but I
Some background info I am programming in a system that uses a proprietary programming
I have a problem, which I believe to be best solved through a functional
Background We've been using some code copied verbatim from Joe Duffy's Concurrent Programming on
I'm kind of new to Android programming, and i'm comming from a strong background

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.