Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 Michael Ruflin, Andr� Locher, Claudia von Bastian. This file is part of Tatool. Tatool is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Tatool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Tatool. If not, see <>. /
package ch.tatool.core.display.swing.panel;
Displays a simple text in the center of the screen.

Michael Ruflin
public class TextAreaPanel extends javax.swing.JPanel {
	private static final long serialVersionUID = -775453298402854911L;

Creates new form SimpleTextQuestionPanel
	public TextAreaPanel() {
	public void setText(String text) {
	public void setTextSize(int size) {

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.
	// @SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed"
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;
         = new javax.swing.JScrollPane();
         = new javax.swing.JTextArea();
        setLayout(new java.awt.GridBagLayout());
        .setBackground(new java.awt.Color(255, 255, 255));
        .setFont(new java.awt.Font("Arial", 0, 36)); // NOI18N
        .setText("Nun folgt eine ganz simple Frage, die ich aber nat�rlich gerne in der Mitte ausgerichtet h�tte?");
        .setDisabledTextColor(new java.awt.Color(0, 0, 0));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = ...;
        gridBagConstraints.weightx = 0.1;
        gridBagConstraints.weighty = 0.1;
        gridBagConstraints.insets = new java.awt.Insets(0, 70, 0, 70);
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
New to GrepCode? Check out our FAQ X