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

public class Test extends JFrame {

    public Test() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JPanel panel1 = new JPanel(new GridLayout(1, 5));
        for (int i = 0; i < 5; i++) {

From source file AlphaCompositeCLEAR.java

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

From source file Main.java

public class Main extends JFrame {
    private Internal internalFrame;

    public Main() throws HeadlessException {
        setBounds(10, 10, 600, 400);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

From source file Main.java

public class Main extends JFrame {
    private final JDesktopPane desktopPane = new JDesktopPane();

    public Main() {
        JInternalFrame frame1 = new JInternalFrame("Frame 1", true, true, true, true);

From source file Main.java

public class Main extends JFrame {

    public Main() {
        JPanel simplePanel = new JPanel(new GridLayout(7, 1, 5, 5));

        simplePanel.setBorder(BorderFactory.createMatteBorder(2, 5, 2, 5, Color.BLUE));

From source file Main.java

public class Main extends JFrame {

    public Main() {
        JPanel simplePanel = new JPanel(new GridLayout(7, 1, 5, 5));
        simplePanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
        JLabel simpleLabel = new JLabel("SIMPLE BORDERS", JLabel.CENTER);

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() {
        JPanel simplePanel = new JPanel(new GridLayout(7, 1, 5, 5));

        simplePanel.setBorder(BorderFactory.createTitledBorder("Title Border"));

From source file Main.java

public class Main extends JFrame {

    public Main() {
        JPanel simplePanel = new JPanel(new GridLayout(7, 1, 5, 5));

        JLabel etchedLowBorderLabel = new JLabel("Lowered Etched Border", JLabel.CENTER);

From source file Main.java

public class Main extends JFrame {

    public Main() {
        JPanel simplePanel = new JPanel(new GridLayout(1, 1, 5, 5));

        JLabel etchedRasBorderLabel = new JLabel("Raised Etched Border", JLabel.CENTER);