Article View: borland.public.jbuilder.java.swing
Article #10906Re: Open InternalFrame
From: Ze'ev Bubis
Date: Thu, 05 Aug 1999 00:00
Date: Thu, 05 Aug 1999 00:00
29 lines
1412 bytes
1412 bytes
Hi,
You can get a list off all the internal frames that are the desktop:
JInternalFrame[] frames = mainDesktop.getAllFrames();
Ze'ev
"Kenneth R. Philp" wrote:
> Hi,
>
> This is a clip from the code generated in a Desktop Pane and Internal Frame
> to open instances of a new frame.
>
> void fileNewFrame_actionPerformed(ActionEvent e) {
> InternalFrame frame = new InternalFrame();
> frame.setBounds(0, 0, 450, 300);
> desktopPane.add(frame, new Integer(1));
> }
>
> My problem is to open an existing saved internal frame instead of the above.
>
> Any ideas of which code should be used? Any code?
>
> I've been reading the javax.swing doc but failed to understand since the
> method 'OpenFrame' shouldn't be used and then been looking at 'International
> Demo' where 'getInstance' should not be used.
>
> /Kenneth
Technical Details
Message-ID:
<7obnmk$qt32@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7nrg5f$bk43@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,68c41778a3c4d686 X-Google-Attributes: gid111d45,public From: Ze'ev Bubis <zeevb@globaloop.com> Subject: Re: Open InternalFrame Date: 1999/08/05 Message-ID: <7obnmk$qt32@forums.borland.com> X-Deja-AN: 509125682 Content-Transfer-Encoding: 7bit References: <7nrg5f$bk43@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: GlobaLoop LTD. Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing