Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By Fubarable

Thread: Radio button dot color

  1. #1
    Psyclone is offline Member
    Join Date
    Jan 2010
    Posts
    81
    Rep Power
    0

    Default Radio button dot color

    Is there a way to change the color of the dot for a radio button?

    When I originally started building my code in NetBeans Form Editor, the dot was green. Now that I'm building the GUI without the Form Editor, the dot is black. Does it have to do with the layout I'm using? Is there any way to make the dot green again irregardless of what Layout Manager I'm using?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    You can set the radiobutton's icon, but the likely correct answer is to use an appropriate look and feel.
    1245 likes this.

  3. #3
    Psyclone is offline Member
    Join Date
    Jan 2010
    Posts
    81
    Rep Power
    0

    Default

    I'm having a lot a trouble with this one. The dot in my RadioButton is black and the background of my GUI is black, so when a RadioButton is selected, it doesn't stick out very much.

    I just want the dot to be green, but am not having any luck figuring out Look and Feel or Icons.

    How do I change the dot to a green dot using Icon?

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I have a feeling (again) that this is look & feel related. Perhaps your best solution is to either change your look and feel or else rip the icon out of the L&F object that renders JRadioButtons and alter it. I'm no expert in this, but this is what a Google search suggested to me.

Similar Threads

  1. Disable Radio button
    By AJG in forum New To Java
    Replies: 3
    Last Post: 05-10-2011, 12:09 PM
  2. Double click radio button
    By mandragora in forum AWT / Swing
    Replies: 11
    Last Post: 11-10-2008, 12:06 PM
  3. How to use SWT Radio Button
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 03:25 PM
  4. Reacting Radio button event
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 08:46 PM
  5. Radio button values are not lose
    By chockalingam in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-03-2007, 09:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •