Problem with Applets

  • Thread starter Adam gimli84.o2.pl
  • Start date
A

Adam gimli84.o2.pl

I have some problem. I've build some applet, however it is too large
so i wish to divide it into peices, however i also wan't it to load
jaxt parts of it just by clicking on a button. I wish I said it clear
(im not native and my english isn't good).

To show what I mean I will give an example.

There is a login.class where is first class I want to execute, then
,after uses's pressing button >>log in<< ,I wish there will be file
start.class loaded and the main class run.

Is it posible to be done? I'm absolutely beginner so i would be
greatfull for simple explanation. Maby there is some simple applet
that show what I need. I was lookin after it on www.sun.com, however
unsuccesfully

Cheers,
Adam Skrodzki
 
R

Roedy Green

There is a login.class where is first class I want to execute, then
,after uses's pressing button >>log in<< ,I wish there will be file
start.class loaded and the main class run.

Java only loads classes as they are used. You can start by breaking
your app into several classes. You can go further after that by
having multiple archive jars.

You just split your classes between jars, and mention all the jars in
the Applet tag, and it will look through them all. It won't even
download a jar if you never use a class in it.

--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
 
A

Adam gimli84.o2.pl

Thank you, very much, Hovewer i have no idea how to execute from one
public class diferent one located in other file, could you help me.

P. S.
I was searching on www.sun.com how to do this, if you know where is
it, just give me a link, please.

Adam Skrodzki
 
R

Remon van Vliet

Adam gimli84.o2.pl said:
Roedy Green <[email protected]> wrote in message
Thank you, very much, Hovewer i have no idea how to execute from one
public class diferent one located in other file, could you help me.

P. S.
I was searching on www.sun.com how to do this, if you know where is
it, just give me a link, please.

Adam Skrodzki

Happens automatically, put your "core" classes in one JAR, and the different
collections of optional classes in seperate JARs, the appropriate ones will
be loaded on demand, provided you defined them all in your applet tags..

Remon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top