Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No effect after setting JButton.setSelected(true) in JTooBar #161

Closed
Yaqiang opened this issue Aug 20, 2020 · 3 comments
Closed

No effect after setting JButton.setSelected(true) in JTooBar #161

Yaqiang opened this issue Aug 20, 2020 · 3 comments
Milestone

Comments

@Yaqiang
Copy link

Yaqiang commented Aug 20, 2020

In my program I need to know which button was clicked by setting selected attribute of the button in the toobar. It is normal in Windows LAF with shadow background color:
laf_windows

But there is no shadow background color of the button in Flat... LAF:
laf_FlatLight

@Yaqiang
Copy link
Author

Yaqiang commented Aug 23, 2020

The problem has been sovled using JToggleButton.

laf_FlatDark

@DevCharly
Copy link
Collaborator

@Yaqiang although you've already solved it in your program, I've implemented "selected" state for JButton in master branch for improved compatibility with Windows LaF.

@DevCharly DevCharly added this to the 0.41 milestone Aug 25, 2020
@Yaqiang
Copy link
Author

Yaqiang commented Aug 25, 2020

Good news!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants