Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: Draw Texts on swing composant

Java: Draw Texts on swing composant
{filelink=9432}

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

No comments yet.

Leave a Comment