Browse Source

Fix style violations.

pull/187/head
weisj 4 years ago
parent
commit
66dc706974
  1. 8
      core/src/test/java/ui/ComponentDemo.java
  2. 1
      windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

8
core/src/test/java/ui/ComponentDemo.java

@ -225,7 +225,7 @@ public interface ComponentDemo {
isSelected())); isSelected()));
} }
}); });
dev.add(new JCheckBoxMenuItem("Darklaf/System Laf"){ dev.add(new JCheckBoxMenuItem("Darklaf/System Laf") {
{ {
setSelected(true); setSelected(true);
addActionListener(e -> { addActionListener(e -> {
@ -236,9 +236,9 @@ public interface ComponentDemo {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
LafManager.updateLaf(); LafManager.updateLaf();
} catch (ClassNotFoundException } catch (ClassNotFoundException
| UnsupportedLookAndFeelException | UnsupportedLookAndFeelException
| IllegalAccessException | IllegalAccessException
| InstantiationException classNotFoundException) { | InstantiationException classNotFoundException) {
classNotFoundException.printStackTrace(); classNotFoundException.printStackTrace();
} }
} }

1
windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

@ -110,7 +110,6 @@ public class WindowsTitlePane extends CustomTitlePane {
bundle = ResourceBundle.getBundle("com.github.weisj.darklaf.bundles.actions", getLocale()); bundle = ResourceBundle.getBundle("com.github.weisj.darklaf.bundles.actions", getLocale());
this.decorationStyle = decorationStyle; this.decorationStyle = decorationStyle;
state = -1; state = -1;
oldResizable = true; oldResizable = true;
installSubcomponents(); installSubcomponents();

Loading…
Cancel
Save