for (int i = 0; i < 6; i++) {
m_pokeIcon[i] = new ToggleButton();
m_pokeName[i] = new Label();
m_level[i] = new Label();
m_hp[i] = new ProgressBar(0, 0);
m_hp[i].setForeground(Color.green);
final int j = i;
m_pokeIcon[i].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {