Java仿千千静听音乐播放器源代码 自己收集的。
} } } } delete.setEnabled(true); delete.setEnabled(false); else popup.show(this, e.getX(), e.getY()); public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEvent e) { } public void mouseReleased(MouseEvent e) { }
ProgressBar.java
package eb.cstop.swing;
import javax.swing.JLabel;
import java.awt.*;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.util.ArrayList;
import java.awt.event.MouseWheelListener;
import java.awt.event.MouseWheelEvent;
public class ProgressBar extends JLabel implements MouseListener,
MouseMotionListener, MouseWheelListener { private int value = 0; private int minLimit = 0; private int maxLimit = 100; private float alpha = 0.7f; private Color border = new Color(0, 0, 0); private Color color = new Color(250, 160, 0); private ArrayList changeListener = new ArrayList(); private ProgressBarEvent event = new ProgressBarEvent();