Solved

Frame interactions

Posted on 1997-04-02
1
187 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

920 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

16 Experts available now in Live!

Get 1:1 Help Now