Article View: borland.public.jbuilder.java.swing
Article #1508Re: Dialog box association
From: Matthew Sweet
Date: Tue, 16 Dec 2003 15:29
Date: Tue, 16 Dec 2003 15:29
47 lines
2855 bytes
2855 bytes
That's the problem I'm having. Where I'm creating the dialog box I don't know how to get to the Frame class to pass it in. I'm basically trying to create my own color chooser. Something simple with about 8 colors. I have my main frame that instantiates a class extending JPanel which in turn instantiates another class extending JPanel and from there instantiates the JDialog. I can't get to the Frame component from that last JPanel class to pass it into the JDialog class I created. "Lori M Olson (TeamB)" <javadragon@techie.com> wrote in message news:3fde265c$1@newsgroups.borland.com... > Matthew Sweet wrote: > > > I've created a dialog box within a class that is instantiated by the main > > Frame class. I run my program and the dialog box pops up, however when I > > click off my application and then click back to it, the dialog box doesn't > > come back with my main application. How to I associate my dialog box with > > the main frame when the dialog box is created by another class? > > > > > > Did you give the dialog box an "owner" frame? It needs to be "owned" by > your main application window, in order to get the behavior you want. > > -- > > 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:
<3fdf2537$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!green.octanews.net!news.octanews.net!cox.net!news-xfer.cox.net!news2.telebyte.nl!news-fra1.dfn.de!news0.de.colt.net!news.ipv6.iphh.net!iphh.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fde2463@newsgroups.borland.com> <3fde265c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,55c92298dba121d1 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-12-16 07:40:04 PST Reply-To: "Matthew Sweet" <matthew.sweet@sed.redstone.army.mil> From: "Matthew Sweet" <matthew.sweet@sed.redstone.army.mil> Newsgroups: borland.public.jbuilder.java.swing References: <3fde2463@newsgroups.borland.com> <3fde265c$1@newsgroups.borland.com> Subject: Re: Dialog box association Date: Tue, 16 Dec 2003 09:29:09 -0600 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 136.205.73.67 Message-ID: <3fdf2537$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071588663 136.205.73.67 (16 Dec 2003 07:31:03 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!green.octanews.net!news.octanews.net!cox.net!news-xfer.cox.net!news2.telebyte.nl!news-fra1.dfn.de!news0.de.colt.net!news.ipv6.iphh.net!iphh.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail