Mouse position: Difference between revisions

Content added Content deleted
m (→‎{{header|Perl}}: Add subsection.)
Line 615: Line 615:
=={{header|Scala}}==
=={{header|Scala}}==
[[Category:Scala Implementations]]
[[Category:Scala Implementations]]
{{libheader|Scala}}
{{libheader|Scala}}<lang scala>import java.awt.MouseInfo
<lang scala>import java.awt.MouseInfo

object MousePosition extends App {
object MousePosition extends App {
val mouseLocation = MouseInfo.getPointerInfo().getLocation()
val mouseLocation = MouseInfo.getPointerInfo.getLocation
println (mouseLocation)
println (mouseLocation)
}</lang>
}</lang>

=={{header|Racket}}==
=={{header|Racket}}==