Merge pull request #10 from talsemgeest/master
Set to use the OS look and feel
This commit is contained in:
commit
9856065ccd
@ -14,6 +14,7 @@ import java.net.URL;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import javax.swing.DefaultListModel;
|
import javax.swing.DefaultListModel;
|
||||||
|
import javax.swing.UIManager;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JCheckBox;
|
import javax.swing.JCheckBox;
|
||||||
import javax.swing.JFileChooser;
|
import javax.swing.JFileChooser;
|
||||||
@ -140,6 +141,12 @@ public class MainWindow implements Runnable, RipStatusHandler {
|
|||||||
gbc.weightx = 2; gbc.ipadx = 2; gbc.gridx = 0;
|
gbc.weightx = 2; gbc.ipadx = 2; gbc.gridx = 0;
|
||||||
gbc.weighty = 2; gbc.ipady = 2; gbc.gridy = 0;
|
gbc.weighty = 2; gbc.ipady = 2; gbc.gridy = 0;
|
||||||
|
|
||||||
|
try {
|
||||||
|
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("[!] Exception setting system theme:", e);
|
||||||
|
}
|
||||||
|
|
||||||
ripTextfield = new JTextField("", 20);
|
ripTextfield = new JTextField("", 20);
|
||||||
ripButton = new JButton("Rip");
|
ripButton = new JButton("Rip");
|
||||||
JPanel ripPanel = new JPanel(new GridBagLayout());
|
JPanel ripPanel = new JPanel(new GridBagLayout());
|
||||||
|
Loading…
Reference in New Issue
Block a user