This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 22484 - JRadioButtonMenuItem is not supported in core
Summary: JRadioButtonMenuItem is not supported in core
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API
Depends on:
Blocks: 22461
  Show dependency tree
 
Reported: 2002-04-16 10:33 UTC by Jan Jancura
Modified: 2010-10-08 03:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Jancura 2002-04-16 10:33:33 UTC
I need to use RadioMenuItem not current CeckBox
one. So I tried to implement my own
RadioBooleanStateAction. But it is not so easy
(see all funct. in org.openide.awt.Action class).
So as I do not want to duplicate all that stuff I
request some support in OpenIDE!
Regards,
Hanz ;-))
Comment 1 David Simonek 2002-04-16 12:04:30 UTC
Hanzi, please describe in greater detail what you request and why.
(keep in mind that I'm a bit slower so make your comment simple,
stupid :-)
Comment 2 Jan Jancura 2002-04-16 13:00:36 UTC
OK.
If I use BooleanStateAction it displays boolean state action as
JComboBoxMenuItem. (It uses org.openide.awt.Actions.CheckboxMenuItem
but there is no org.openide.awt.Actions.RadioButtonMenuItem :((). But
my HIEna wants to see Radio button there - so what can I do?!?!

Please help me....
( = implement Actions.RadioButtonMenuItem)
thanks.
Comment 3 Jesse Glick 2003-05-19 17:21:09 UTC
It's not particularly difficult even without support from the APIs, e.g.:

http://www.netbeans.org/unbranded-source/browse/~checkout~/contrib/insertunicode/src/org/netbeans/modules/insertunicode/InsertUnicodeAction.java?content-type=text/plain

There is a bit of extra functionality in org.openide.awt.Actions but
not that much. Slightly easier support for HelpCtx, maybe. Accelerator
functionality, which would not apply here because there would be no
accelerator for submenuitems anyway. Ditto icons, short descriptions.
Maybe setting button.accessibleContext.accessibleName would be
helpful, though I am not sure if that is really required for a menu
item that already displays fairly obvious text.
Comment 4 Jiri Rechtacek 2004-04-23 10:50:17 UTC
Assigned to new owner.
Comment 5 Jaroslav Tulach 2010-10-08 03:59:47 UTC
There is support for checkbox in Actions:
http://bits.netbeans.org/6.9.1/javadoc/org-openide-awt/org/openide/awt/Actions.html#checkbox(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
feel free to provide patch to implement radiobuttons in similar style.