tags:

views:

53

answers:

1

I have a Java file and from that I want to call an applet file.

How to do it?

A: 

You need something to display the applet in, it won’t show itself miraculously somewhere.

JFrame frame = new JFrame();
frame.getContentPane().add(applet);
frame.setVisible(true);
Bombe
This might work, but you'd probably want to act like an applet container, calling init() and start(), stop() and destroy() appropriately.
CarlG