Results 1 to 4 of 4
  1. #1
    goodlily is offline Member
    Join Date
    Apr 2011
    Posts
    9
    Rep Power
    0

    Default Blend JInternalFrame to its parent JFrame when maxmize it

    Hi:

    I have a JFrame as parent window and some JInternalFrame as child window. I would like to programe this way: if I click one JInternalFrame's maximize button, this JIntervalFrame will become 'topless' and 'maximized', so that it 'blend' into parent JFrame's contentpane. I will have a button at the top of right coner of parent JFrame, when I click it, it will show child JInternalFrame as minimized so that I can choose which JInternalFrame to work on.

    The issue I am trying to deal with is: parent JFrame has Title bar, child JInternalFram has title bar also, when I maxmize the JInternalFrame, I have two title bar at the top screen. Kind of confusing. Another way is to change the color of title bar of JInternalFrame. Is that possible if I am on Windows?

    Thanks very much,
    Lily

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default

    if I click one JInternalFrame's maximize button, this JIntervalFrame will become 'topless' and 'maximized', so that it 'blend' into parent JFrame's contentpane. I will have a button at the top of right coner of parent JFrame ...
    The two requirements are contradictory. If the JInternalFrame occupies the entire content area of the JFrame, you don't have a "top of right coner of parent JFrame" to place your button.

    Another way is to change the color of title bar of JInternalFrame. Is that possible if I am on Windows?
    Not if you're using the SystemLookAndFeel.

    db

  3. #3
    goodlily is offline Member
    Join Date
    Apr 2011
    Posts
    9
    Rep Power
    0

    Default

    Sorry that I did not describe it clearly. The button is on menu bar. The Menu bar still shows in the parent JFrame when the child JInternalFrame is maximized to occupy the content area of JFrame. There are many existing tools like this, for example, Oracle's JDeveloper.

    Thanks
    Lily

  4. #4
    asifzbaig is offline Member
    Join Date
    May 2011
    Posts
    56
    Rep Power
    0

    Default

    Try this once:
    on maximizing the internal frame, setUndecorate it and set the maximum size such that it perfectly fixed in your external fram, do one more thing, when maximizing internal frame set visible the corner buttons already placed in your external frame toolbar with there respetive actions.....

    all the best..

Similar Threads

  1. JFrame and CardLayout -- Wrong Parent
    By AutoRobin in forum New To Java
    Replies: 11
    Last Post: 04-21-2011, 01:39 PM
  2. jInternalFrame
    By kiranjava in forum Advanced Java
    Replies: 1
    Last Post: 05-20-2010, 01:04 PM
  3. JInternalFrame Help
    By collin389 in forum New To Java
    Replies: 2
    Last Post: 03-16-2010, 01:23 AM
  4. JInternalFrame Help
    By collin389 in forum AWT / Swing
    Replies: 1
    Last Post: 03-15-2010, 10:24 PM
  5. Control JInternalFrame ?
    By h9h in forum AWT / Swing
    Replies: 1
    Last Post: 10-11-2009, 04:58 AM

Posting Permissions

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