Java仿千千静听音乐播放器源代码(20)
发布时间:2021-06-06
发布时间:2021-06-06
Java仿千千静听音乐播放器源代码 自己收集的。
public class RectangleFrame extends JFrame implements MouseListener,
} 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 RectangleFrame() { } this.setUndecorated(true); this.addMouseListener(this); this.addMouseMotionListener(this); protected int beForX = 0; protected int beForY = 0; MouseMotionListener {
SoudPlayer.java
package eb.cstop.swing;
import java.io.*;
import javax.sound.sampled.AudioInputStream;
上一篇:电子厂生产安全用电知识考试题
下一篇:樟宜机场服务品牌蓝背景