Article View: borland.public.jbuilder.java.swing
Article #8519How to create MDI application
From: Tomas Urbanec
Date: Fri, 11 Aug 2000 00:00
Date: Fri, 11 Aug 2000 00:00
32 lines
1249 bytes
1249 bytes
I have descendant of JFrame. It's contentPane is set to desktopPane.
I have this code:
fmSQL = new IFmSQL( conn );
fmSQL.setVisible( true );
desktop.add( fmSQL );
try
{
fmSQL.setSelected( true );
}
catch(java.beans.PropertyVetoException exc) {}
}
fmSQL is descendat of JInternalFrame.
it's constructor looks like this
public IFmSQL( java.sql.Connection conn )
{
super( "fgf",true,true,true,true );
this.conn = conn;
try
{
jbInit();
}
catch(Exception e)
{
e.printStackTrace();
}
}
And after this nothing happens. How can I display internal frames? Where's
the bug?
thanks
Technical Details
Message-ID:
<3993eb41_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7d8ac29e0f8b82f3,start X-Google-Attributes: gid111d45,public From: "Tomas Urbanec" <urbi@i.am> Subject: How to create MDI application Date: 2000/08/11 Message-ID: <3993eb41_1@dnews> X-Deja-AN: 657133039 X-Original-NNTP-Posting-Host: 207.105.83.65 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Organization: N/A X-MSMail-Priority: Normal Reply-To: "Tomas Urbanec" <urbi@i.am> Newsgroups: borland.public.jbuilder.java.swing