Merge pull request #10 from talsemgeest/master

Set to use the OS look and feel
This commit is contained in:
4pr0n 2014-04-06 12:23:16 -07:00
commit 9856065ccd

View File

@ -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;
@ -139,6 +140,12 @@ public class MainWindow implements Runnable, RipStatusHandler {
gbc.fill = GridBagConstraints.BOTH; gbc.fill = GridBagConstraints.BOTH;
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");