This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT Radio button in IE  RSS feed

 
Tim Glass
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In an applet I have created, when a user clicks on a radio button that has no associated label, a small "tick" mark shows up to the right of the radio button - but only when viewed in IE - in Netscape this does not happen. Any ideas why?
The offending applet is at: http://www.web-twg.com/rnu/rnu.html
thanks
Tim
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's merely the focus indicator. It goes away as soon as you give focus to another field. Click on the radio button next to the word "refrigerator". Notice how the word is enclosed in a box? What you are seeing by the other radio button is a very narrow box.
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a hack if it truely drives you nuts. Add an ItemListener to the checkboxes and in the itemStateChanged method request focus on another component. If you really want, you can add an empty label somewhere (if you using a layout manager, this can cause some problems) and request focus on that so that you're not throwing the attention to a particular field every time. Just remember, the component requesting focus has to be visible.
Sean
 
Tim Glass
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Sean. It's not driving me nuts so much as a client I'm developing for.
Thanks again.
Tim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!