Skip to main content

[patch] swingx

1 reply [Last post]
Anonymous

Username: grandinj, JCA submitted
Against current cvs.dev.java.net/cvs/swingx HEAD.

Fix a bug in JXRadioGroup#getSelectedValue.

NOTICE: Please note that this email, and the contents thereof,
are subject to the standard Peralex email disclaimer, which may
be found at: http://www.peralex.com/disclaimer.html

If you cannot access the disclaimer through the URL attached
and you wish to receive a copy thereof please send
an email to email@peralex.com
? bin
Index: src/java/org/jdesktop/swingx/JXRadioGroup.java
===================================================================
RCS file: /cvs/swingx/src/java/org/jdesktop/swingx/JXRadioGroup.java,v
retrieving revision 1.1
diff -u -r1.1 JXRadioGroup.java
--- src/java/org/jdesktop/swingx/JXRadioGroup.java 14 Mar 2005 21:49:40 -0000 1.1
+++ src/java/org/jdesktop/swingx/JXRadioGroup.java 14 Apr 2005 09:34:46 -0000
@@ -94,7 +94,7 @@

public Object getSelectedValue() {
int index = getSelectedIndex();
- return (index <= 0 || index >= values.size()) ? null : values.get(index);
+ return (index < 0 || index >= values.size()) ? null : values.get(index);
}

public void setSelectedValue(Object value) {

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rbair
Offline
Joined: 2003-07-08

Hey Noel,

Thanks for the fix. It has been integrated in the SwingX source tree (swingx.dev.java.net).

Thanks
Richard