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

public class MyLabel extends JFrame {

    public static void main(String[] args) {
        String lyrics = "<html>Line<br>line<br>line</html>";

        JPanel panel = new JPanel();

From source file MainClass.java

public class MainClass extends JFrame {

    public MainClass() {
        super("Opaque JPanel Demo");
        setSize(400, 200);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

From source file Main.java

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

    public Main() {

From source file OpaqueExample.java

public class OpaqueExample extends JFrame {

    public OpaqueExample() {
        super("Opaque JPanel Demo");
        setSize(400, 200);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

From source file Main.java

public class Main extends JFrame {
    JCheckBox check = new JCheckBox("Checkbox", false);

    public Main() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

From source file Main.java

public class Main extends JFrame {
    public Main() {
        ImageIcon aboutIcon = new ImageIcon("about16.gif");
        ImageIcon addIcon = new ImageIcon("add16.gif");
        ImageIcon copyIcon = new ImageIcon("copy16.gif");

From source file TimerChangeButtonBackground.java

public class TimerChangeButtonBackground extends JFrame {
    boolean flag = false;

    JButton button = new JButton("Click to stop");

    Timer timer;

From source file Main.java

public class Main extends JFrame implements KeyListener {
    JComboBox<String> combobox = new JComboBox(new String[] { "a", "b", "c" });

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

From source file Main.java

public class Main extends JFrame {

    public Main() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JLabel label = new JLabel("Some label text");
        label.setBorder(BorderFactory.createLineBorder(Color.green));

From source file MainClass.java

public class MainClass extends JFrame {

    String titles[] = new String[] { "Directory?", "File Name", "Read?", "Write?", "Size", "Last Modified" };

    public MainClass() {
        super("Simple JTable Test");