Example usage for javax.swing JFrame subclass-usage

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

Introduction

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

Usage

From source file Main.java

public class Main extends JFrame {
    public Main() {
        final AbstractTableModel model = new MyModel();
        final JTable table = new JTable(model);
        getContentPane().add(new JScrollPane(table), BorderLayout.CENTER);
        model.setValueAt(new Integer(1), 0, 0);

From source file ConvolveIt.java

public class ConvolveIt extends JFrame {
    Image image = getImage("java2s.jpg");

    private static final float[] SHARP = { 0.0f, -1.0f, 0.0f, -1.0f, 5.0f, -1.0f, 0.0f, -1.0f, 0.0f };

    BufferedImage bufferedImage;

From source file CheckBoxDemo.java

public class CheckBoxDemo extends JFrame implements ActionListener {

    JLabel fontLabel = new JLabel("The quick brown fox jumps over the lazy dog.");

    private JCheckBox bold = new JCheckBox("Bold");

From source file DragGesture.java

public class DragGesture extends JFrame implements DragGestureListener, Transferable {
    public DragGesture() {
        setTitle("Drag Gesture");
        JLabel left = new JLabel("text");
        DragSource ds = new DragSource();
        ds.createDefaultDragGestureRecognizer(left, DnDConstants.ACTION_COPY, this);

From source file JBenchFrame.java

public class JBenchFrame extends JFrame {
    BorderLayout borderLayout1 = new BorderLayout();
    JList list1 = new JList();
    JButton fillButton = new JButton();

    public static void main(String[] args) {

From source file Main.java

public class Main extends JFrame implements ActionListener {
    Image img;

    JButton getPictureButton = new JButton("Get Picture");

    public static void main(String[] args) {

From source file TableFeature.java

public class TableFeature extends JFrame {

    String titles[] = new String[] { "Directory?", "File Name", "Read?", "Write?", "Size", "Last Modified" };

    public TableFeature() {
        super("Simple JTable Test");

From source file HBox.java

public class HBox extends JFrame {

    public HBox() {
        super("Horizontal Box Test Frame");
        setSize(200, 100);
        Panel box = new Panel();

From source file QuadCurveControlPoint.java

public class QuadCurveControlPoint extends JFrame {
    DrawingCanvas canvas = new DrawingCanvas();

    public QuadCurveControlPoint() {
        getContentPane().add(canvas);
        setSize(500, 500);

From source file Main.java

public class Main extends JFrame {
    int grid = 20;
    int pnlCnt = grid * grid;
    JFrame frame = new JFrame();
    JPanel[] panels = new JPanel[pnlCnt];
    Timer t;