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

test.ScrollPaneTest2 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!
/*
 * ScrollPaneTest2.java
 *
 * Created on August 28, 2005, 2:36 PM
 */

package test;

import javax.swing.*;
/**
 *
 * @author  werni
 */
public class ScrollPaneTest2 extends javax.swing.JFrame {
    
    /** Creates new form ScrollPaneTest2 */
    public ScrollPaneTest2() {
        initComponents();
        setDefaultCloseOperation(EXIT_ON_CLOSE);
    }
    
    /** 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
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();

        setTitle("Quaqua Scroll Pane Test 2");
        jScrollPane1.setBorder(null);
        jTextArea1.setLineWrap(true);
        jTextArea1.setText("The QuaquaScrollPaneUI ensures that scrollbars don't overlap with the grow-box of the window.\n\nLorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam sagittis. Vivamus vel metus. Quisque sagittis leo non nibh. Aenean faucibus ipsum id dolor. Proin porta, odio facilisis commodo scelerisque, mi massa commodo arcu, at laoreet sapien dui ut velit. Ut adipiscing. \n\nNullam malesuada, magna in tristique cursus, tellus massa mollis nisi, et vulputate turpis lectus ut ipsum. Integer tortor. Duis tincidunt, metus vel vestibulum pharetra, risus leo vehicula velit, at ultricies ligula metus adipiscing neque. Sed sollicitudin pede eu pede. Cras molestie condimentum pede. Proin ullamcorper gravida ipsum. Praesent aliquet interdum nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras dui. Nam ultrices placerat felis. Fusce rutrum mollis mauris. Maecenas eget arcu suscipit ligula placerat mattis.");
        jTextArea1.setWrapStyleWord(true);
        jScrollPane1.setViewportView(jTextArea1);

        getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);

        pack();
    }//GEN-END:initComponents
    
    /** Exit the Application */    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        try {
            UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
        } catch (Exception e) {
            // Supress error message. We can't do anything about it.
        }
        new ScrollPaneTest2().setVisible(true);
    }
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration//GEN-END:variables
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy