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

public class MainClass extends JFrame {
    ColorName colors[] = { new ColorName("Red"), new ColorName("Green"), new ColorName("Blue"),
            new ColorName("Black"), new ColorName("White") };

    public MainClass() {
        super("Table With DefaultCellEditor Example");

From source file javatest.NewJFrame.java

/**
 *
 * @author christian
 */
public class NewJFrame extends javax.swing.JFrame {

From source file Main.java

public class Main extends JFrame implements ActionListener {
    Image img;

    JButton getPictureButton = new JButton("Get Picture");

    public static void main(String[] args) {

From source file Main.java

public class Main extends JFrame implements ActionListener {
    Image img;

    JButton getPictureButton = new JButton("Get Picture");

    public static void main(String[] args) {

From source file Main.java

public class Main extends JFrame {
    public Main() {
        Vector model = new Vector();
        model.addElement(new Item(new ImageIcon("copy16.gif"), "copy"));
        model.addElement(new Item(new ImageIcon("add16.gif"), "add"));
        model.addElement(new Item(new ImageIcon("about16.gif"), "about"));

From source file Main.java

public class Main extends JFrame {
    public Main() {
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        // Make sure the frame is undecorated
        this.setUndecorated(true);
        this.setBackground(new Color(0, 0, 0, 0));

From source file Main.java

public class Main extends JFrame {
    JLabel jLabel1 = new JLabel("jLabel1");
    JLabel jLabel2 = new JLabel("jLabel2");
    JMenuItem jMenuItem1 = new JMenuItem("jMenuItem1");
    JPopupMenu jPopupMenu1 = new JPopupMenu();
    JTabbedPane jTabbedPane1 = new JTabbedPane();

From source file ListTest.java

public class ListTest extends JFrame implements ListSelectionListener {
    JLabel label = new JLabel("The fox jumps over the lazy dog.");

    public ListTest() {
        setTitle("ListTest: Press control to multi-select");
        setSize(400, 300);

From source file Main.java

public class Main extends JFrame {

    public Main() {
        setPreferredSize(new Dimension(500, 500));
        getContentPane().setLayout(new BorderLayout());
        JPanel panel = new JPanel(new GridBagLayout());

From source file SimpleLayers.java

public class SimpleLayers extends JFrame {
    public SimpleLayers() {
        super("LayeredPane Demonstration");
        setSize(200, 150);
        setDefaultCloseOperation(EXIT_ON_CLOSE);