Solved

Frame interactions

Posted on 1997-04-02
1
180 Views
Last Modified: 2010-04-16
I have 2 frames. Frame 1 is a subclass of Frame. And Frame 2
is a subclass of Frame 1. From Frame 1 I call Frame 2 and hide Frame 1. Now I want to unhide Frame 1 by clicking a button in Frame 2. How would I go about doing this?
0
Comment
Question by:danzig040297
1 Comment
 
LVL 2

Accepted Solution

by:
majkl earned 20 total points
ID: 1219379
Bring Frame1 to Frame2 by reference.

Constructor for Frame2 Shoud look like this.

Frame1 frame1 ;

Frame2 (Frame1 f1 )
{
  this.frame1 = f1;
}

now you can call frame1.hide(); or frame1.show();


Create Frame2 in Frame1 like this :
Frame2 frame2;

frame2 = new Frame2(this);

here can you do frame2.hide(); ......

Hope This helps.
 
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scoresSpecial  challenge 13 42
endX challenge 2 50
eclipse package explorer vs project explorer view 2 34
eclipse formatting 6 43
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now