window.getContentPane().add(BorderLayout.NORTH,topPanel);
perhaps
window.getContentPane().add(topPanel, BorderLayout.NORTH);
I think the component is the first parameter in add...
...and:...
Type: Posts; User: jps
window.getContentPane().add(BorderLayout.NORTH,topPanel);
perhaps
window.getContentPane().add(topPanel, BorderLayout.NORTH);
I think the component is the first parameter in add...
...and:...
public GuessTheNumberButton(){
//...
return 0;
}
See something wrong with this picture?