aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/frontend/HintField.java
diff options
context:
space:
mode:
authorMatt Windsor <mbw500@student.cs.york.ac.uk>2011-02-20 23:39:35 +0000
committerMatt Windsor <mbw500@student.cs.york.ac.uk>2011-02-20 23:39:35 +0000
commite2fc92f5c42dde942e8b71d38b9745b6f3c98053 (patch)
treed9d95332cee432390396bdc295d40a7ad5abe5ee /src/uk/org/ury/frontend/HintField.java
parent904caa25f8de49cc20823a25ce8051dfdcae7c26 (diff)
Use swixml instead of procedural UI generation; retrieve tracks as well as albums, including digitised status etc.
Diffstat (limited to 'src/uk/org/ury/frontend/HintField.java')
-rw-r--r--src/uk/org/ury/frontend/HintField.java60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/uk/org/ury/frontend/HintField.java b/src/uk/org/ury/frontend/HintField.java
new file mode 100644
index 0000000..a43f1c3
--- /dev/null
+++ b/src/uk/org/ury/frontend/HintField.java
@@ -0,0 +1,60 @@
+/**
+ *
+ */
+package uk.org.ury.frontend;
+
+
+import javax.swing.BorderFactory;
+import javax.swing.JTextArea;
+
+
+/**
+ * A non-editable text area displaying a hint about how to use a
+ * frontend screen.
+ *
+ * @author Matt Windsor
+ *
+ */
+
+public class HintField extends JTextArea
+{
+ /**
+ *
+ */
+ private static final long serialVersionUID = -6221888920919127273L;
+
+
+ /**
+ * Construct a new HintField with no initial hint.
+ */
+
+ public
+ HintField ()
+ {
+ super ();
+
+ setLineWrap (true);
+ setWrapStyleWord (true);
+ setEditable (false);
+ setOpaque (false);
+ }
+
+
+ /**
+ * Construct a new HintField.
+ *
+ * @param hint The hint to display in the HintField.
+ */
+
+ public
+ HintField (String hint)
+ {
+ super (hint);
+
+ setLineWrap (true);
+ setWrapStyleWord (true);
+ setEditable (false);
+ setOpaque (false);
+ setBorder (BorderFactory.createEmptyBorder (5, 5, 5, 5));
+ }
+}