Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "tar" Subject: Re: a naive question Message-ID: X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: References: Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 40 Date: Wed, 27 Apr 2011 15:31:33 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918293 96.60.20.240 (Wed, 27 Apr 2011 10:31:33 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:31:33 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1135 To: comp.lang.java.gui "gg" writes: > due my naivety, using JDK 1.5.1 and netbean IDE 5.5, I created 3 files, 1 > main, 2 jframes: JFA, and JFB. > > Normally the main opens JFA. which just works like a charm. JFB is similar > to JFA, > > I coded the main to accept an argument on command line to open JFB with the > similar code to JFA. > > However, I could not show JFB from main; I run afoul of layout more than > once > > In JFA, I tried using button to place JFB in a jdialog, again I run into the > layout problem. > > even new JFB().setVisible(true); > still gave me trouble > > what should I really do instead? I tried looking for info on the layer > contentpane. So far I have yet to find anything concrete I can use Well, you could do one of the following: * Figure out in what ways JFA and JFB are different and go from there. * Find a psychic who can figure out the problem for you. * Post a runnable example here so the non-psychics have a chance to comment. -- Thomas A. Russ, USC/Information Sciences Institute --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24