Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Andrew Thompson" Subject: Re: Embedding a Jframe in Message-ID: <70dc60a6f2e1e@uwe> X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <1176840757.471015.271040@n59g2000hsh.googlegroups.com> References: <1176840757.471015.271040@n59g2000hsh.googlegroups.com> 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:33:31 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918411 96.60.20.240 (Wed, 27 Apr 2011 10:33:31 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:33:31 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1473 To: comp.lang.java.gui pramodsa wrote: .. >I need to get my project running on the web. So, I need to embed the >JFrame in the JApplet, so that instead of calling the JFrame from the >JApplet, i can call another JApplet which has this JFrame. Do you control the source to all these frames and applets? If so, it would be simplest to convert between applets and frames as needed (in coding). Note that if the main GUI is made within a JPanel, the JPAnel can be used in either a JFrame or JApplet as needed. Applets can (theoretically) call showDocument() to show another web page, but note that the showDocument() has never been reliable, and provides no feedback (to the applet that makes the call). Further, applets themselves are problematic, and becoming ever more so. I recommend you re-enginerr the application so that it.. 1) Starts as a JFrame which opens.. 2) Other GUI elements contained within JDialog s as needed, and is.. 3) Launched using web start. We start applications are launched from a link and much easier to deploy than applets. Here are some examples.. HTH -- Andrew Thompson http://www.athompson.info/andrew/ Message posted via http://www.javakb.com --- * 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