Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1473

Re: Embedding a Jframe in

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: Embedding a Jframe in
Message-ID <70dc60a6f2e1e@uwe> (permalink)
Newsgroups comp.lang.java.gui
References <1176840757.471015.271040@n59g2000hsh.googlegroups.com>
Date 2011-04-27 15:33 +0000
Organization TDS.net

Show all headers | View raw


  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..
<http://www.physci.org/jws/>

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

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Embedding a Jframe in an "pramodsa" <pramodsa@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
  Re: Embedding a Jframe in "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
    Re: Embedding a Jframe in "pramodsa" <pramodsa@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
      Re: Embedding a Jframe in "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
        Re: Embedding a Jframe in "pramodsa" <pramodsa@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
          Re: Embedding a Jframe in "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
      Re: Embedding a Jframe in "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000

csiph-web