JAL-2069 (helper method for) italic titled borders
[jalview.git] / src / jalview / gui / FeatureColourChooser.java
index ddfa162..9a5b3cd 100644 (file)
@@ -389,8 +389,8 @@ public class FeatureColourChooser extends JalviewDialog
   {
     JPanel byValuePanel = new JPanel();
     byValuePanel.setLayout(new BoxLayout(byValuePanel, BoxLayout.Y_AXIS));
-    byValuePanel.setBorder(BorderFactory.createTitledBorder(MessageManager
-            .getString("label.colour_by_value")));
+    JvSwingUtils.createItalicTitledBorder(byValuePanel,
+            MessageManager.getString("label.colour_by_value"), true);
     byValuePanel.setBackground(Color.white);
 
     /*
@@ -599,8 +599,8 @@ public class FeatureColourChooser extends JalviewDialog
   {
     JPanel byTextPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
     byTextPanel.setBackground(Color.white);
-    byTextPanel.setBorder(BorderFactory.createTitledBorder(MessageManager
-            .getString("label.colour_by_text")));
+    JvSwingUtils.createItalicTitledBorder(byTextPanel,
+            MessageManager.getString("label.colour_by_text"), true);
 
     byDescription.setText(MessageManager.getString("label.label"));
     byDescription.setToolTipText(MessageManager