All Downloads are FREE. Search and download functionalities are using the official Maven repository.

test.BorderTest Maven / Gradle / Ivy

Go to download

A Mavenisation of the Quaqua Mac OSX Swing Look and Feel (Java library) Quaqua Look and Feel (C) 2003-2010, Werner Randelshofer. Mavenisation by Matt Gumbley, DevZendo.org - for problems with Mavenisation, see Matt; for issues with Quaqua, see the Quaqua home page. For full license details, see http://randelshofer.ch/quaqua/license.html

The newest version!
/*
 * @(#)BorderTest.java  1.0  September 25, 2005
 *
 * Copyright (c) 2005 Werner Randelshofer, Immensee, Switzerland.
 * All rights reserved.
 *
 * You may not use, copy or modify this file, except in compliance with the
 * license agreement you entered into with Werner Randelshofer.
 * For details see accompanying license terms.
 */

package test;

/**
 * BorderTest.
 *
 * @author  Werner Randelshofer
 * @version 1.0 September 25, 2005 Created.
 */
public class BorderTest extends javax.swing.JPanel {
    
    /**
     * Creates a new instance.
     */
    public BorderTest() {
        initComponents();
        groupBoxPanel1.setOpaque(true);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        groupBoxPanel1 = new javax.swing.JPanel();
        groupBoxPanel2 = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        groupBoxPanel3 = new javax.swing.JPanel();
        groupBoxPanel4 = new javax.swing.JPanel();

        setLayout(new java.awt.GridLayout(0, 2));

        groupBoxPanel1.setLayout(new java.awt.BorderLayout());

        groupBoxPanel1.setBorder(new javax.swing.border.TitledBorder("Titled Border"));
        add(groupBoxPanel1);

        groupBoxPanel2.setLayout(new java.awt.BorderLayout());

        groupBoxPanel2.setBorder(new javax.swing.border.TitledBorder("Outer Border"));
        jPanel1.setLayout(new java.awt.BorderLayout());

        jPanel1.setBorder(new javax.swing.border.TitledBorder(null, "Inner Border", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Lucida Grande", 0, 11)));
        jPanel2.setLayout(new java.awt.BorderLayout());

        jPanel2.setBorder(new javax.swing.border.TitledBorder(""));
        jLabel1.setText("jLabel1");
        jPanel2.add(jLabel1, java.awt.BorderLayout.SOUTH);

        jTextField1.setText("jTextField1");
        jPanel2.add(jTextField1, java.awt.BorderLayout.NORTH);

        jPanel1.add(jPanel2, java.awt.BorderLayout.CENTER);

        groupBoxPanel2.add(jPanel1, java.awt.BorderLayout.CENTER);

        add(groupBoxPanel2);

        groupBoxPanel3.setBorder(new javax.swing.border.TitledBorder(null, "Title centered below top", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BELOW_TOP));
        add(groupBoxPanel3);

        groupBoxPanel4.setBorder(new javax.swing.border.TitledBorder(null, "Title below border", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.BELOW_BOTTOM));
        add(groupBoxPanel4);

    }//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel groupBoxPanel1;
    private javax.swing.JPanel groupBoxPanel2;
    private javax.swing.JPanel groupBoxPanel3;
    private javax.swing.JPanel groupBoxPanel4;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration//GEN-END:variables
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy