🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Closing Internal Frame

#8346
From: Siegfried M�nch
Date: Sat, 23 Sep 2000 00:00
28 lines
1438 bytes
Hallo,

i have a internal frame. In this frame there is a panel named
"PanelSprachen1".

  // Sprachen
  void jMenuItem46_actionPerformed(ActionEvent e) {
    createFrame(680, 300, "Sprachen-Verwaltung");
    PanelSprachen PanelSprachen1 = new PanelSprachen();
    JInternalFrame[] frames = desktop.getAllFrames();
    frames[0].setContentPane(PanelSprachen1);
  }
In the panel "PanelSprachen1" is a jButton. I want to close the internal
frame by clicking on
the jButton.

My Question: Is there a standard-methode in the panel-class, where i can get
the reference to
the internal frame? Or must i reference the frame within the panel by
myself?

When i invoke in action-event of the jbutton something like this:
this.setVisible(false), then
only the panel PanelSprachen1 will by unvisible, but the internal frame is
allways visible.

by
Siegfried M�nch
Technical Details
Message-ID: <39cc8477_1@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,d67c4fbd6b4005fc,start
X-Google-Attributes: gid111d45,public
From: "Siegfried M�nch" <SMuench@muench.de>
Subject: Closing Internal Frame
Date: 2000/09/23
Message-ID: <39cc8477_1@dnews>
X-Deja-AN: 673169882
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Trace: 23 Sep 2000 03:22:47 -0800, 212.184.132.224
Organization: M�nch EDV
X-MSMail-Priority: Normal
Reply-To: "Siegfried M�nch" <SMuench@muench.de>
Newsgroups: borland.public.jbuilder.java.swing