Example usage for javax.swing JApplet subclass-usage

List of usage examples for javax.swing JApplet subclass-usage

Introduction

In this page you can find the example usage for javax.swing JApplet subclass-usage.

Usage

From source file MemoryImageGenerator.java

public class MemoryImageGenerator extends JApplet {
    Image img;

    public void init() {
        Dimension d = getSize();
        int w = d.width;

From source file TableDemoApplet.java

public class TableDemoApplet extends JApplet {

    public TableDemoApplet() {
        createGUI(getContentPane());
    }

From source file Applet1c.java

public class Applet1c extends JApplet {
    public void init() {
        getContentPane().add(new JLabel("Applet!"));
    }

    // A main() for the application:

From source file DoubleBufferedImage.java

public class DoubleBufferedImage extends JApplet {
    private Image dbImage;

    private Image originalImage;

    private int xLocation = 0;

From source file MyApplet.java

public class MyApplet extends JApplet {
    JButton jbtnOne;
    JButton jbtnTwo;

    JLabel jlab;

From source file AreaAdd.java

public class AreaAdd extends JApplet {
    Ellipse2D.Double circle = new Ellipse2D.Double();
    Ellipse2D.Double oval = new Ellipse2D.Double();
    Area circ = new Area(circle);
    Area ov = new Area(oval);

From source file AreaSubtract.java

public class AreaSubtract extends JApplet {
    Ellipse2D.Double stem = new Ellipse2D.Double();
    Area st1 = new Area(stem);
    Area st2 = new Area(stem);

    public void init() {

From source file QuadCurve.java

public class QuadCurve extends JApplet {
    DrawingCanvas canvas;

    public static void main(String[] a) {
        JFrame f = new JFrame();
        QuadCurve curve = new QuadCurve();

From source file Main.java

public class Main extends JApplet {
    public void init() {
        Box bv = Box.createVerticalBox();
        bv.add(new JLabel("Hello"));
        bv.add(Box.createVerticalGlue());
        bv.add(new JLabel("Applet"));

From source file Button1.java

public class Button1 extends JApplet {
    private JButton b1 = new JButton("Button 1"), b2 = new JButton("Button 2");

    public void init() {
        Container cp = getContentPane();
        cp.setLayout(new FlowLayout());