The Artima Developer Community
Sponsored Link •

Design Forum
Application to Applet

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
DAYO

Posts: 22
Nickname: done
Registered: Jun, 2002

Application to Applet Posted: Jun 24, 2002 8:06 AM
Reply to this message Reply
Advertisement
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();
}

}

Topic: seting the text in JFrame's center(JTextpane)drawing lines and fonts Previous Topic   Next Topic Topic: New to Programming Revised

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use