Browse Source

Remove debug painting.

macos/dialog_size
weisj 3 years ago committed by Jannis Weis
parent
commit
666f5f67e6
  1. 5
      core/src/main/java/com/github/weisj/darklaf/ui/combobox/DarkComboBoxUI.java
  2. 3
      core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableUI.java

5
core/src/main/java/com/github/weisj/darklaf/ui/combobox/DarkComboBoxUI.java

@ -29,7 +29,6 @@ import java.awt.event.KeyEvent;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicComboBoxUI;
import javax.swing.plaf.basic.ComboPopup;
@ -166,10 +165,6 @@ public class DarkComboBoxUI extends BasicComboBoxUI implements ComboBoxConstants
protected ComboBoxEditor createEditor() {
final ComboBoxEditor comboBoxEditor = super.createEditor();
Component comp = comboBoxEditor.getEditorComponent();
if (comp instanceof JTextField) {
((JTextField) comp).setColumns(0);
((JTextField) comp).setBorder(new LineBorder(Color.RED));
}
comp.addKeyListener(new KeyAdapter() {
@Override

3
core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableUI.java

@ -385,9 +385,6 @@ public class DarkTableUI extends DarkTableUIBridge implements TableConstants, Ha
// Move to the where the cell has been dragged.
vacatedColumnRect.x += dist;
g.setColor(Color.RED);
PaintUtil.drawRect(g, vacatedColumnRect);
boolean ltr = table.getComponentOrientation().isLeftToRight();
// Fill the background.

Loading…
Cancel
Save