Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-21-2007, 10:04 PM
Member
 
Join Date: Dec 2007
Posts: 2
Mindhunter74 is on a distinguished road
JFrame Question ?
Hi.

I want some help in the following case

I'm creating a frame F1.
Also I've created another frame F2.

F2 is used to input something for F1. for exapmle F2 will display a list of available options and when the user click the submit button I'll simply dispose F2 after I get the selected options as an input to some function in F1.

The problem is that when I launch F2 while F1 is displayed , They are displayed concurrentl, but I want , when F2 is displayed , F1 is disapled. Just like when I show a JOptionPane MessageDialog or InputDialog.

How can I do this with F1, F2 ?

PLease help me with a coded example.

Thanks in advance.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-21-2007, 10:11 PM
Member
 
Join Date: Dec 2007
Posts: 2
Mindhunter74 is on a distinguished road
HI.

I want to calrify more what I need.

suppose the following code segment:

program 1{
statement 1.
statement 2.
new MyFrame().launch();
statement 3.
statement 4.
}

When the statment "new MyFrame().launch();" is reached and thus a frame is displayed , I want the program to stop at this statement and doesn't continue exexuting statments3,4 until the frame displayed is disposed (closed).

Thanks
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-21-2007, 11:45 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Use JDialog and design your JDialog just like your JFrame.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JFrame question Try2Live4God New To Java 2 10-15-2007 02:52 AM
How to close a JFrame valery New To Java 1 08-06-2007 06:33 PM
JFrame vs Applet baltimore AWT / Swing 1 08-06-2007 04:24 AM
Help with JFrame Albert AWT / Swing 2 07-04-2007 05:44 AM
Question mark colon operator question orchid Advanced Java 3 04-30-2007 11:37 PM


All times are GMT +3. The time now is 04:52 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org