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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:53:13+00:00 2026-06-14T03:53:13+00:00

How to reload a form in a JFrame ? I have two forms, form1

  • 0

How to reload a form in a JFrame? I have two forms, form1 and form2:

  1. form1 links to form2 using:

    new form2().show(); 
    this.setVisible(false);
    
  2. form2 links to form1 is success

  3. The problem is when form1 form2 links to existing data are not shown.

I want to ask is there any other way than setVisible() method because it seems just to hide it.

  • 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-14T03:53:15+00:00Added an answer on June 14, 2026 at 3:53 am

    You can use CardLayout to switch between forms. This example navigates with buttons; this example navigates with a combo. You can make navigation conditional based on what filled on your form.

    Addendum: Like a restart in pc, jframe exit and re-open again.

    Although CardLayout is much more flexible, but you can always empty the Container, add the desired components and invoke validate()/repaint(), as shown here.

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

Sidebar

Related Questions

Hi friends i have added this in my form $email->addValidator(new Zend_Validate_Db_NoRecordExists(array( //add database, table
Is it possible to reload a form after 'file-input' change? I have a form
So I have the following JavaScript: <script language=JavaScript> function reload(form){ var val=form.profile.options[form.profile.options.selectedIndex].value; self.location='?profile=' +
I have created a .net 2.0 windows application. This application creates form controls dynamically.
I would like to reload the form, or preferably just the values, by using
In my application I have an feature that needs to reload whole form on
For example I have a form like this: <form method='post' action='someaction.php' name='myform'> <input type='text'
I have a modal dialog box with form. I want to reload the page
How can I refresh or reload a form using JQuery? I am filling my
Using CRM 4, I have an entity form that contains a tab with 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.