简体   繁体   中英

How to invoke an applet from within a a piece of code?

I am making a simple examination app! The questions for various examinations will be present on the server. The clients will access them using RMI, and the UI for client side is being implemented in Applets! (that's according to the spec of the project!).

I want to have multiple applets for various stuff! I want to be able switch from one applet to other depending on the return value of the methods called on the server. I also want to be able to pass information if necessary!

Please tell me how can I do it!

An applet is equivalent to your workspace. You generally have one JApplet per application.

Now, you can have various JPanels within your JApplet. These JPanels can switch depending on the return value of the methods called on the server.

This Oracle tutorial should help you get started: How to Make Applets .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM