Java仿千千静听音乐播放器源代码 自己收集的。
} public void mouseMoved(MouseEvent e) { } public void mouseDragged(MouseEvent e) { } this.setLocation(this.getLocation().x + e.getX() - beForX, this .getLocation().y + e.getY() - beForY); public void mouseReleased(MouseEvent e) { } public void mousePressed(MouseEvent e) { } beForX = e.getX(); beForY = e.getY(); public void mouseExited(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseClicked(MouseEvent e) { } public RectangleDialog(Frame frame) { } super(frame); this.setUndecorated(true); this.addMouseListener(this); this.addMouseMotionListener(this);
RectangleFrame.java
package eb.cstop.swing;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import javax.swing.JFrame;