🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10697

Re: MDI internal frame max problem

#10697
From: John J. Matsche
Date: Thu, 19 Aug 1999 00:00
50 lines
2800 bytes
Thank you Wim for your response.  Unfortunately, I did all of those things.
I created my app via JBuilder, then checked to make sure things were added
as you stated.  My menu is added via JFrame.setJMenuBar.  I created a
desktop for MDI of type JDesktopPane and added it to my JFrame using
JFrame.setContentPane(desktopPane).  I then added my sheet to the desktop
via JDesktopPane.add.  I've also read documentation until I'm blind.  I'm
beginning to think that Java's UI really sucks.

John


wim.van.leuven@watco.be wrote:

> Hello John,
>
> By reading your message (the part telling the JInternalFrame is
> overlapping the menubar) I get the impression you have added the
> menubar to the desktop of the JFrame, instead of calling
> JFrame.setJMenuBar(JMenuBar menu) to set the menu of the frame.
> Another possibiliy is that you have added the internal frame directly
> to the JFrame or it's contentpanel. I suppose you have done this,
> because you state that the internal frame gets maximized with the
> enclosing frame. When working with InternalFrame you should add
> a JDesktopPane to the JFrame and add internal frames to this desktop
> pane. You can set the menuBar of the JFrame as explaine above.
>
> Hope this helped.
>
> Wim Van Leuven.
>
> In article <37B8BB63.22FAE2E8@carolina.rr.com>,
>   "John J. Matsche" <jmatsche@carolina.rr.com> wrote:
> > Having a problem with an MDI internal frame (JInternalFrame).
> Whenever
> > I maximize the JFrame, the JInternalFrame will automatically maximize
> > with it and cover up the menu bar on the JFrame.  It also leaves a
> > comparable size space below the JInternalFrame so that you can plainly
> > see the scroll bar of the JFrame.  If I subsequently reduce the
> > JInternalFrame, the JFrame menu is gone!
> >
> > Surely Java is better than this.   I must be doing something wrong.
> Can
> > anyone help?
> >
> > John
> >
> >
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Technical Details
Message-ID: <37BC8D22.4D8C0EE3@carolina.rr.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37B8BB63.22FAE2E8@carolina.rr.com> <7pb82k$jp3$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,867f40309b719401
X-Google-Attributes: gid111d45,public
From: "John J. Matsche" <jmatsche@carolina.rr.com>
Subject: Re: MDI internal frame max problem
Date: 1999/08/19
Message-ID: <37BC8D22.4D8C0EE3@carolina.rr.com>
X-Deja-AN: 514875744
Content-Transfer-Encoding: 7bit
References: <37B8BB63.22FAE2E8@carolina.rr.com> <7pb82k$jp3$1@nnrp1.deja.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@carolina.rr.com
X-Trace: typhoon.southeast.rr.com 935103708 24.93.81.223 (Thu, 19 Aug 1999 19:01:48 EDT)
Organization: RoadRunner - Carolina
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 19 Aug 1999 19:01:48 EDT
Newsgroups: borland.public.jbuilder.java.swing