mirror of https://github.com/rusefi/RomRaider.git
Set look and feel to native OS
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@188 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
51953bef31
commit
c084ed97c4
|
@ -49,6 +49,7 @@ import javax.swing.JLabel;
|
|||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTextArea;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.tree.TreePath;
|
||||
import org.w3c.dom.Document;
|
||||
import org.xml.sax.InputSource;
|
||||
|
@ -69,6 +70,11 @@ public class ECUEditor extends JFrame implements WindowListener, PropertyChangeL
|
|||
|
||||
public ECUEditor() {
|
||||
|
||||
try {
|
||||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||
|
||||
} catch (Exception ex) { }
|
||||
|
||||
// get settings from xml
|
||||
try {
|
||||
InputSource src = new InputSource(new FileInputStream(new File("./settings.xml")));
|
||||
|
|
Loading…
Reference in New Issue