I have written a program in JAVA(Swing) and i wish to put it on a web page as an applet. How do i go about it. Here is the skeleton of my code:
Import javax.swing.* ?. ?. All the other import statement Public class UNI extends Japplet { //declaration of components e.g button,textfield public UNI() {this(50) } public UNI(int x) { //setting up of components frame = new JFrame("UNI"); frame.getContentPane().add(mainpane,BorderLayout.CENTER); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } ); frame.pack(); frame.setSize(545,510); frame.setVisible(true); } } private class xhandler implements ActionListener {?. } private class yhandler implements ActionListener {? } private class Stephandler implements ActionListener {? } private class exithandler implements ActionListener { } private class edithandler implements ActionListener { } public void comRun(int p,String q) { } public static void main (String [] args) { UNI a=new UNI(); }