Forums Register Login

jumping from one frame to another..help me!!

+Pie Number of slices to send: Send
Hi, i am quite new to java. And i want to build a java application using JBuilder. My question is, how do we go from one frame to another. Supposed we have three frames now. One for logging in, and the other two is the window for admin and user. So how do i connect the frames? For example, in VB, if upon clicking the button 'admin' from the main menu (main.frm) and u wish to go to admin (admin.frm), the coding is gonna be

admin.Show
main.Hide
but what about java? Pls help. And it is frames that differentiate one window from another, right?
+Pie Number of slices to send: Send
Similar idea in Java. Essentially, you use either JFrame or JDialog classes, -- they are both subclasses of Window and as such have methods show(), hide(), and many others.
In a typical Java app, you would have what's known a Model-View-Controller (MVC) design pattern, where the controller would keep track of your frames and manipulate them in response to user actions.
+Pie Number of slices to send: Send
eugene, can you pls show me the simplest example possible for moving from one frame to another frame (upon button click)?
Right! We're on it! Let's get to work tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 818 times.
Similar Threads
how to call a j-frame (frame to frame)
Closing original window when logging out
HTTP Servlet Response
Frames
moving an undecorated frame
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:09:35.