question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I Change Selected dot color on Flat Radio Button?

See original GitHub issue

Hello @JFormDesigner,

I’m facing some troubles trying to change the focus color and some others stuffs on Radio button using the class, UIManager(). I tried this: UIManager.put( "RadioButton.focus", new ColorUIResource(33,176,228) );. And… It doesn’t work…

hoverTrackColor = UIManager.getColor( "ScrollBar.hoverTrackColor" );

Even that doesn’t seems to work… I don’t know why… I tried this: UIManager.put("ScrollBar.hoverTrackColor", new Color(12,200,220));

This too:

pressedTrackColor = UIManager.getColor( "ScrollBar.pressedTrackColor" );

I want to change the radio button selection/checked color for a music player I’m developing…

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
UltraBurstXDcommented, Jul 14, 2020

Hmm… Then If change the default color for the CheckBox JComponent, radio Button is changed too…? Thanks…

0reactions
UltraBurstXDcommented, Jul 15, 2020

Hum… It looks like the key I was looking for was check mark color. Thanks for the help by the way… I will create a new issue for hover track color later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I change the color of radio buttons? - Stack Overflow
I mean, a radio button itself consists of a round shape and a dot at the center (when the button is selected). What...
Read more >
How to change the color of radio buttons using CSS
In this article, we are going to discuss how to change the color of the radio button using the accent-color CSS property.
Read more >
Changing Color of Radio Buttons with CSS accent-color
The color of radio buttons can be changed using the CSS accent-color property.
Read more >
JavaScript for radio button color change doesn't work in ...
I want my #3 radio button in red color. I used the Javascript code below. It works well in the horizontal application but...
Read more >
Selection controls: radio buttons - Material Design
Selection controls: radio buttons. Selection controls allow the user to select options. Use radio buttons to: Select a single option from a list ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found