import java.awt.*; public class DrawText extends Component { public void paint(Graphics g) { // Draw your text here g.drawString("Welcom to Java world", 15, 30); } public Dimension getPreferredSize( ) { return new Dimension(100, 100); } } |
Users who found this page were searching for:
- java awt g.draw text input