*/
private String text = "";
+ /**
+ * Get label text.
+ *
+ * @return label text
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * Set label text.
+ *
+ * @param text new label text
+ */
+ public void setText(final String text) {
+ this.text = text;
+ }
+
/**
* Label color.
*/
final int y, final String colorKey) {
// Set parent and window
- super(parent, false);
+ super(parent, false, x, y, text.length(), 1);
this.text = text;
- setX(x);
- setY(y);
- setHeight(1);
- setWidth(text.length());
this.colorKey = colorKey;
}