Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmipt committed Nov 16, 2024
1 parent 0230456 commit 027259a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/studio/ui/Toolbar.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ public class Toolbar extends JToolBar {
@Override
public JButton add(Action a) {
JButton btn = super.add(a);
updateTooltipTest(btn);
updateTooltipText(btn);

a.addPropertyChangeListener( e-> {
if (e.getPropertyName() == Action.ACCELERATOR_KEY) {
updateTooltipTest(btn);
updateTooltipText(btn);
}
});

return btn;
}

private void updateTooltipTest(JButton btn) {
private void updateTooltipText(JButton btn) {
Action a = btn.getAction();
String tooltip = (String)a.getValue(Action.SHORT_DESCRIPTION);

Expand Down

0 comments on commit 027259a

Please sign in to comment.