Skip to content

Commit

Permalink
Update ToolbarsEx.java
Browse files Browse the repository at this point in the history
  • Loading branch information
janbodnar committed May 17, 2019
1 parent f54d76a commit ebc7c52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions menus/ToolbarsEx.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ToolbarsEx() {
initUI();
}

public final void initUI() {
private void initUI() {

createToolBars();

Expand Down Expand Up @@ -43,7 +43,7 @@ private void createToolBars() {
toolbar1.add(openBtn);
toolbar1.add(saveBtn);

JButton exitBtn = new JButton(exitIcon);
var exitBtn = new JButton(exitIcon);
toolbar2.add(exitBtn);

exitBtn.addActionListener((e) -> System.exit(0));
Expand Down Expand Up @@ -73,6 +73,7 @@ private void createLayout(JComponent... arg) {
public static void main(String[] args) {

EventQueue.invokeLater(() -> {

var ex = new ToolbarsEx();
ex.setVisible(true);
});
Expand Down

0 comments on commit ebc7c52

Please sign in to comment.