Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package piskvorky;
- import javax.swing.JButton;
- import javax.swing.JFrame;
- public class Piskvorky {
- public static class PrvniOkno extends JFrame {
- JButton tlacitko = new JButton("Konec");
- public PrvniOkno(){
- this.getContentPane().add(tlacitko);
- }
- }
- public static void main(String[] args) {
- PrvniOkno po = new PrvniOkno();
- po.pack();
- po.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement