Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ternary operator

843807Jan 28 2010 — edited Mar 10 2010
Hi,
Guys, what I'm doing wrong in here? I'm getting an error that this isn't a statement.
i == 0 ? tmp.setSelected(true) : tmp.setSelected(false);
tmp is a JRadioButton;

Thank you for any help.

Comments

EJ-Egyed

Oracle products that are Java based are typically only supported with the Oracle build of Java. In the documentation for ORDS 20.3, it states Oracle Java 8 or later. So even if you have ORDS running on openJDK, if you were to run into an issue, Oracle would not support your configuration or at least have you try to reproduce the issue using Oracle's build of the JDK.

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 7 2010
Added on Jan 28 2010
70 comments
5,101 views