Пример #1
0
 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);
 }
Пример #2
0
 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);
 }