//JOptionPane.showMessageDialog(null, "Бутерброд");
}
public okno()
{
Container cont = getContentPane();
JPanel pan = new JPanel();
pan.setLayout(null);
Font btnFont = new Font("serif",0,20);
Font labFont = new Font("arial",1,30);
Font textFont = new Font("arial",2,30);
JButton[] btn = new JButton[17];
for (int i=0;i<17;i++)
{
btn = new JButton();
ArrayIndexOutOfBoundsException - учись читать ошибки, она тебе прям орет в чем проблема. Array + Index + Out переведи эти 3 слова с англа... JButton[] btn = new JButton[17]; .... btn[17].setText("!"); 17го индекса не существует. Есть 0 1 2...16