From 2bf3234c84daef8cd4474651a8e2f8bfe6cd3ba0 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 7 Jun 2006 12:55:42 +0000 Subject: [PATCH] Use a label with html instead of textarea --- src/jalview/jbgui/GUserDefinedColours.java | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/jalview/jbgui/GUserDefinedColours.java b/src/jalview/jbgui/GUserDefinedColours.java index 131f202..8d74445 100755 --- a/src/jalview/jbgui/GUserDefinedColours.java +++ b/src/jalview/jbgui/GUserDefinedColours.java @@ -56,7 +56,7 @@ public class GUserDefinedColours extends JPanel JPanel jPanel4 = new JPanel(); BorderLayout borderLayout5 = new BorderLayout(); JPanel jPanel6 = new JPanel(); - JTextArea jTextArea1 = new JTextArea(); + JLabel label = new JLabel(); /** * Creates a new GUserDefinedColours object. */ @@ -153,15 +153,13 @@ public class GUserDefinedColours extends JPanel jPanel6.setOpaque(false); jPanel6.setPreferredSize(new Dimension(10, 45)); jPanel6.setLayout(null); - jTextArea1.setFont(new java.awt.Font("Verdana", Font.ITALIC, 10)); - jTextArea1.setOpaque(false); - jTextArea1.setPreferredSize(new Dimension(260, 34)); - jTextArea1.setText( - "Save your colour scheme with a unique name and it will be added " + - "to the Colour menu."); - jTextArea1.setLineWrap(true); - jTextArea1.setRows(2); - jTextArea1.setWrapStyleWord(true); + label.setFont(new java.awt.Font("Verdana", Font.ITALIC, 10)); + label.setOpaque(false); + label.setPreferredSize(new Dimension(260, 34)); + label.setText( + "Save your colour scheme with a unique name and it will be added " + + "to the Colour menu."); + jPanel3.add(savebutton); jPanel3.add(loadbutton); jPanel1.add(applyButton); @@ -175,7 +173,7 @@ public class GUserDefinedColours extends JPanel panel1.add(namePanel, null); panel1.add(buttonPanel, null); panel1.add(jPanel2, null); - panel1.add(jTextArea1); + panel1.add(label); jPanel4.add(panel1, java.awt.BorderLayout.CENTER); jPanel4.add(jPanel6, java.awt.BorderLayout.NORTH); -- 1.7.10.2