Skip to content

Commit

Permalink
updated for my theme
Browse files Browse the repository at this point in the history
  • Loading branch information
XelRSC committed May 28, 2011
1 parent af829d6 commit d0a6c4b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/org/rsbot/gui/BotGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ public class BotGUI extends JFrame implements ActionListener, ScriptListener {
private java.util.Timer clean = null;

public BotGUI() throws ApplicationException {
Toolkit.getDefaultToolkit().setDynamicLayout(true);
System.setProperty("sun.awt.noerasebackground", "true");
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (final Exception ignored) {
UIManager.setLookAndFeel("de.muntjak.tinylookandfeel.TinyLookAndFeel");
} catch(Exception ex) {
ex.printStackTrace();
}
if (UpdateChecker.isError()) {
throw new ApplicationException("Unable to obtain latest version information.\nPlease check your internet connection and try again.");
Expand Down

0 comments on commit d0a6c4b

Please sign in to comment.