The Source for Java Technology Collaboration
User: Password:
Register | Login help    

Search

Online Books:
java.net on MarkMail:


Blog Archive for kirillcool during July 2006

Browsing the code for BasicScrollBarUI (yes, i don't have a life), i was puzzled by the following lines: (ltr ? decrButton : incrButton).setBounds(leftButtonX, itemY, leftButtonW, itemH); (ltr ? incrButton : decrButton).setBounds(rightButtonX, itemY, rightButtonW, itemH); Say what? I had no idea that the ternary conditional operator can appear as a primary expression (JLS 15.8)...