import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
+import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
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;
if (!patternField.isEnabled()
|| (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);
+ 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);
removeCondition.setPreferredSize(new Dimension(23, 17));
removeCondition
.setToolTipText(MessageManager.getString("label.delete_row"));