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() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JMenuBar bar = new JMenuBar();
        JMenu menu = new JMenu("File");
        ComponentOrientation ori = ComponentOrientation.LEFT_TO_RIGHT;

From source file MainClass.java

public class MainClass extends JFrame implements ActionListener {

    static ProgressMonitor pbar = new ProgressMonitor(null, "Monitoring Progress", "Initializing . . .", 0, 100);

    static int counter = 0;

From source file Main.java

public class Main extends JFrame {

    public Main() {
        JComboBox comboBox = new JComboBox();

        setListCellRendererOf(comboBox);

From source file Main.java

public class Main extends JFrame {
    private BufferedImage bi;

    private int zoom = 0;

    private static final double ZOOM_AMOUNT = 1.1;

From source file Main.java

public class Main extends JFrame {
    public Main() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JPanel pnl = new JPanel();
        pnl.add(new JLabel("Enter text"));
        final JTextField txtText;

From source file ColorChooser_01.java

public class ColorChooser_01 extends JFrame {
    private JLabel sampleText = new JLabel("Label");
    private JButton chooseButton = new JButton("Choose Color");

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

From source file MainClass.java

public class MainClass extends JFrame {
    MainClass() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JPanel p = new JPanel();
        p.setPreferredSize(new Dimension(200, 50));
        JButton jb = new JButton(new ImageIcon("bullet.gif"));

From source file ExecDemoNS.java

/**
 * ExecDemoNS shows how to execute a program from within Java.
 */
public class ExecDemoNS extends JFrame {
    /** The name of the help file. */
    protected final static String HELPFILE = "./help/index.html";

From source file Main.java

public class Main extends JFrame {

    public Main() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JList<String> list = new JList<>(new String[] { "1", "2", "3" });
        list.setCellRenderer(getRenderer());

From source file Main.java

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

        List<String> columns = new ArrayList<String>();
        List<String[]> values = new ArrayList<String[]>();