Results 1 to 2 of 2
  1. #1
    antonello12 is offline Member
    Join Date
    Oct 2009
    Posts
    3
    Rep Power
    0

    Default BackGround JRadioButton

    Hello, you know for how can I change the background of a JRadioButton when the user selects. The problem is: I created a Swing JDialog containing a JPanel with three JRabioButton and I set the icon for each button with a picture, but each time the button is selected I want the background was changed to improve l ' usability and clarify the choice. Thanks and regards

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default

    > The problem is: <snip/> I set the icon for each button with a picture
    Lost the default Icon that shows the selected state, huh?

    > each time the button is selected I want the background was changed
    As an alternative approach, this might interest you:
    Toggle Button Icons Java Tips Weblog

    db
    Last edited by DarrylBurke; 10-10-2009 at 06:38 AM. Reason: I hate a laptop keyboard

Similar Threads

  1. How to Run a .exe in background???
    By jazz2k8 in forum New To Java
    Replies: 9
    Last Post: 01-21-2011, 11:27 AM
  2. Background in JFrame ( GUI).
    By Twister03 in forum AWT / Swing
    Replies: 2
    Last Post: 03-12-2009, 03:24 AM
  3. Setting selected JRadioButton in ButtonGroup
    By emceenugget in forum AWT / Swing
    Replies: 3
    Last Post: 01-29-2009, 06:05 PM
  4. Regarding JTree with JCheckBox and JRadioButton
    By partha_adt in forum AWT / Swing
    Replies: 0
    Last Post: 11-11-2008, 10:03 AM
  5. JRadioButton set object color
    By King8654 in forum AWT / Swing
    Replies: 4
    Last Post: 04-24-2008, 09:52 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
  •