JAL-3010 borderless 'x' for "delete this filter condition"
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 26 Apr 2019 09:17:09 +0000 (10:17 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 26 Apr 2019 10:02:22 +0000 (11:02 +0100)
Conflicts:
src/jalview/gui/FeatureTypeSettings.java

src/jalview/gui/FeatureTypeSettings.java

index 434515a..a2194f4 100644 (file)
@@ -63,11 +63,10 @@ import javax.swing.JPanel;
 import javax.swing.JRadioButton;
 import javax.swing.JSlider;
 import javax.swing.JTextField;
-import javax.swing.SwingConstants;
+import javax.swing.border.EmptyBorder;
 import javax.swing.border.LineBorder;
 import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
-import javax.swing.plaf.basic.BasicArrowButton;
 
 /**
  * A dialog where the user can configure colour scheme, and any filters, for one
@@ -1419,10 +1418,10 @@ public class FeatureTypeSettings extends JalviewDialog
     if (!patternField.isEnabled()
             || (pattern != null && pattern.trim().length() > 0))
     {
-      // todo: gif for button drawing '-' or 'x'
-      JButton removeCondition = new BasicArrowButton(SwingConstants.WEST);
+      JButton removeCondition = new JButton("\u2717"); // Dingbats cursive x
       removeCondition.setToolTipText(
               MessageManager.getString("label.delete_condition"));
+      removeCondition.setBorder(new EmptyBorder(0, 0, 0, 0));
       removeCondition.addActionListener(new ActionListener()
       {
         @Override