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 MainClass.java

public class MainClass extends JFrame {
    public static void main(String[] args) {
        new MainClass();
    }

    private JButton button1 = new JButton("Click Me!"), exitButton = new JButton("Exit");

From source file BoxLayoutGlueStrutCompare.java

public class BoxLayoutGlueStrutCompare extends JFrame {

    public BoxLayoutGlueStrutCompare() {
        JPanel p = new JPanel(new GridLayout(3, 1));

        JPanel p1 = new JPanel();

From source file BufferedAnimate.java

public class BufferedAnimate extends JFrame {

    private static int DELAY = 100;

    Image buffer;

From source file Main.java

public class Main extends JFrame {
    private JPanel panel = new JPanel();
    private JTextPane tpane = new JTextPane();
    private AbstractDocument abDoc;

    public Main() {

From source file GraphicsInfo.java

public class GraphicsInfo extends JFrame {

    private void printModelType(ColorModel cm) {
        if (cm instanceof DirectColorModel) {
            System.out.println("DirectColorModel");
        } else if (cm instanceof IndexColorModel) {

From source file Test.java

public class Test extends JFrame {
    JPopupMenu menu = new JPopupMenu("Popup");

    class MyLabel extends JLabel {
        public MyLabel(String text) {
            super(text);

From source file Main.java

public class Main extends JFrame {
    Main() {
        setLayout(new FlowLayout());
        add(new JDie());
        add(new JDie());
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

From source file CompoundBorderLabel.java

public class CompoundBorderLabel extends JFrame {
    JLabel label = new JLabel("A label with some borders");

    public CompoundBorderLabel() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

From source file SetValueAtToSetValue.java

public class SetValueAtToSetValue extends JFrame {
    public SetValueAtToSetValue() {
        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 TreeCellRendererImplementation.java

public class TreeCellRendererImplementation extends JFrame {

    public TreeCellRendererImplementation() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        DefaultMutableTreeNode root = new DefaultMutableTreeNode("+");