Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import java.awt.*;
  2. public
  3. class Helloapp extends Frame
  4. {
  5. public Helloapp()
  6. {
  7. //super("Hello");
  8. setSize(500,300);
  9. setVisible(true);
  10. }
  11. public void paint(Graphics qDC)
  12. {
  13. Font font = new Font("SansSerif", Font.BOLD,36);
  14. qDC.setFont(font);
  15. qDC.drawString("To jest aplikacja",120,100);
  16. }
  17. public static void main(String args[])
  18. {
  19. new Helloapp();
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement