Article View: borland.public.jbuilder.java.swing
Article #747Re: MDI application
From: Lori M Olson [TeamB]
Date: Mon, 06 Dec 2004 15:22
Date: Mon, 06 Dec 2004 15:22
50 lines
2615 bytes
2615 bytes
sasha wrote:
> Hi. I need to design MDI application. I created public class ChildFrame
> extends JInternalFrame and in my main form i added such code:
>
> //Construct the frame
> public MDIForm() {
> enableEvents(AWTEvent.WINDOW_EVENT_MASK);
> try {
> jbInit();
> // ChildFrame frame;
> frame = new ChildFrame();
> this.getContentPane().add(frame);
> frame.setVisible(true);
>
> But i've got very strange MDI-application :-) Does anybody can tell me
> (or show link) how can i build windows-like MDI application in JBuilder?
Make sure you set your Look & Feel to the Windows (platform default)
Look & Feel, or it will continue to look strange.
You need to learn about MDI applications in Swing. JBuilder will help
you design menus for your frames, and panes for your dialogs, but you'll
have to learn how to wire them together too. You need a good Swing
book. This is a good online resource:
http://java.sun.com/docs/books/javatutorial/jfc.html
Start here for some basic MDI information:
http://java.sun.com/products/jlf/ed2/book/HIG.Windows4.html
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<41b47932@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41b47079@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,24a77c97c127a491 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 06 Dec 2004 08:22:26 -0700 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax; CDonDemand-Dom) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: MDI application References: <41b47079@newsgroups.borland.com> In-Reply-To: <41b47079@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <41b47932@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102346546 142.179.181.200 (6 Dec 2004 07:22:26 -0800) Lines: 51 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail