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


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

Re: Embedding a Jframe in

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

Show all headers | View raw


  To: comp.lang.java.gui
pramodsa wrote:
..
>And how do I convert between applets and frames??

For a 'frame to applet', move whatever is in the frame's
constructor into the init() method of the applet. 
Whatever the frame does on minimise or restore 
can be put in stop() and start() respectively, while
the things it does on shutdown are moved to 
destroy().

If the frame constructor takes arguments, they cannot
be passed to the applet in init() (which takes no args), 
but instead whould be configured using getParameter().

For an applet to frame, do the opposite.

-- 
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200704/1

---
 * 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 | 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