public void setFontSize(int fontSize) { myTime = new MyTime(); this.font = new Font(myTime.time, fontKind, fontSize); clock.setSize(fontSize * 16, fontSize * 4); this.setDrawPoint(fontSize, fontSize); }
public void mouseDragged(MouseEvent e) { loc = clock.getLocation(loc); int x = loc.x + e.getX() - startX; int y = loc.y + e.getY() - startY; clock.setLocation(x, y); }