Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Untitled
SUBMITTED BY:
itsDaveLad
DATE:
March 10, 2016, 3:22 p.m.
FORMAT:
Text only
SIZE:
609 Bytes
Raw
Download
Tweet
HITS:
359
Go to comments
Report
public class Okno1 extends JFrame{
private JButton next = new JButton("Next");
private Panel1 Panel1 = new Panel1();
public Okno1(String name){
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(320, 480);
setVisible(true);
setTitle(name);
setLayout(new FlowLayout());
add(next);
//pack();
next.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent e) {
add(Panel1);
}
});
}
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus