this.getTitleBar().getCloseButton().setVisible(false);
this.setLocation(420, 220);
this.setResizable(false);
this.setDraggable(false);
m_u = new Label(translated.get(5));
m_u.pack();
m_u.setLocation(4, 4);
m_u.setFont(GameClient.getFontSmall());
m_u.setForeground(m_white);
this.add(m_u);
m_username = new TextField();
m_username.setSize(128, 24);
m_username.setLocation(4, 24);
m_username.setVisible(true);
m_username.grabFocus();
this.add(m_username);
m_p = new Label(translated.get(6));
m_p.pack();
m_p.setLocation(4, 52);
m_p.setFont(GameClient.getFontSmall());
m_p.setForeground(m_white);
this.add(m_p);
m_password = new TextField();
m_password.setSize(128, 24);
m_password.setLocation(4, 72);
m_password.setMaskCharacter('*');
m_password.setMaskEnabled(true);
m_password.setVisible(true);
this.add(m_password);
m_cp = new Label(translated.get(10));
m_cp.pack();
m_cp.setLocation(4, 100);
m_cp.setFont(GameClient.getFontSmall());
m_cp.setForeground(m_white);
this.add(m_cp);
m_confirmPass = new TextField();
m_confirmPass.setSize(128, 24);
m_confirmPass.setLocation(4, 122);
m_confirmPass.setMaskCharacter('*');
m_confirmPass.setMaskEnabled(true);
m_confirmPass.setVisible(true);
this.add(m_confirmPass);
m_d = new Label(translated.get(11));
m_d.pack();
m_d.setLocation(4, 152);
m_d.setFont(GameClient.getFontSmall());
m_d.setForeground(m_white);
this.add(m_d);
m_day = new TextField();
m_day.setSize(32, 24);
m_day.setLocation(4, 172);
m_day.setVisible(true);
this.add(m_day);
m_month = new TextField();
m_month.setSize(32, 24);
m_month.setLocation(40, 172);
m_month.setVisible(true);
this.add(m_month);
m_year = new TextField();
m_year.setSize(52, 24);
m_year.setLocation(76, 172);
m_year.setVisible(true);
this.add(m_year);
m_e = new Label(translated.get(12));
m_e.pack();
m_e.setLocation(4, 202);
m_e.setFont(GameClient.getFontSmall());
m_e.setForeground(m_white);
this.add(m_e);
m_email = new TextField();
m_email.setSize(128, 24);
m_email.setLocation(4, 220);
m_email.setVisible(true);
this.add(m_email);
m_ce = new Label(translated.get(13));
m_ce.pack();
m_ce.setLocation(4, 248);
m_ce.setFont(GameClient.getFontSmall());
m_ce.setForeground(m_white);
this.add(m_ce);
m_confirmEmail = new TextField();
m_confirmEmail.setSize(128, 24);
m_confirmEmail.setLocation(4, 268);
m_confirmEmail.setVisible(true);
this.add(m_confirmEmail);
m_s = new Label(translated.get(14));
m_s.pack();
m_s.setLocation(170, 4);
m_s.setFont(GameClient.getFontSmall());
m_s.setForeground(m_white);
this.add(m_s);
this.generateStarters();
m_g = new Label(translated.get(15));
m_g.pack();
m_g.setLocation(170, 128);
m_g.setFont(GameClient.getFontSmall());
m_g.setForeground(m_white);
this.add(m_g);
m_male = new Button(translated.get(16));
m_male.setSize(64, 24);
m_male.setLocation(170, 150);
m_male.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
m_female.setEnabled(true);
m_gender = 0;
m_male.setEnabled(false);
}
});
this.add(m_male);
m_female = new Button(translated.get(17));
m_female.setSize(64, 24);
m_female.setLocation(234, 150);
m_female.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
m_female.setEnabled(false);
m_gender = 1;
m_male.setEnabled(true);
}
});
this.add(m_female);
m_reg = new Label("Starting Region:");
m_reg.setFont(GameClient.getFontSmall());
m_reg.setForeground(m_white);
m_reg.pack();
m_reg.setLocation(170, 182);
m_reg.setVisible(true);
this.add(m_reg);
/* Generate region selection */
m_regions = new Button[4];
m_regions[0] = new Button("Kanto");
m_regions[0].setSize(64, 24);
m_regions[0].setLocation(170, 206);
m_regions[0].setToolTipText("A town-filled region\nconnected to the\neast of Johto");
m_regions[0].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
m_region = 0;
m_regions[0].setEnabled(false);
m_regions[1].setEnabled(true);
m_regions[2].setEnabled(false);
m_regions[3].setEnabled(false);
}
});
m_regions[0].setVisible(true);
this.add(m_regions[0]);
m_regions[1] = new Button("Johto");
m_regions[1].setSize(64, 24);
m_regions[1].setLocation(234, 206);
m_regions[1].setToolTipText("A city-filled\nregion connected\nto the west\nof Kanto");
m_regions[1].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
m_region = 1;
m_regions[0].setEnabled(true);
m_regions[1].setEnabled(false);
m_regions[2].setEnabled(false);
m_regions[3].setEnabled(false);
}
});
m_regions[1].setVisible(true);
this.add(m_regions[1]);
m_regions[2] = new Button("Hoenn");
m_regions[2].setSize(64, 24);
m_regions[2].setLocation(170, 230);
m_regions[2].setToolTipText("An island region\nsouth-west\nof Johto");
m_regions[2].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
m_region = 0;
m_regions[0].setEnabled(false);
m_regions[1].setEnabled(false);
m_regions[2].setEnabled(false);
m_regions[3].setEnabled(false);
}
});
m_regions[2].setVisible(true);
m_regions[2].setEnabled(false);
this.add(m_regions[2]);
m_regions[3] = new Button("Sinnoh");
m_regions[3].setSize(64, 24);
m_regions[3].setLocation(234, 230);
m_regions[3].setToolTipText("A mountainous\nregion north\nof Kanto");
m_regions[3].addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
m_region = 0;
m_regions[0].setEnabled(false);
m_regions[1].setEnabled(false);
m_regions[2].setEnabled(false);
m_regions[3].setEnabled(false);
}
});
m_regions[3].setVisible(true);
m_regions[3].setEnabled(false);
this.add(m_regions[3]);
m_tos = new Label(translated.get(18));
m_tos.pack();
m_tos.setLocation(172, 256);
m_tos.setFont(GameClient.getFontSmall());
m_tos.setForeground(m_white);
this.add(m_tos);