SWING maximize JInternalframe not to JDesktopsize but parent Frame size

Posted on 2006-04-20
Last Modified: 2007-12-19

I have a frame containing a splitpane. on right side of splitplane i have located a JDesctopPane.
On this Desktop i have several JInternalFrames. when now doubleclicking those are maximized to JDesktopPane size.

But I just want them to maximize to either JDesktopPane's size or Splitpane's size visible, whatever is smaller.

How and where should i do that?

I am not that good in GUIprogramming, maybe first help would be telling me who (whicht thread/component,...) is actually doing the resizing with int values and not booleans. As my first approach to override setMaximum(boolean b) did fail...

Question by:mightyone
    LVL 6

    Author Comment


    i found out to overwrite method setBounds() and check isMaximum(); first.

    will close this one.

    Accepted Solution

    Closed, 500 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    changeXy challenge 13 40
    pairstar challenge 2 26
    strDist challenge 35 70
    @SBGen Method 3 17
    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now