mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Add JRadioButton fix.
This commit is contained in:
parent
877130c1aa
commit
ab3b3a4c2c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244328
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= charva
|
||||
PORTVERSION= 1.1.4
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
DISTNAME= ${PORTNAME}
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- java/src/charvax/swing/ButtonGroup.java.orig Sat Dec 17 15:27:30 2005
|
||||
+++ java/src/charvax/swing/ButtonGroup.java Mon Jan 29 09:39:30 2007
|
||||
@@ -63,9 +63,10 @@ public class ButtonGroup
|
||||
--- java/src/charvax/swing/ButtonGroup.java.orig 2005-12-17 15:27:30.000000000 +0100
|
||||
+++ java/src/charvax/swing/ButtonGroup.java 2009-11-16 10:26:42.000000000 +0100
|
||||
@@ -63,9 +63,10 @@
|
||||
* Adds the specified button to the group.
|
||||
*/
|
||||
public void add(AbstractButton button_) {
|
||||
@ -12,3 +12,15 @@
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -133,10 +134,9 @@
|
||||
for (Enumeration e = _buttons.elements(); e.hasMoreElements();) {
|
||||
|
||||
AbstractButton b = (AbstractButton) e.nextElement();
|
||||
- if (source != b || statechange != ItemEvent.SELECTED) {
|
||||
+ if (source != b && statechange == ItemEvent.SELECTED) {
|
||||
if (b.isSelected()) {
|
||||
b._selected = false;
|
||||
- b.setEnabled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user