fixed colorizing for mac osx buttons
This commit is contained in:
parent
020f260129
commit
3d24e8e0f3
|
@ -1,5 +1,7 @@
|
||||||
package mrbesen.cr.auto.clicker;
|
package mrbesen.cr.auto.clicker;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
private static Main main;
|
private static Main main;
|
||||||
|
@ -11,7 +13,12 @@ public class Main {
|
||||||
|
|
||||||
public Main() {
|
public Main() {
|
||||||
main = this;
|
main = this;
|
||||||
new UI();
|
try {
|
||||||
|
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
new UI();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Main get() {
|
public static Main get() {
|
||||||
|
|
|
@ -16,10 +16,13 @@ public class PosSelector implements Runnable {
|
||||||
return required;
|
return required;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PosSelector(UI ui, String text, boolean required, int num) {
|
PosSelector(UI ui, String text, boolean required, int num) {
|
||||||
this.ui = ui; this.required = required;this.num = num;
|
this.ui = ui;
|
||||||
|
this.required = required;
|
||||||
|
this.num = num;
|
||||||
button = new JButton(text);
|
button = new JButton(text);
|
||||||
button.addActionListener(ui);
|
button.addActionListener(ui);
|
||||||
|
button.setOpaque(true);
|
||||||
red();
|
red();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue