This site requires JavaScript, please enable it in your browser!
Greenfoot back
erdelf
erdelf wrote ...

2012/7/12

Can't access MouseInfo

erdelf erdelf

2012/7/12

#
Tried to compile my code, like hundred time before, but now this message comes:
reference to MouseInfo is ambiguous, both class java.awt.MouseInfo in java.awt and class greenfoot.MouseInfo in greenfoot match
erdelf erdelf

2012/7/12

#
forget it, I shouldn't import the whole java.awt package.
mjrb4 mjrb4

2012/7/12

#
Yup, this is why it's often good to just use individual imports rather than star ones!
erdelf erdelf

2012/7/12

#
I had to import five sub-packages of awt, and my old teacher told me this would be better, I will import only what I want
You need to login to post a reply.