disabled the helper method on JCheckBox as this either compiles or not depending on if JDK6/7 and whether a type argument must or must not be specified

This commit is contained in:
James Strachan
2012-09-21 16:16:08 +01:00
parent b4f4927133
commit e129b43a7c
@@ -56,9 +56,12 @@ inline fun DefaultButtonModel.addActionListener(fn: (ActionEvent) -> Unit): Unit
addActionListener(actionListener(fn))
}
/*
TODO depending on the JDK this may or may not compile with or without the type argument
inline fun JComboBox<*>.addActionListener(fn: (ActionEvent) -> Unit): Unit {
addActionListener(actionListener(fn))
}
*/
inline fun JFileChooser.addActionListener(fn: (ActionEvent) -> Unit): Unit {
addActionListener(actionListener(fn))