From 7f80e077d13a86267dd7b4c27bf36e340a2e6b85 Mon Sep 17 00:00:00 2001 From: talsemgeest Date: Sun, 6 Apr 2014 16:54:22 +1200 Subject: [PATCH] Set to use the OS look and feel --- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 49a8b42e..794c15fd 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -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; @@ -120,6 +121,12 @@ public class MainWindow implements Runnable, RipStatusHandler { gbc.fill = GridBagConstraints.BOTH; 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");