Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.FlowLayout;
- import javax.swing.JFrame;
- public class MyFrameA extends JFrame
- {
- private int width = 200;
- private int height = 200;
- public MyFrameA()
- {
- this.setSize(width, height);
- this.setLocation(650, 500);
- this.setLayout(new FlowLayout());
- this.setDefaultCloseOperation(MyFrameA.EXIT_ON_CLOSE);
- }
- public MyFrameA (String nachricht)
- {
- this.setTitle(nachricht);
- }
- private void setTitle(int titelFensterA)
- {
- this.setTitle(String.valueOf(titelFensterA));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement