public void paintComponent(Graphics g) { super.paintComponent(g); int width = frame.getWidth(); int height = frame.getHeight(); Point p = new Point(startPoistion.getX(), startPoistion.getY()); glyph.draw(g, p, width, height); }
public TextPanel(Glyph g, ControllerInterface controller) { this.glyph = g; this.controller = controller; glyph.registerObservers((Observer) this); startPoistion = new Point(20, 50); }