Untitled


SUBMITTED BY: itsDaveLad

DATE: March 10, 2016, 3:22 p.m.

FORMAT: Text only

SIZE: 609 Bytes

HITS: 359

  1. public class Okno1 extends JFrame{
  2. private JButton next = new JButton("Next");
  3. private Panel1 Panel1 = new Panel1();
  4. public Okno1(String name){
  5. setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  6. setSize(320, 480);
  7. setVisible(true);
  8. setTitle(name);
  9. setLayout(new FlowLayout());
  10. add(next);
  11. //pack();
  12. next.addActionListener(new ActionListener(){
  13. @Override
  14. public void actionPerformed(ActionEvent e) {
  15. add(Panel1);
  16. }
  17. });
  18. }
  19. }

comments powered by Disqus