1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-07-31 19:10:15 +02:00

Set to use the OS look and feel

This commit is contained in:
talsemgeest
2014-04-06 16:54:22 +12:00
parent 72cd101d2a
commit 7f80e077d1

View File

@@ -18,6 +18,7 @@ import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.DefaultListModel;
import javax.swing.UIManager;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
@@ -121,6 +122,12 @@ public class MainWindow implements Runnable, RipStatusHandler {
gbc.weightx = 2; gbc.ipadx = 2; gbc.gridx = 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);
ripButton = new JButton("Rip");
JPanel ripPanel = new JPanel(new GridBagLayout());