Miscellany
public text v1 · immutableprotected JPanel teePaneeli(String str, String nappi){
JPanel paneeli = new JPanel();
JLabel display = new JLabel(str);
JButton button = new JButton(nappi);
paneeli.setLayout(new GridLayout(1,2));
paneeli.add(display);
paneeli.add(button);
button.addActionListener(new
ActionListener()
{
public void actionPerformed(ActionEvent tap)
{
}
});
return paneeli;
}