Skip to main content

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)...