Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java2d に画像があり、マウスを左クリックしてドラッグすることで、画像の四角形の部分を選択するオプションをユーザーに提供したいと思います (mspaint に似ています)。これは実際にどのように行われますか?
ありがとうございました。
http://java.sun.com/docs/books/tutorial/uiswing/events/mousemotionlistener.html
SelectionDemoは特に役立ちます。