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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:25:15+00:00 2026-05-27T08:25:15+00:00

I have 2 frame in my one application. sum of two given number. 1st

  • 0

I have 2 frame in my one application. sum of two given number.

1st Frame: contains one JButton(will open 2nd frame) and one JLabel(print the return value from 2nd frame).

2nd Frame: contains two JTextField(For input two values) and one JButton(will sum the given values and return it to first frame or print it to JLabel of 1st frame).

Now My problem is I can not return the sum value from 2nd frame to 1st frame. What should I do? How can I get the sum value from 2nd frame.

Can anybody give me the sample code or any simple solution or may be any useful link????

  • 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-27T08:25:15+00:00Added an answer on May 27, 2026 at 8:25 am

    Answer: don’t use two JFrames. Instead, that second “frame” should be a modal dialog such as a JDialog or a JOptionPane. The reason this is important is that you’ll make the second window appear from the first one, and the first window will know exactly when the user has finished dealing with the second window since program flow will resume right from the spot where it was initially set visible. It is then that the first window/class can query the second for the state of its variables and use them however it sees fit.

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

Sidebar

Related Questions

I'm building a flash application and on one frame I have a number of
Ho I have two list view on a frame layout. I want one overlay
I have an interface that has two toolbars, one attached to the frame and
HI I have an application with more than one frame that act as forms.
I have developed an application that has a list of items in one frame;
I have a bowling web application that allows pretty detailed frame-by-frame information entry. One
Given an Applet in one frame in a multi-frame web application where all frames
I have one frame in which one TestArea is there. When I append some
I have a data frame where one particular column has a set of specific
I have created one UIImageView Here's code capView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:kARROW_CAP_NAME]]; capView.frame

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.