Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1668

Action selected state in

From "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this>
Subject Action selected state in
Message-ID <1179766382.881265.41730@z24g2000prd.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:34 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Hello all!

Does anyone know of or have a solution of how to have automatic
updates for buttons and menu items created from Action's FOR JDK 1.5?
I know that automatic support for it was added in JDK (1.)6.0, however
the requirements for the software I'm developing is Java 5...

When calling new JMenuItem(Action) or JButton(Action), basically any
radio button or checkbox AbstractButton component, calling setEnabled
an the action turns the button AND menu items to gray. I would simply
like to achieve that for the selected state as well: Whenever the user
clicks on a toolbar button OR menu item, the selected state shall be
reflected in the other GUI component, too. As stated above, a solution
is inside the "too new" JDK6.

So, has anybody implemented a solution for this? Maybe some
AbstractAction subclass?

Any help on this appreciated! (directions etc.)

TIA
Karsten

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread


Thread

Action selected state in "Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000

csiph-web