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