Results 1 to 4 of 4
  1. #1
    soul303 is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default [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.
    Attached Thumbnails Attached Thumbnails [Help] calling other frames/dialog with table and another window-front.jpg   [Help] calling other frames/dialog with table and another window-window1.jpg   [Help] calling other frames/dialog with table and another window-window1-1.jpg  

  2. #2
    Sno's Avatar
    Sno
    Sno is offline Senior Member
    Join Date
    Apr 2010
    Posts
    195
    Rep Power
    5

    Default

    So I'm assuming Design Preview is your main class.

    So when you need to access your hardware view,

    Java Code:
    HardwareView Hardview = new HardwareView();
    Hardview.setVisible(True);
    this of course would be under your button action for your jbutton1.

    so treat your gui forms as objects
    :rolleyes: ~ Sno ~ :rolleyes:
    '-~ B.S. Computer Science ~-'

  3. #3
    soul303 is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default

    Quote Originally Posted by Sno View Post
    so treat your gui forms as objects
    sir, thank you for your reply,

    but how can i treat my gui forms as objects? what methods/actions should i do?

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    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

  1. Replies: 1
    Last Post: 02-19-2010, 11:35 AM
  2. change url in parent window from child window
    By rakesh_n_mehta in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-09-2009, 01:17 PM
  3. Replies: 18
    Last Post: 11-22-2008, 06:25 PM
  4. Calling a JFrame window from a command line program.
    By new_2_java in forum New To Java
    Replies: 7
    Last Post: 11-09-2008, 04:40 AM
  5. main window & print dialog
    By roo7 in forum Advanced Java
    Replies: 3
    Last Post: 01-02-2008, 07:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •