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 {
    JList list = null;

    Main() {
        Container cp = getContentPane();
        cp.setLayout(new FlowLayout());

From source file Main.java

public class Main extends JFrame {
    public Main() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JMenuBar bar = new JMenuBar();
        JMenu menu = new JMenu("File");
        ComponentOrientation ori = ComponentOrientation.LEFT_TO_RIGHT;

From source file Main.java

public class Main extends JFrame {
    JCheckBoxMenuItem check = new JCheckBoxMenuItem("Check");

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

From source file Main.java

public class Main extends JFrame {
    private JLabel label = new JLabel(new ImageIcon("largeJava2sLogo.gif"));

    public Main() {
        super("JScrollPane Demo");
        JScrollPane scrollPane = new JScrollPane(label);

From source file HeaderDemo.java

public class HeaderDemo extends JFrame {
    private JLabel label = new JLabel(new ImageIcon("largeJava2sLogo.gif"));

    public HeaderDemo() {
        super("JScrollPane Demo");
        JScrollPane scrollPane = new JScrollPane(label);

From source file Test.java

public class Test extends JFrame {
    JTabbedPane tabs = new JTabbedPane();

    public Test() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JPanel p = new JPanel();

From source file Main.java

public class Main extends JFrame {
    public Main() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JMenuBar bar = new JMenuBar();
        JMenu menu = new JMenu("File");
        ComponentOrientation ori = ComponentOrientation.LEFT_TO_RIGHT;

From source file Main.java

public class Main extends JFrame {
    JFrame frame = new JFrame();

    public Main() {
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.add(new Panel());

From source file CombinedLayoutManager.java

public class CombinedLayoutManager extends JFrame {

    public static void main(String[] args) {
        CombinedLayoutManager e = new CombinedLayoutManager();
        e.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        e.setSize(400, 300);

From source file ColorChooserDemo.java

public class ColorChooserDemo extends JFrame {
    public ColorChooserDemo() {
        super();
        createUI();
        setVisible(true);
    }