Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2654
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Applets and custom cl |
| Message-ID | <79c43c47922ec@uwe> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <4714620f$0$11561$5a62ac22@per-qv1-newsreader-01.iinet.net.au> |
| Date | 2011-04-27 15:40 +0000 |
| Organization | TDS.net |
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
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Applets and custom cl "Qu0ll" <qu0ll@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Applets and custom cl "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Applets and custom cl a24900@googlemail.com.remove-dii-this - 2011-04-27 15:40 +0000
Re: Applets and custom cl "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
csiph-web