Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.alt.net!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Andrew Thompson" Subject: Re: Applets and custom cl Message-ID: <79c43c47922ec@uwe> X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <4714620f$0$11561$5a62ac22@per-qv1-newsreader-01.iinet.net.au> References: <4714620f$0$11561$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: 27 Date: Wed, 27 Apr 2011 15:40:22 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918822 96.60.20.240 (Wed, 27 Apr 2011 10:40:22 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:40:22 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2654 To: comp.lang.java.gui Qu0ll wrote: >>> Of course you have to make absolutely sure the class is not referenced >>> before you use it. Consider programming against an interface and use >>> Class.forName() to load an interface implementation (your class) to >>> make sure you have better control over the class usage. > >Actually, is Class.forName() going to work in an unsigned applet? Yes it should, so long as the classes are coming from the same host as the applet. In addition to loading loose classes lazily, you *might* (if it makes sense) also load resources from Jar files lazily. Do not add them to the archives attribute (obviously) and simply form a complete URL to the jar/resource when accessing it. -- Andrew Thompson http://www.athompson.info/andrew/ Message posted via JavaKB.com http://www.javakb.com/Uwe/Forums.aspx/java-gui/200710/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