919293949596979899100101
JButton bttn = new JButton("OK"); bttn.setAlignmentX(JComponent.CENTER_ALIGNMENT); bttn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { infoDialog.dispose(); } }); c.fill = GridBagConstraints.NONE; c.gridx = 0;
96979899100101102103104105106
JButton bttn = new JButton("OK"); bttn.setAlignmentX(JComponent.CENTER_ALIGNMENT); bttn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { infoDialog.dispose(); } }); c.fill = GridBagConstraints.NONE; c.gridy = 2;
160161162163164165166167168169170
GameViewEvent event = new GameViewEvent(this, (Integer) countSpr.getValue()); fireNewStartedGame(event); dialog.dispose(); } }); c.fill = GridBagConstraints.NONE; c.gridy = 2;
441442443444445446447448449450451
GameViewEvent event = new GameViewEvent(this, p, companyCell, companyCell.cost()); fireMadePlayerBuyLand(event); dialog.dispose(); } }); c.fill = GridBagConstraints.VERTICAL; c.gridy = 1;
453454455456457458459460461462463
JButton nbttn = new JButton("Нет"); nbttn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { dialog.dispose(); } }); c.gridy = 2; dialog.add(nbttn, c);
515516517518519520521522523524525
GameViewEvent event = new GameViewEvent(this, p, companyCell); fireMadePlayerPayRent(event); infoDialog.dispose(); } }); c.fill = GridBagConstraints.NONE; c.gridy = 1;
609610611612613614615616617618619
_canPlayerBuyLand = false; GameViewEvent event = new GameViewEvent(this, p, companyCell, (Integer) amountSpr.getValue()); fireMadePlayerBuyLand(event); dialog.dispose(); } } }); nbttn.addActionListener(new ActionListener() {
618619620621622623624625626627628
nbttn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { _canPlayerBuyLand = true; dialog.dispose(); } }); dialog.pack(); dialog.setLocationRelativeTo(this);
686687688689690691692693694695696
751752753754755756757758759760761
ybttn.setAlignmentX(JComponent.CENTER_ALIGNMENT); ybttn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { startNewGame(); infoDialog.dispose(); } }); c.fill = GridBagConstraints.NONE; c.gridy = 1;