473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to linking from one frame to another frame?

Hi,

I am currently doing my java assignment. In this assignment, I had require to build a JFrame application.

Component List in my application:
1) Frame_A with a button
2) Frame_b

Application background:
I have 2 frame, Frame_A and Frame_B. In the Frame_A, user can proceed to Frame_B if click on the button. In this manner, Frame_A will dissapear. You can imagine the login form as the example.

Problem Statement:
Problem obviously, I could not perform the linking between Frame_A and Frame_B. Currently, I only figure out using "Frame_A.setVisible(false)" to perform the situation I want. But, I found out that it is more like open another frame (application) instead of continue proceed to Frame_B in the application.

Therefore, is it any Java API to perform this kind of situation?

So, I am here looking forward from you guyz help. Thanks in advanced!
Feb 18 '09 #1
3 5842
JosAH
11,448 Expert 8TB
Either make frameA create a frameB when that button is pressed, or have a third class that creates both frames (frameA and frameB) and passed frameB to frameA (a simple method void passFrame(FrameB frameB) { ... } in your FrameA class can do the job.

There a more scenarios, but those two came to mind first ...

kind regards,

Jos
Feb 18 '09 #2
@JosAH
Hi JosAH,

Thanks for reply.
Yes, you give me the idea. But I want the FrameA proceed to FrameB within the same frame. It is because the way i mention avobe, it create a new frame (window) instead of continue proceed to next phase within the same frame.
anyway, thanks for idea.


Regards,
Eric
Feb 18 '09 #3
JosAH
11,448 Expert 8TB
@Eric1987
I don't understand what you're trying to say here.

kind regards,

Jos
Feb 18 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: George Hernandez | last post by:
I have a site on a set of Linux Servers where my site is PHP enabled and I would like to prevent people from externally linking to content on my site and replace it with a warning image. I've...
0
by: MooMaster | last post by:
This is more of a wxPython centric question, but not seeing reference to this on the wx group I thought I'd try here since many here also use wxPython toolkit. I started learning GUI development...
33
by: randau | last post by:
Linking to a Targeted Browser Window I'd like to open reference links to other web sites in a separate browser window from the browser window hosting my own web site pages. The Link Target...
0
by: jcriv | last post by:
Hi, We have a large web app with a tree menu. All works fine when I run this with IE 6 as the client. However, when I run with Mozilla FireFox, Netscape, etc I get errors trying to navigate...
3
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a...
2
by: DataSmash | last post by:
Hello, I've created a simple form with 2 radio boxes, 2 text boxes and a button. When I click the button, I'd like to write each "choice" to a text file. I can't figure out how to "link" the...
0
by: Sajit | last post by:
I am trying to use an Excel file as a template for an Access report. I Linked the Excel file through an unbound frame as an OLE object with the properties set as follows: Source Doc...
2
by: saikatkolkata | last post by:
I had been searching ways in net how to connect two frames... my prob is...see i hav a screen with two frames n on the left frame i have a tree view. on selecting a tree node...some relevant info....
4
by: naveenmurthy | last post by:
Hello All, I have created a .mht file in following format. 1. The .mht file contains following htmls. a. MHTLinkingProblem.html b. Left.html c. Right.html d. Start.html
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.