🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: call an jinternalframe from another jinternalframe

#341
From: Jeroen Wenting
Date: Tue, 23 Aug 2005 12:52
16 lines
1504 bytes
"tom" <xena_bz@hotmail.com> wrote:
>Hi,
>
>how would I call an jinternalframe from another jinternalframe?
>
>thanks
>
You'd need a reference to it.
If you don't have that and can't get it, there's no way you can call it.

You can use this.getDesktopFrame().getAllFrames() on your JInternalFrame to get a list of the JInternalFrames which are children of the same JDesktopFrame your JInternalFrame belongs to.

It's up to you to then recognise the one you want if you want to do something to a specific one rather than each of them.

Jeroen Wenting
Technical Details
Message-ID: <430b1c0b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <430abd12@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,95e5dbb679836a42
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jeroen Wenting" <jwenting@hotmail.com>
Sender: "Jeroen Wenting" <jwenting@hotmail.com>
Reply-To: "Jeroen Wenting" <jwenting@hotmail.com>
Subject: Re: call an jinternalframe from another jinternalframe
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 212.19.218.2     
X-Forwarded-For: 192.168.1.144
References:  <430abd12@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <430b1c0b$1@newsgroups.borland.com>
Date: 23 Aug 2005 05:52:27 -0700
X-Trace: newsgroups.borland.com 1124801547 207.105.83.66 (23 Aug 2005 05:52:27 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail