Results 1 to 4 of 4
  1. #1
    Melki is offline Member
    Join Date
    Jun 2008
    Posts
    20
    Rep Power
    0

    Default [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 Thumbnails Attached Thumbnails [SOLVED] Internal frames inside a MDI form-existing_model.jpg   [SOLVED] Internal frames inside a MDI form-expected_model.jpg  

  2. #2
    Eku
    Eku is offline Senior Member
    Join Date
    May 2008
    Location
    Makati, Philippines
    Posts
    234
    Rep Power
    6

    Default

    can you post your code for your Gui
    Mind only knows what lies near the heart, it alone sees the depth of the soul.

  3. #3
    Melki is offline Member
    Join Date
    Jun 2008
    Posts
    20
    Rep Power
    0

    Default

    Hi Eku,

    Here is the code.

    Java 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.

  4. #4
    Melki is offline Member
    Join Date
    Jun 2008
    Posts
    20
    Rep Power
    0

    Default

    Hi All,

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

    Thanks and Regards,
    R.Melki.

Similar Threads

  1. Replies: 28
    Last Post: 10-26-2010, 04:39 AM
  2. Editing video frames in JMF
    By russ2620 in forum Networking
    Replies: 0
    Last Post: 05-30-2008, 11:26 PM
  3. Eclipse's internal Tomcat
    By vadimf in forum Eclipse
    Replies: 0
    Last Post: 02-14-2008, 09:37 AM
  4. an internal error occurred during refresh
    By christina in forum Eclipse
    Replies: 1
    Last Post: 08-06-2007, 09:37 PM
  5. will java webBrowser work with frames
    By elipford in forum New To Java
    Replies: 2
    Last Post: 06-04-2007, 03:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •