Hi all friends, I have a problem regarding GUI in java.I want to drag a button and drop it on a frame but all my efforts are uselesss. can anyone helps me?
try netbean
no!I need to add a button to a panel and then add a listener for dragging and dropping this button on my frame...my problem is how to write the listener...
You mean the listener for the "new" dragged button?
Is this a normal action listener, and what must it do?
there are some components on the left side of my frame,what I should do is to drag these components and drop them on the other side of the frame.I don't know how I can manage it...thanks for your attention
You could try Qt Jambi for GUI programming -- in Java's case. ( http://qt-jambi.org/) Their signal/slot mechanism is much easier to grasp than all those listeners you'd otherwise have to deal with. =)
thanks =)
Join our real-time social learning platform and learn together with your friends!