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() {
        getContentPane().setLayout(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        JPanel panel1 = new JPanel();
        Border eBorder = BorderFactory.createEtchedBorder();

From source file Main.java

public class Main extends JFrame {
    public Main() throws HeadlessException {
        setSize(400, 200);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLayout(new FlowLayout(FlowLayout.LEFT));

From source file PrintSampleApp.java

public class PrintSampleApp extends JFrame {
    MyCanvas canvas = new MyCanvas();

    public static void main(String args[]) {
        PrintSampleApp app = new PrintSampleApp();
    }

From source file Main.java

public class Main extends JFrame {
    public Main() {
        this.setUndecorated(true);

        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setSize(200, 200);

From source file RevalidateExample.java

public class RevalidateExample extends JFrame {

    public RevalidateExample() {
        super("Revalidation Demo");
        setSize(300, 150);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

From source file Main.java

public class Main extends JFrame {
    public Main() throws Exception {
        setSize(400, 240);
        JPanel topPanel = new JPanel();
        topPanel.setLayout(new BorderLayout());
        getContentPane().add(topPanel, BorderLayout.CENTER);

From source file BorderLayoutExample.java

public class BorderLayoutExample extends JFrame {

    public static void main(String[] args) {
        BorderSample bs = new BorderSample();
        bs.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Container pane = bs.getContentPane();

From source file HtmlLabel.java

public class HtmlLabel extends JFrame {
    public HtmlLabel() {
        super("HTML Buttons");
        setSize(400, 300);

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

From source file Main.java

public class Main extends JFrame {

    Main() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(900, 600);

From source file ClipBetweenRectangleEllipse2D.java

public class ClipBetweenRectangleEllipse2D extends JFrame {
    public ClipBetweenRectangleEllipse2D() {
        getContentPane().add(new DrawingCanvas());
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(500, 500);
        setVisible(true);