public void actionPerformed(ActionEvent e) {
client.createGame();
}
});
create.setFont(FONT_LARGE_BUTTON);
createPanel.add(new MultiLineLabel(
_("Create a new local or network game. You can play against any number of computer players.")),
"wrap, grow");
JPanel connectPanel = new JPanel();
connectPanel.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));
add(connectPanel, "grow, width :250:");
connectPanel.setLayout(new MigLayout("", "[grow,center]", "20[40px]20[grow]"));
JButton connect = new JButton(_("Connect"));
connectPanel.add(connect, "wrap, alignx center,aligny top");
connect.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
client.showConnectGamePanel();
}
});
connect.setFont(FONT_LARGE_BUTTON);
connectPanel.add(new MultiLineLabel(
_("Connect to a remote JCloisterZone application with settled new game.")),
"wrap, grow");
JPanel loadPanel = new JPanel();
loadPanel.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));
add(loadPanel, "grow, width :250:");
loadPanel.setLayout(new MigLayout("", "[grow,center]", "20[40px]20[grow]"));
JButton load = new JButton(_("Load game"));
loadPanel.add(load, "wrap, alignx center,aligny top");
load.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
client.handleLoad();
}
});
load.setFont(FONT_LARGE_BUTTON);
loadPanel.add(new MultiLineLabel(
_("Load from a file previously saved game.")),
"wrap, grow");
}