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() {
        super("Month Spinner");
        setSize(200, 100);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

From source file Main.java

class Test extends JFrame {
    String[] name = { "Name", "grade" };
    Object[][] cells = { { "A", "B" }, { "C", "D" }, { "E", "F" } };

    public Test() {
        setSize(500, 210);

From source file Main.java

public class Main extends JFrame {
    public Main() {
        getContentPane().setLayout(new FlowLayout());
        JLabel labelTwo = new JLabel("www.java2s.com");
        labelTwo.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));

From source file Main.java

public class Main extends JFrame {
    public Main() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLayout(new BorderLayout());

        JPanel upper = new JPanel();

From source file Main.java

public class Main extends JFrame {
    public Main() {
        getContentPane().setLayout(new FlowLayout());
        JLabel labelTwo = new JLabel("www.java2s.com");
        labelTwo.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED, Color.red, Color.black));

From source file Main.java

public class Main extends JFrame {

    public Main() {
        this.setLayout(new FlowLayout());
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

From source file Main.java

public class Main extends JFrame {
    State state;
    Set<StateListener> listeners = new HashSet<StateListener>();

    public Main() {
        state = new State();

From source file Main.java

public class Main extends JFrame {

    JComboBox<String> box = new JComboBox<String>(new String[] { "1", "22", "33" });

    public Main() {
        box.setBackground(Color.RED);

From source file Main.java

public class Main extends JFrame {
    public Main() {
        JSpinner m_dateSpinner;
        SpinnerDateModel m_dateSpinnerModel;
        Calendar rightNow = Calendar.getInstance();

From source file Main.java

public class Main extends JFrame {
    int minValue = 0;
    int maxValue = 100;
    int counter = 0;
    JProgressBar progressBar = new JProgressBar();