Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import java.awt.FlowLayout;
  2.  
  3. import javax.swing.JFrame;
  4.  
  5. public class MyFrameA extends JFrame
  6. {
  7. private int width = 200;
  8. private int height = 200;
  9.  
  10. public MyFrameA()
  11. {
  12. this.setSize(width, height);
  13. this.setLocation(650, 500);
  14. this.setLayout(new FlowLayout());
  15. this.setDefaultCloseOperation(MyFrameA.EXIT_ON_CLOSE);
  16. }
  17.  
  18. public MyFrameA (String nachricht)
  19. {
  20. this.setTitle(nachricht);
  21. }
  22.  
  23. private void setTitle(int titelFensterA)
  24. {
  25.  
  26. this.setTitle(String.valueOf(titelFensterA));
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement