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


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

Action selected state in

Started by"Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this>
First post2011-04-27 15:34 +0000
Last post2011-04-27 15:34 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.gui


Contents

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

#1668 — Action selected state in

From"Karsten Wutzke" <karsten.wutzke@THRWHITE.remove-dii-this>
Date2011-04-27 15:34 +0000
SubjectAction selected state in
Message-ID<1179766382.881265.41730@z24g2000prd.googlegroups.com>
  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

[toc] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web