Java仿千千静听音乐播放器源代码(7)
发布时间:2021-06-06
发布时间:2021-06-06
Java仿千千静听音乐播放器源代码 自己收集的。
} public void mouseReleased(MouseEvent e) { } this.mouseDown = false; this.repaint(); public void mousePressed(MouseEvent e) { } this.mouseDown = true; this.repaint(); public void mouseExited(MouseEvent e) { } this.mouseOn = false; this.setForeground(new Color(0, 70, 150)); this.repaint(); public void mouseEntered(MouseEvent e) { } this.mouseOn = true; this.setForeground(new Color(50, 130, 210)); this.repaint();
LPasswordField.java
package eb.cstop.swing;
import javax.swing.JPasswordField;
import java.awt.event.FocusListener;
import java.awt.event.FocusEvent;
import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;
import java.awt.Color;
import java.awt.event.MouseListener;
import javax.swing.JPopupMenu;
import javax.swing.JMenuItem;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.ActionEvent;
public class LPasswordField extends JPasswordField implements ActionListener,
FocusListener, KeyListener, MouseListener { private JPopupMenu popup = new JPopupMenu();
上一篇:电子厂生产安全用电知识考试题
下一篇:樟宜机场服务品牌蓝背景