+ m_pokeName[i].getWidth() + 10, m_pokeName[i].getY());
m_container[i].add(m_hp[i]);
m_hp[i].setSize(72, 5);
m_hp[i].setLocation(m_hpBar[i].getX() + 23, m_hpBar[i].getY() + 3);
if (i != 0) {
m_switchUp[i] = new SimpleArrowButton(
SimpleArrowButton.FACE_UP);
m_switchUp[i].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
GameClient.getInstance().getPacketGenerator().writeTcpMessage("s" + String.valueOf(j)
+ ","+String.valueOf(j - 1));
//reinitialize the gui
getContentPane().removeAll();
allocateVariables();
loadImages(m_pokes);
initGUI();
}
});
m_switchUp[i].setHeight(16);
m_switchUp[i].setWidth(16);
m_container[i].add(m_switchUp[i]);
}
if (i != 5) {
m_switchDown[i] = new SimpleArrowButton(
SimpleArrowButton.FACE_DOWN);
m_switchDown[i].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
GameClient.getInstance().getPacketGenerator().writeTcpMessage("s" + String.valueOf(j)
+ ","+String.valueOf(j + 1));