[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/23020] Swing: JMenu is ignores that it has been set to in
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/23020] Swing: JMenu is ignores that it has been set to invalid (fix included) |
Date: |
8 Sep 2010 18:04:50 -0000 |
If a JMenu is set to disabled (setEnabled(false)), then it goes gray, but you
can still click on it.
The problem is in the fonction setSelected of JMenu.
the initial if:
if (selected)
has to check for one mor thing (isEnabled), which gives us:
if (selected && isEnabled())
This has been tested by me, and it seams to work
------- Comment #1 from from-classpath at savannah dot gnu dot org 2005-07-08
00:27 -------
I applied the patch in the way it was suggested. However I am not entirely
satisfied with the JMenu's behavior and will file two new bugs about this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23020
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/23020] Swing: JMenu is ignores that it has been set to invalid (fix included),
gcc-bugzilla at gcc dot gnu dot org <=