Java仿千千静听音乐播放器源代码(2)
发布时间:2021-06-06
发布时间:2021-06-06
Java仿千千静听音乐播放器源代码 自己收集的。
private boolean pressed = false; public CrystalButton() { } public CrystalButton(String text) { } public CrystalButton(String text, ImageIcon icon) { } public CrystalButton(String text, ImageIcon icon, String toolTip) { } public void setAlpha(float alpha) { } public float getAlpha() { } public void paintBorder(Graphics g) { } public void paintComponent(Graphics g) { Graphics2D cs = (Graphics2D) g; int width = this.getSize().width; int height = this.getSize().height; cs.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha)); return alpha; this.alpha = alpha; this.repaint(); this.addMouseListener(this); this.setText(text); if (icon != null) this.setIcon(icon); this.setContentAreaFilled(false); this.setFont(new Font("宋体", 0, 12)); this.setForeground(Color.white); this.setToolTipText(toolTip); this(text, icon, ""); this(text, null); this("");
上一篇:电子厂生产安全用电知识考试题
下一篇:樟宜机场服务品牌蓝背景