Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By KevinWorkman

Thread: linking jframe

  1. #1
    vinodpatole is offline Member
    Join Date
    Jan 2012
    Posts
    1
    Rep Power
    0

    Arrow linking jframe

    i have java project i want coding of linking one jframe to another when click on button next jframe should be open

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,965
    Rep Power
    8

    Default Re: linking jframe

    And what have you tried? Where are you stuck? If you know how to display a single JFrame, what's stopping you from reusing that code to display another?

    You also might want to consider using a dialog instead of another JFrame though.
    Fubarable likes this.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    JoeyChorba is offline Member
    Join Date
    Jan 2012
    Posts
    7
    Rep Power
    0

    Default Re: linking jframe

    Something that I've done is to use

    new <new JFrame name here>().setVisible(true);

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

    Default Re: linking jframe

    Quote Originally Posted by JoeyChorba View Post
    Something that I've done is to use

    new <new JFrame name here>().setVisible(true);
    OK, so you've got things working? If not, you'll want to provide more details on what's not working in your code. I second Kevin's recommendation though that you consider using a JDialog as the second dependent window rather than a second JFrame.

  5. #5
    JoeyChorba is offline Member
    Join Date
    Jan 2012
    Posts
    7
    Rep Power
    0

    Default Re: linking jframe

    I guess instead of posting my response I should have asked the intent of the second jFrame. If it's something that could be better suited by using a JDialog then yes I agree.

Similar Threads

  1. Linking two classes together
    By JonniBravo in forum New To Java
    Replies: 6
    Last Post: 09-11-2010, 10:53 PM
  2. Linking constructors
    By willemien in forum New To Java
    Replies: 3
    Last Post: 05-04-2010, 11:31 PM
  3. static linking
    By Nicholas Jordan in forum Advanced Java
    Replies: 35
    Last Post: 03-14-2009, 09:17 PM
  4. linking 2 Jframes
    By suhaib1thariq in forum New To Java
    Replies: 9
    Last Post: 02-13-2009, 01:30 AM
  5. Linking of exe files
    By archu2friends in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 02-06-2008, 06:08 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
  •