Java仿千千静听音乐播放器源代码 自己收集的。
} } } } } g.drawLine(4, row, this.getSize().width - 4, row); if (!mouseOn) { } g.drawLine(4, row, this.getSize().width - 4, row); g.setColor(new Color(140 + now, 140 + now, 140 + now)); g.setColor(new Color(150 + now, 150 + now, 150 + now)); } else { } else { row++; } else { g.setColor(new Color(140, 140, 140)); g.drawLine(3, 2, this.getSize().width - 3, 2); g.drawLine(3, this.getSize().height - 3, this.getSize().width - 3, this.getSize().height - 3); g.drawLine(2, 3, 2, this.getSize().height - 4); g.drawLine(this.getSize().width - 2, 3, this.getSize().width - 2, this.getSize().height - 4); int height = this.getSize().height - 5; int row = 3; while (row <= height) { } int now = (row * 100) / height; if (now <= 35) { } row++; g.setColor(new Color(210 - now, 210 - now, 210 - now)); g.drawLine(4, row, this.getSize().width - 4, row); g.setColor(new Color(110 + now, 110 + now, 110 + now)); g.drawLine(4, row, this.getSize().width - 4, row); } else { super.paintComponent(g); public void paintComponent(Graphics g) { } public void mouseClicked(MouseEvent e) { } super.paintComponent(g);