MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.plaf.basic.BasicArrowButton;

public class MainClass {

    public static void main(final String args[]) {
        JFrame frame = new JFrame("Popup JComboBox");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.add(new BasicArrowButton(BasicArrowButton.NORTH), BorderLayout.NORTH);
        frame.add(new BasicArrowButton(BasicArrowButton.EAST), BorderLayout.EAST);
        frame.add(new BasicArrowButton(BasicArrowButton.SOUTH), BorderLayout.SOUTH);
        frame.add(new BasicArrowButton(BasicArrowButton.WEST), BorderLayout.WEST);
        frame.setSize(300, 200);
        frame.setVisible(true);

    }

}