Merge pull request #983 from deathbeam/proper-clicking-on-select
Click the navigation button on selecting in
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