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() {
        setSize(200, 100);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

From source file Main.java

public class Main extends JFrame {

    private void init() {
        this.setLayout(new BorderLayout());
        JPanel topPanel = new JPanel();
        final JLabel topLabel = new JLabel("North");

From source file LayeredPaneDemo.java

public class LayeredPaneDemo extends JFrame {
    public LayeredPaneDemo() {
        super("");
        setSize(570, 400);
        getContentPane().setBackground(new Color(244, 232, 152));

From source file Main.java

public class Main extends JFrame {
    public Main() {
        GridBagLayout layout = new GridBagLayout();
        GridBagConstraints constraints = new GridBagConstraints();
        getContentPane().setLayout(layout);
        constraints.anchor = GridBagConstraints.WEST;

From source file Main.java

public class Main extends JFrame {
    public Main() {
        JComboBox<String> comboBox = new JComboBox<String>();
        comboBox.setRenderer(new MyListCellRenderer());
        comboBox.addItem("Hi");
        comboBox.addItem("Hello");

From source file Main.java

public class Main extends JFrame {
    JComponent comp = new JLabel("Test label");

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

From source file Main.java

public class Main extends JFrame {
    JPanel panel = new JPanel();

    public static void main(String[] args) {
        Main frame = new Main();
        frame.setVisible(true);

From source file Main.java

public class Main extends JFrame {
    public Main() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JPanel p = new JPanel(new BorderLayout());
        JTextField tf = new JTextField(5);
        JLabel label = new JLabel(new ImageIcon("Test.gif"));

From source file Main.java

public class Main extends JFrame {

    private JPanel pane;

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

From source file Main.java

public class Main extends JFrame {
    JPasswordField field = new JPasswordField("*", 10);

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