Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 3rd, 2004, 11:47 PM
geetee geetee is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 geetee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Problem opening a child frame

I tried googling this problem with no luck. I have the main frame and a child frame. The child frame opens up outside the area the existing frame is in. So if the frame is in the middle of my screen, the new frame opens up in the top left corner of the screen. I do not actually want the frame inside the parent frame, just open up in front of it.

When I call something like this:
Code:
JOptionPane.showMessageDialog(frame, "Please enter integer values only", "Error - Invalid input", JOptionPane.ERROR_MESSAGE);

It opens perfectly, top left corner of the parent frame. How do I do this with a frame?

Thanks!

Reply With Quote
  #2  
Old April 7th, 2004, 07:43 PM
michlmann michlmann is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 56 michlmann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
If you just want to open another frame that is centered in front of the existing frame you may use getBounds/setBounds.

Reply With Quote
  #3  
Old April 10th, 2004, 01:37 AM
geetee geetee is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 geetee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks I will give that a go

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Problem opening a child frame


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway