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.
JLabel をあるパネルから別のパネルにドラッグすることは可能ですか? 1 つのパネル内でのみラベルをドラッグできます。ラベルが負担から移動すると、ラベルは消えます。どうすればいいのかわからない。
これはいくつかの方法で簡単に行うことができます。1つの方法は
mousePressed(...)
mouseDragged(...)
mouseReleased(...)