List of usage examples for javax.swing JApplet subclass-usage
From source file MainClass.java
public class MainClass extends JApplet { public void init() { System.out.println(getParameter("text")); } }
From source file HTMLLabelApplet.java
public class HTMLLabelApplet extends JApplet { public void init() { JLabel theText = new JLabel("<html>Hello! This is a multiline label with <b>bold</b> " + "and <i>italic</i> text. <P> " + "It can use paragraphs, horizontal lines, <hr> "
From source file MainApplet.java
public class MainApplet extends JApplet { public void init() { System.out.println("init"); } public void start() {
From source file Main.java
public class Main extends JApplet { public static void main(String[] a) throws Exception { Properties p = new Properties(); URL url = ClassLoader.getSystemResource("/com/java2s/config/system.props"); if (url != null) p.load(url.openStream());
From source file MainClass.java
public class MainClass extends JApplet { String str = ""; public void init() { str += "init; "; }
From source file MainClass.java
public class MainClass extends JApplet { public void paint(Graphics g) { AppletContext ac = getAppletContext(); try { URL url = new URL("http://www.java2s.com");
From source file AreaIntersect.java
public class AreaIntersect extends JApplet { Ellipse2D.Double leaf = new Ellipse2D.Double(); Ellipse2D.Double stem = new Ellipse2D.Double(); Area leaf1 = new Area(leaf); Area leaf2 = new Area(leaf);
From source file MainClass.java
public class MainClass extends JApplet { JButton button = new JButton("A very minimal applet"); public void init() { System.out.println("parameter=" + getParameter("param"));
From source file Main.java
public class Main extends JApplet { public void init() { Properties p = new Properties(); try { p.load((new URL(getCodeBase(), "user.props")).openStream()); } catch (MalformedURLException e) {
From source file AppletSkel.java
public class AppletSkel extends JApplet { public void init() { // Initialize the applet and construct the GUI. } // Called second, after init(). Also called whenever the applet is restarted.