Click the navigation button on selecting in
Call click action when selection NavigationButton. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -301,7 +301,16 @@ public class SwingUtil
|
|||||||
button.setComponentPopupMenu(popupMenu);
|
button.setComponentPopupMenu(popupMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
navigationButton.setOnSelect(() -> button.setSelected(navigationButton.isSelected()));
|
navigationButton.setOnSelect(() ->
|
||||||
|
{
|
||||||
|
button.setSelected(navigationButton.isSelected());
|
||||||
|
|
||||||
|
if (navigationButton.isSelected())
|
||||||
|
{
|
||||||
|
button.doClick();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user