From 027259a872c4796dcc1a557b746b91ef09fcdb74 Mon Sep 17 00:00:00 2001 From: dzmipt Date: Sat, 16 Nov 2024 16:32:27 +0100 Subject: [PATCH] fix typo --- src/studio/ui/Toolbar.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/studio/ui/Toolbar.java b/src/studio/ui/Toolbar.java index 61cd69d3..726cba91 100644 --- a/src/studio/ui/Toolbar.java +++ b/src/studio/ui/Toolbar.java @@ -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);