// action that gets executed in the update thread:
pan.addCreateActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
clientInfo.sendGamePacket(new CharacterCreate(pan.getNewCharSummary()));
//dialog will stay open, will be closed on
//create ok package or cancel
}
});
pan.addCancelActionListener(new ActionListener() {