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:
Jared Gould 2006-07-27 02:27:54 +00:00
parent 51953bef31
commit c084ed97c4
1 changed files with 6 additions and 0 deletions

View File

@ -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")));