File
Doc
Category
Size
Date
Package
DrawStringDemo.java
API Doc
Example
281
Sun Mar 11 21:03:30 GMT 2001
None
DrawStringDemo
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
public class DrawStringDemo extends JComponent
Fields Summary
int
textX
int
textY
Constructors Summary
Methods Summary
public
java.awt.Dimension
getPreferredSize
()
return new Dimension(100, 100);
public void
paint
(
java.awt.Graphics
g)
g.drawString("Hello Java", textX, textY);
Java Code Source