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

Center icon when pressed icon and rollover icon on JButton #806

Open
DJ-Raven opened this issue Feb 14, 2024 · 0 comments
Open

Center icon when pressed icon and rollover icon on JButton #806

DJ-Raven opened this issue Feb 14, 2024 · 0 comments

Comments

@DJ-Raven
Copy link
Contributor

Video_2024-02-14_105636-ezgif com-video-to-gif-converter

Can I make icon center when I set pressed icon and rollover icon on jbutton in flatlaf like nimbus l&f

Here my code

 JButton cmd = new JButton("Change");
 cmd.setIcon(new FlatSVGIcon("twitter.svg",1f));
 cmd.setPressedIcon(new FlatSVGIcon("twitter.svg",2f));
 cmd.setRolloverIcon(new FlatSVGIcon("twitter.svg",0.5f));
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

1 participant