Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: 2 JFrames In One Applaction.

  1. #1
    Member
    Join Date
    Jan 2012
    Posts
    107
    My Mood
    Grumpy
    Thanks
    6
    Thanked 2 Times in 1 Post

    Default 2 JFrames In One Applaction.

    Is it possible to have more than 1 jframe in a applcation

    i have 2 class

    Class1 - Cotains Jframe For class2?
    anyways i can make it where you click a button and a differnt jframe pops up?


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: 2 JFrames In One Applaction.

    Have you tried it?

  3. #3
    Member
    Join Date
    Dec 2011
    Posts
    50
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: 2 JFrames In One Applaction.

    Quote Originally Posted by Java Programmer View Post
    Is it possible to have more than 1 jframe in a applcation

    i have 2 class

    Class1 - Cotains Jframe For class2?
    anyways i can make it where you click a button and a differnt jframe pops up?

    Sure, it is possible. If you'd like to use multiple popup windows in an app, consider to use JDialog instead.

  4. #4
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: 2 JFrames In One Applaction.

    Quote Originally Posted by nickyc View Post
    Sure, it is possible. If you'd like to use multiple popup windows in an app, consider to use JDialog instead.
    1. Understand the question.
    2. Try to provide hints rather than spoon feeding.
    3. If your answer is not other than the above replies, don't bother to post.(Spamming)
    4. Read the Forums Rules please.

  5. #5
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: 2 JFrames In One Applaction.

    Quote Originally Posted by Mr.777 View Post
    1. Understand the question.
    2. Try to provide hints rather than spoon feeding.
    3. If your answer is not other than the above replies, don't bother to post.(Spamming)
    4. Read the Forums Rules please.
    Did I miss something? doesn't seem to have warranted that from the post which is up now; just saying
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  6. #6
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: 2 JFrames In One Applaction.

    Quote Originally Posted by newbie View Post
    Did I miss something? doesn't seem to have warranted that from the post which is up now; just saying
    You nothing missed at all Was just reminding the novice users to refresh their memory with Forums Rules as they don't bother to read.

Similar Threads

  1. Mutiple JFrames Problems
    By mDennis10 in forum AWT / Java Swing
    Replies: 8
    Last Post: September 3rd, 2011, 11:24 PM
  2. Duda Con JFrames
    By GuzmanDiaz18 in forum AWT / Java Swing
    Replies: 3
    Last Post: June 2nd, 2011, 04:24 AM
  3. JFrames and JMenuBars
    By rushhour in forum AWT / Java Swing
    Replies: 3
    Last Post: November 4th, 2010, 06:14 PM
  4. JFrames not coming up?
    By scooty199 in forum AWT / Java Swing
    Replies: 13
    Last Post: October 30th, 2010, 03:54 AM
  5. Multiple JFrames
    By Scottj996 in forum AWT / Java Swing
    Replies: 1
    Last Post: April 15th, 2010, 06:24 AM