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 FlowLayout());
        JLabel labelTwo = new JLabel("www.java2s.com");
        labelTwo.setBorder(BorderFactory.createCompoundBorder());

From source file Main.java

public class Main extends JFrame {
    public Main() {
        Box box = Box.createHorizontalBox();
        box.setBorder(new EmptyBorder(5, 5, 5, 5));
        Dimension size = new Dimension(100, 25);

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.createDashedBorder(Color.red, 30F, 1F));

From source file Main.java

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

From source file Main.java

public class Main extends JFrame {
    public Main(String name) {
        getContentPane().setLayout(new FlowLayout());
        JLabel labelTwo = new JLabel("www.java2s.com");
        labelTwo.setBorder(BorderFactory.createEmptyBorder());

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.createDashedBorder(Color.red));

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.createDashedBorder(Color.red, 2.0f, 10.0f, 1.0f, true));

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

public class MainClass extends JFrame {
    public MainClass(String name) {
        getContentPane().setLayout(new FlowLayout());
        JLabel labelTwo = new JLabel("www.java2s.com");
        labelTwo.setBorder(BorderFactory.createEtchedBorder());

From source file Main.java

public class Main extends JFrame {
    public Main() {
        setLayout(new BorderLayout());
        add(new DrawSine(), BorderLayout.CENTER);
    }