Results 1 to 4 of 4
- 05-04-2010, 08:23 AM #1
Member
- Join Date
- May 2010
- Posts
- 3
- Rep Power
- 0
[Help] calling other frames/dialog with table and another window
I am new in netbeans programming and i dont know how to call a particular dialog/frame with table on it.
My project is a inventory database program using mysql as a database.
attached here is my planned front window,
and when the first button is clicked i want a window to be called (2nd screenshot),
and when i click the new/edit button i want a 3rd window to popup(3rd pic)
can someone help me with the calling and the codes. i do not know exactly the correct codes for this.
- 05-04-2010, 01:43 PM #2
So I'm assuming Design Preview is your main class.
So when you need to access your hardware view,
this of course would be under your button action for your jbutton1.Java Code:HardwareView Hardview = new HardwareView(); Hardview.setVisible(True);
so treat your gui forms as objects:rolleyes: ~ Sno ~ :rolleyes:
'-~ B.S. Computer Science ~-'
- 05-05-2010, 01:08 AM #3
Member
- Join Date
- May 2010
- Posts
- 3
- Rep Power
- 0
-
He just showed you one way. Otherwise it's hard to give more specific advice as you have the code, we don't. What you should to though is to read the Swing tutorial to learn about JFrames, JDialogs and how to display them. You can find it here:
Using Swing Components
Using Top-Level Containers
How to make Frames
Similar Threads
-
Problems with calling a ProgressBar dialog in another class
By Allgorythm in forum New To JavaReplies: 1Last Post: 02-19-2010, 10:35 AM -
change url in parent window from child window
By rakesh_n_mehta in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 07-09-2009, 12:17 PM -
update textField in a window extending Dialog class
By Ramona in forum New To JavaReplies: 18Last Post: 11-22-2008, 05:25 PM -
Calling a JFrame window from a command line program.
By new_2_java in forum New To JavaReplies: 7Last Post: 11-09-2008, 03:40 AM -
main window & print dialog
By roo7 in forum Advanced JavaReplies: 3Last Post: 01-02-2008, 06:50 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks