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() {
        setResizable(false);
        pack();
    }

From source file Main.java

public class Main extends JFrame {
    public static void main(String[] args) {
        Main frame = new Main();
        frame.setSize(100, 100);

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

From source file FirstFrame.java

public class FirstFrame extends JFrame {
    public FirstFrame() {
        setTitle("FirstFrame");
        setSize(300, 200);
    }

From source file Main.java

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

    public Main() {

From source file HelloFrame.java

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

    public HelloFrame() {

From source file MainClass.java

public class MainClass extends JFrame {
    public static void main(String[] a) throws java.net.MalformedURLException {
        java.net.URL u = new File("GetResource.java").toURL();
        System.out.println(u);
    }
}

From source file MainClass.java

public class MainClass extends JFrame {
    public static void main(String[] a) {
        File[] drives = File.listRoots();
        for (int i = 0; i < drives.length; i++)
            System.out.println(drives[i]);
    }

From source file JTextFieldTest.java

public class JTextFieldTest extends JFrame {
    public JTextFieldTest() {
        super("JTextField Test");

        getContentPane().setLayout(new FlowLayout());

From source file Main.java

public class Main extends JFrame {
    public Main() {
        super("JTextField Test");

        getContentPane().setLayout(new FlowLayout());

From source file MainClass.java

public class MainClass extends JFrame {

    public static void main(String[] a) {
        MainClass f = new MainClass();
        f.setSize(300, 300);
        f.setVisible(true);