JButton button = new JButton("" + i);
buttonPanel.add(button);
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int address = Integer.parseInt(e.getActionCommand());
GA ga = new GA(session);
ga.setAddress(address);
ga.setBus(1);
try {
ga.set(0, 1, 1000);
} catch (SRCPException e1) {
ExceptionProcessor.getInstance().processException(e1);
}
}
});