- JButton removeCondition = new JButton("\u2717"); // Dingbats cursive x
- removeCondition.setBorder(new EmptyBorder(0, 0, 0, 0));
- removeCondition.setBackground(Color.WHITE);
+ JButton removeCondition = new JButton("\u2717")
+ {
+ @Override
+ public void paint(Graphics g)
+ {
+ g.setColor(Color.black);
+ g.drawString("\u2717", 2, 14);
+ }
+ }; // Dingbats cursive x
+ // removeCondition.setBackground(null);
+ // removeCondition.setBorder(null);
+ removeCondition.setOpaque(true);