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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:25:13+00:00 2026-06-12T00:25:13+00:00

Hi I am using JFrame to design swing application on clicking a menu in

  • 0

Hi I am using JFrame to design swing application on clicking a menu in JFrame my requirement is to add JInternal frame on the JFrame and its working . Now the problem is that i want to refresh the Jframe according to the button clicked on jinternalframe and close the current JInternal Frame. How is it possible
on button click of the JInternal frame i am using the following code

  try
   {
  MainForm frm= new Mainform();
  frm.cp.add("adding here JEditor Pane");
 this..dispose();
   }
 catch(Exception ex)
 {
  }

its working and also closing the JinternalFrame but the page of JFrame form is opened in new window not refreshing the previous one
can you suggest me the code plz

thanks a lot 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-06-12T00:25:14+00:00Added an answer on June 12, 2026 at 12:25 am
    • part of your question are explained in the Oracle tutorial How to Use Internal Frames

    • rest is described in the Rules of Using Internal Frames

    • read How to Use Buttons and How to Write an Action Listener

    • in the case that you’ll a real question, the post an SSCCE demonstraded your issue(s) with JButton, ActionListener and JInternalFrames

    • I’d be reuse JInternalFrames and change only their visibily on the screen

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

Sidebar

Related Questions

I had made one application in java-swing, Now what i am getting problem is,
I'm using JFrame.setIconImages to set the icons for a JFrame in my application, working
I have a program written in AWT, so I am using Frame (Not JFrame/Swing).
hi i'm using swing and in my main frame(JFrame) i want that when ever
I created a window using the design panel in JFrame, it didn't have any
I am using swing to create my GUI. J have a JFrame containing one
I'm building a little app using Java and Swing in NetBeans. Using NetBeans design
INTRO: I created a java application using JFrame. I have a JMenuBar at the
I want to access JFrame(GraphicsConfiguration) using SwingBuilder.frame(), but I can't set it via the
I have created a jframe using net beans and add combo box to 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.