test.TextAreaTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Quaqua Show documentation
Show all versions of Quaqua Show documentation
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!
/*
* @(#)TextAreaTest.java 1.0 13 February 2005
*
* Copyright (c) 2004 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;
/**
* TextAreaTest.
*
* @author Werner Randelshofer
* @version 1.0 13 February 2005 Created.
*/
public class TextAreaTest extends javax.swing.JPanel {
/** Creates new form. */
public TextAreaTest() {
initComponents();
}
/** 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.
*/
// //GEN-BEGIN:initComponents
private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
scrollPane1 = new javax.swing.JScrollPane();
textArea1 = new javax.swing.JTextArea();
label1 = new javax.swing.JLabel();
scrollPane2 = new javax.swing.JScrollPane();
textArea2 = new javax.swing.JTextArea();
label2 = new javax.swing.JLabel();
scrollPane3 = new javax.swing.JScrollPane();
textArea3 = new javax.swing.JTextArea();
label3 = new javax.swing.JLabel();
setBorder(javax.swing.BorderFactory.createEmptyBorder(16, 17, 17, 17));
setLayout(new java.awt.GridBagLayout());
textArea1.setText("the quick brown fox jumps over the lazy dog \nthe quick brown fox jumps over the lazy dog \nthe quick brown fox jumps over the lazy dog \nthe quick brown fox jumps over the lazy dog\nthe quick brown fox jumps over the lazy dog");
scrollPane1.setViewportView(textArea1);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
add(scrollPane1, gridBagConstraints);
label1.setText("Enabled");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
add(label1, gridBagConstraints);
textArea2.setEditable(false);
textArea2.setText("the quick brown fox jumps over the lazy dog \nthe quick brown fox jumps over the lazy dog \nthe quick brown fox jumps over the lazy dog \nthe quick brown fox jumps over the lazy dog\nthe quick brown fox jumps over the lazy dog");
scrollPane2.setViewportView(textArea2);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
add(scrollPane2, gridBagConstraints);
label2.setText("Non-Editable");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
add(label2, gridBagConstraints);
textArea3.setText("the quick brown fox jumps over the lazy dog \nthe quick brown fox jumps over the lazy dog \nthe quick brown fox jumps over the lazy dog \nthe quick brown fox jumps over the lazy dog\nthe quick brown fox jumps over the lazy dog");
textArea3.setEnabled(false);
scrollPane3.setViewportView(textArea3);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
add(scrollPane3, gridBagConstraints);
label3.setText("Disabled");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
add(label3, gridBagConstraints);
}// //GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel label1;
private javax.swing.JLabel label2;
private javax.swing.JLabel label3;
private javax.swing.JScrollPane scrollPane1;
private javax.swing.JScrollPane scrollPane2;
private javax.swing.JScrollPane scrollPane3;
private javax.swing.JTextArea textArea1;
private javax.swing.JTextArea textArea2;
private javax.swing.JTextArea textArea3;
// End of variables declaration//GEN-END:variables
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy