A
A
apapher2015-09-07 11:07:01
Java
apapher, 2015-09-07 11:07:01

How to move objects with the mouse?

I am writing a game. How to make in Swing so that you can move objects with the mouse?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2015-09-07
@GavriKos

Usually, in order for something to happen in a program, you need to write code.
If you haven't tried writing code, give it a try.
If you've already tried it and it doesn't work, post your code here.
If you haven't tried and don't know how to get close to the problem - write at least your thoughts on this, algorithms, architecture.
In general, in my opinion, making a game on Swing is kind of hellish.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question