![JAR search and dependency download from the Maven repository](/logo.png)
com.github.croesch.micro_debug.gui.components.basic.MDTextArea Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-debug-gui Show documentation
Show all versions of micro-debug-gui Show documentation
A GUI for the micro-debug - a debugger for (micro-)assembler-programs for the Mic-1.
The newest version!
/*
* Copyright (C) 2011-2012 Christian Roesch
*
* This file is part of micro-debug-gui.
*
* micro-debug-gui is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* micro-debug-gui 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with micro-debug-gui. If not, see .
*/
package com.github.croesch.micro_debug.gui.components.basic;
import javax.swing.JTextArea;
import com.github.croesch.micro_debug.commons.Utils;
/**
* An extension of {@link JTextArea} that contains some default behavior that not each client should have to implement.
*
* @author croesch
* @since Date: Mar 14, 2012
*/
public class MDTextArea extends JTextArea {
/** generated serial version UID */
private static final long serialVersionUID = 1088518150231835733L;
/**
* Constructs the text area with the given name and the given text.
*
* @since Date: Mar 14, 2012
* @param name the name of the component to set via {@link #setName(String)}
* @param text the {@link Object} thats {@link String} representation will be set as the text of the text area
* @see #setName(String)
*/
public MDTextArea(final String name, final Object text) {
super(Utils.toString(text));
setName(name);
}
/**
* Constructs the text area with the given name.
*
* @since Date: Mar 14, 2012
* @param name the name of the component to set via {@link #setName(String)}
* @see #setName(String)
*/
public MDTextArea(final String name) {
this(name, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy