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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:25:57+00:00 2026-05-31T01:25:57+00:00

I have a class extending JFrame which contains group of radioButtons and a submit

  • 0

I have a class extending JFrame which contains group of radioButtons and a submit button. When a user clicks one of them, a new frame opens and the submit button in the previous one is disabled. Now if this new frame is closed, I need that the submit button becomes enabled again. How to do it? Thanks 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-31T01:25:58+00:00Added an answer on May 31, 2026 at 1:25 am

    You can have have the parent JFrame implement WindowListener and register it with the child JFrame. When the child JFrame closes it will call the windowClosed() method of the Windowlistener.

    As an example look at this.

    UPDATE:

    Say your new frame is called JFrame newFrame and the button you want to enable is called JRButton button when you build the newFrame you would do something like this, before making the frame visible:

      newFrame.addWindowListener(new WindowAdapter() {
            public void windowClosed(WindowEvent e) {
                button.setEnabled(true);
            }            
        });
    

    This will fire when ever the new frame is closed.

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

Sidebar

Related Questions

I have a custom user control extending the Listbox class. Inside of it I
I have a Listener class which implements ViewListener (contains two methods, open, close, which
I have created a class extending SimpleXMLElement which loads an XML containing translations for
I have a User class extending an Id abstract class. Somehow I will introduce
I have a class (foo) extending ListActivity which instantiates a class (fooAdap) extending ArrayAdapter.
I have a class extending JPanel that I want to embed into a JFrame
I have class main extends jframe , it has a button that calls /shows
Well, I have a class extending broadcastreceiver which is listening for messages. Now whenever
I have a Class extending JFrame that is watching for a mouse click anywhere:
I have one class extending JScrollPane, that's creating an object of another class that

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.