Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
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 06-24-2008, 02:01 PM
Member
 
Join Date: Jun 2008
Posts: 20
Melki is on a distinguished road
[SOLVED] Internal frames inside a MDI form
Hi all,

While minimizing the internal frames inside an MDI form(which is in not fully maximised to fit the screen). The internal frame is Iconified in the bottom line of the MDI. But When I maximize(fully maximised and fitted to the screen) the MDI form, the internal frames which are already iconified still stays in its ex position. I want it to be moved along to the bottom line of the Maximized MDI. The attached pictures could give you the clear picture. Can any one help me in this issue.

Thank you.
Attached Images
File Type: jpg existing_model.jpg (18.0 KB, 3 views)
File Type: jpg expected_model.jpg (18.8 KB, 2 views)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-26-2008, 05:41 AM
Eku Eku is offline
Senior Member
 
Join Date: May 2008
Location: Makati, Philippines
Posts: 228
Eku is on a distinguished road
can you post your code for your Gui
__________________
Mind only knows what lies near the heart, it alone sees the depth of the soul.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-26-2008, 08:18 AM
Member
 
Join Date: Jun 2008
Posts: 20
Melki is on a distinguished road
Hi Eku,

Here is the code.

Code:
public class IFrame extends JFrame { private JDesktopPane desk; public IFrame(String title) { super(title); setDefaultCloseOperation(EXIT_ON_CLOSE); desk = new JDesktopPane(); setContentPane(desk); } private void addFrame(int number) { JInternalFrame f = new JInternalFrame("Frame " + number, true, true,true, true); f.setBounds(number * 10 - 5, number * 10 - 5, 250, 150); desk.add(f, 1); f.setVisible(true); } public static void main(String[] args) { Figure3 td = new Figure3(""); td.setSize(300, 220); td.setVisible(true); for (int i = 1; i <= 4; i++) { td.addFrame(i); } } }
Thank you.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-01-2008, 08:55 AM
Member
 
Join Date: Jun 2008
Posts: 20
Melki is on a distinguished road
Hi All,

I have solved this problem by refreshing the look and feel at the Component resize event.

Thanks and Regards,
R.Melki.
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
Editing video frames in JMF russ2620 Networking 0 05-31-2008 01:26 AM
Eclipse's internal Tomcat vadimf Eclipse 0 02-14-2008 11:37 AM
javac not recognized as an internal or external command kotoko New To Java 6 11-05-2007 02:39 PM
an internal error occurred during refresh christina Eclipse 1 08-06-2007 11:37 PM
will java webBrowser work with frames elipford New To Java 2 06-04-2007 05:26 PM


All times are GMT +3. The time now is 02:44 PM.


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