Top.Mail.Ru
February 15th, 2004 - Java developers — LiveJournal
? ?

Java developers

February 15th, 2004
Image

11:33 am - Imaget3knomanser - Using ClassLoader - Loading a User defined class from a string of its name

I'm still working on that Kicker application.

Here's what I want to have it do.

There's a class AppletLoader which keeps track of a database of all available KickerApplets. The KickerApplets themselves are children of JPanel.

Now, the idea is that a developer can write their own KickerApplet, drop it into the directory where the other applets are located, add an entry in the database, and from that point forward, the application can use that KickerApplet.
So here's my plan...Collapse )

What I'm really trying to get at here, is what method should I use to load an instance of a class by its name alone? Am I on the right track here? Google's not helping much at the moment, mostly because I can't figure out a search for this.

[edit]Never mind- found it, but this is still a neet topic anyway. Some useful source[/edit]
Powered by LiveJournal.com
Image