List of usage examples for javax.swing JApplet subclass-usage
From source file FlowLayout1.java
public class FlowLayout1 extends JApplet { public void init() { Container cp = getContentPane(); cp.setLayout(new FlowLayout()); for (int i = 0; i < 20; i++) cp.add(new JButton("Button " + i));
From source file Main.java
public class Main extends JApplet { public void init() { Box bv = Box.createVerticalBox(); bv.add(new JButton("Top")); bv.add(Box.createRigidArea(new Dimension(120, 90))); bv.add(new JButton("Bottom"));
From source file Box4.java
public class Box4 extends JApplet { public void init() { Box bv = Box.createVerticalBox(); bv.add(new JButton("Top")); bv.add(Box.createRigidArea(new Dimension(120, 90))); bv.add(new JButton("Bottom"));
From source file BorderLayout1.java
public class BorderLayout1 extends JApplet { public void init() { Container cp = getContentPane(); cp.add(BorderLayout.NORTH, new JButton("North")); cp.add(BorderLayout.SOUTH, new JButton("South")); cp.add(BorderLayout.EAST, new JButton("East"));
From source file Box2.java
public class Box2 extends JApplet { public void init() { Box bv = Box.createVerticalBox(); for (int i = 0; i < 5; i++) { bv.add(new JButton("bv " + i)); bv.add(Box.createVerticalStrut(i * 10));
From source file FilterLab.java
public class FilterLab extends JApplet implements ActionListener { private Image originalImage, filteredImage; private Button btn = new Button("FILTER"); private CropImageFilter cropFilter = new CropImageFilter(50, 20, 120, 140);
From source file Box1.java
public class Box1 extends JApplet { public void init() { Box bv = Box.createVerticalBox(); for (int i = 0; i < 5; i++) bv.add(new JButton("bv " + i)); Box bh = Box.createHorizontalBox();
From source file HTMLButton.java
public class HTMLButton extends JApplet { private JButton b = new JButton("<html><b><font size=+2>" + "<center>Hello!<br><i>Press me now!"); public void init() { b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) {
From source file Button2b.java
public class Button2b extends JApplet { private JButton b1 = new JButton("Button 1"), b2 = new JButton("Button 2"); private JTextField txt = new JTextField(10); private ActionListener bl = new ActionListener() {
From source file Button2.java
public class Button2 extends JApplet { private JButton b1 = new JButton("Button 1"), b2 = new JButton("Button 2"); private JTextField txt = new JTextField(10); class ButtonListener implements ActionListener {