Set to use the OS look and feel
This commit is contained in:
parent
72cd101d2a
commit
7f80e077d1
@ -18,6 +18,7 @@ import java.net.MalformedURLException;
|
|||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
import javax.swing.DefaultListModel;
|
import javax.swing.DefaultListModel;
|
||||||
|
import javax.swing.UIManager;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
import javax.swing.JLabel;
|
import javax.swing.JLabel;
|
||||||
@ -120,6 +121,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");
|
||||||
|
Loading…
Reference in New Issue
Block a user