* fix OSX LaF issues
This commit is contained in:
parent
4f713d6650
commit
e0161028c7
|
@ -1,7 +1,5 @@
|
||||||
|
|
||||||
package net.filebot.ui.episodelist;
|
package net.filebot.ui.episodelist;
|
||||||
|
|
||||||
|
|
||||||
import static net.filebot.ui.episodelist.SeasonSpinnerModel.*;
|
import static net.filebot.ui.episodelist.SeasonSpinnerModel.*;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
@ -16,7 +14,6 @@ import javax.swing.SwingConstants;
|
||||||
import javax.swing.text.DefaultFormatter;
|
import javax.swing.text.DefaultFormatter;
|
||||||
import javax.swing.text.DefaultFormatterFactory;
|
import javax.swing.text.DefaultFormatterFactory;
|
||||||
|
|
||||||
|
|
||||||
class SeasonSpinnerEditor extends DefaultEditor {
|
class SeasonSpinnerEditor extends DefaultEditor {
|
||||||
|
|
||||||
public SeasonSpinnerEditor(JSpinner spinner) {
|
public SeasonSpinnerEditor(JSpinner spinner) {
|
||||||
|
@ -40,7 +37,6 @@ class SeasonSpinnerEditor extends DefaultEditor {
|
||||||
throw new ParseException("Illegal season number", 0);
|
throw new ParseException("Illegal season number", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String valueToString(Object value) throws ParseException {
|
public String valueToString(Object value) throws ParseException {
|
||||||
int season = ((Number) value).intValue();
|
int season = ((Number) value).intValue();
|
||||||
|
@ -56,7 +52,6 @@ class SeasonSpinnerEditor extends DefaultEditor {
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
getTextField().setBorder(BorderFactory.createEmptyBorder(1, 3, 1, 1));
|
|
||||||
getTextField().setHorizontalAlignment(SwingConstants.RIGHT);
|
getTextField().setHorizontalAlignment(SwingConstants.RIGHT);
|
||||||
getTextField().setBackground(Color.white);
|
getTextField().setBackground(Color.white);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue