DnD « JPanel « Java Swing Q&A





2. Why Cannot DnD again after I setToolTipText in JPanel??    coderanch.com

Dear Friends: I met a problem. when I use setToolTipText, It is stuck and cannot move, How to solve this?? Why Cannot DnD again after I setToolTipText in JPanel?? see below, import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import javax.swing.event.MouseInputAdapter; public class Resizing extends JPanel { public Resizing() { super(null); addPanel(); PanelControlAdapter control = new PanelControlAdapter(this); addMouseListener(control); addMouseMotionListener(control); } private ...