Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Andrew Thompson" Subject: Re: Applets automatically Message-ID: <776c6fca6c494@uwe> X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <46d57aa9$0$12132$5a62ac22@per-qv1-newsreader-01.iinet.net.au> References: <46d57aa9$0$12132$5a62ac22@per-qv1-newsreader-01.iinet.net.au> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 48 Date: Wed, 27 Apr 2011 15:38:29 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918709 96.60.20.240 (Wed, 27 Apr 2011 10:38:29 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:38:29 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2331 To: comp.lang.java.gui Qu0ll wrote: >I know almost nothing about applets so please excuse the possible lameness >of this question. Applets are not for noobs. You are better off looking to a web start launched JFrame (which is automatically resizable), or the same launch for an applet (though that requires a bit of hackish tweaking, to make it resizable in the applet viewer). >Can someone tell me if it's possible for an applet to adjust its size (i.e. >the amount of the web page it takes up) when the size of the web page itself >changes? Yes, no, maybe. Depends on the browser/VM combo. 1) You might look to JavaScript to check the page size regularly, and then resize the applet accordingly. Obviously that will fail if JS is disabled. 2) Use a combination of HTML and CSS and 'hope for the best'. Here are my best experiments. >...port my Swing applications to the web (and yes I > know about JNLP which is not what I am looking for). Applets and Swing embedded in web pages. 'Welcome to a world of trouble'. Why does web start *not* provide what these applications need? There are a very few applets that rely of interaction with JS that simply *cannot* be run using web start, but very little else prevents a web start launch, and something coming from being a desktop application is unlikely to rely on use of javascript. -- Andrew Thompson http://www.athompson.info/andrew/ Message posted via JavaKB.com http://www.javakb.com/Uwe/Forums.aspx/java-gui/200708/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