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 09:17:09 +0000 (10:17 +0100)
src/jalview/gui/FeatureTypeSettings.java

index 9ff51a8..735e514 100644 (file)
@@ -63,6 +63,7 @@ import javax.swing.JPanel;
 import javax.swing.JRadioButton;
 import javax.swing.JSlider;
 import javax.swing.JTextField;
+import javax.swing.border.EmptyBorder;
 import javax.swing.border.LineBorder;
 import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
@@ -1442,6 +1443,8 @@ public class FeatureTypeSettings extends JalviewDialog
             || (pattern != null && pattern.trim().length() > 0))
     {
       JButton removeCondition = new JButton("\u2717"); // Dingbats cursive x
+      removeCondition.setBorder(new EmptyBorder(0, 0, 0, 0));
+      removeCondition.setBackground(Color.WHITE);
       removeCondition.setPreferredSize(new Dimension(23, 17));
       removeCondition
               .setToolTipText(MessageManager.getString("label.delete_row"));