🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: display problem of JInternalFrame

#13151
From: Michael A. Long
Date: Sun, 13 Sep 1998 00:00
58 lines
2522 bytes
I belive you will have to use the JInternalFrame's accessor
setClosable(boolean)
to true in order for it to be closable.

There is also a isClosable() that returns a boolean to tell you the current state of the JInternalFrame's closable state.

Wu, Weimin wrote in message <35F99C64.ED7F67D5@784.hypermart.com>...
>Michael,
>
>Thanks for your answer. I quess you are right,  I should use JDesktopPane, but it seems that is not all.
>
>I add a JDesktopPane and add JInternalFrame to the JDesktopPane. Now the frame can be resized, but it CANNOT be closed.
>
>I am not sure if it needs more than JDesktopPane. Anyway, thanks for your answer again.
>
>wu
>
>
>
>Michael A. Long wrote:
>
>> I just started playing with this so take this answer with several grains of salt.  I believe you have to, or should, use
>> JDesktopPane as a container for JInternaFrame.
>>
>> This is one area where the help file (suprisingly) has some pretty good info.  Just look up JDesktopPane.
>>
>> Wu, Weimin wrote in message <35F6C23F.C5965536@784.hypermart.com>...
>> >Hi,
>> >
>> >I am trying to use a JInternalFrame in an applet that extends JApplet. I
>> >am using JBuilder c/s.
>> >
>> >I created a JInternalFrame
>> >
>> >  JInternalFrame jInternalFrame_login = new
>> >JInternalFrame("test",true,true,true,true);
>> >
>> >and add it to a JPanel, which is added to this. No code is added
>> >manually ( except extending of  JApplet).
>> >
>> >
>> >Then I test it in AppletViewer. The frame is displayed there and looks
>> >fine. But when I click the icon on the top of the frame, the frame
>> >doesnt response. It cannot be maximumized  and closed. It can be
>> >"iconized", disappeared,  I have to resize the AppletViewer pane to find
>> >the iconized frame.
>> >
>> >The error message is,  java.lang.NullPointerException.
>> >
>> >Is there anybody could help me with this problem? Thanks.
>> >
>> >
>> >
>> >
>> >
>> >wu
>> >
>
Technical Details
Message-ID: <6thvj7$mne6@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35F6C23F.C5965536@784.hypermart.com> <6tasut$drb10@forums.borland.com> <35F99C64.ED7F67D5@784.hypermart.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,98c9f1b915d4464f
X-Google-Attributes: gid111d45,public
From: "Michael A. Long" <mlong@cmc.net>
Subject: Re: display problem of JInternalFrame
Date: 1998/09/13
Message-ID: <6thvj7$mne6@forums.borland.com>
X-Deja-AN: 390859504
References: <35F6C23F.C5965536@784.hypermart.com> <6tasut$drb10@forums.borland.com> <35F99C64.ED7F67D5@784.hypermart.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: CSU Chico
Newsgroups: borland.public.jbuilder.java.swing