Zhelovanov D.Y. LabWork03 #3
@ -17,30 +17,6 @@ public class FormBattleship extends JComponent {
|
||||
return SelectedBattleship;
|
||||
}
|
||||
public FormBattleship(JDialog caller) {
|
||||
// JFrame form = new JFrame("Военный корабль");
|
||||
// form.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
// form.setSize(800, 500);
|
||||
// form.setVisible(true);
|
||||
// form.setLocationRelativeTo(null);
|
||||
// form.addComponentListener(new ComponentListener() {
|
||||
// @Override
|
||||
// public void componentResized(ComponentEvent e) {
|
||||
// if(_battleship != null) _battleship.ChangeBorders(getWidth(), getHeight());
|
||||
// repaint();
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void componentMoved(ComponentEvent e) {
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void componentShown(ComponentEvent e) {
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void componentHidden(ComponentEvent e) {
|
||||
// }
|
||||
// });
|
||||
Panel statusPanel = new Panel();
|
||||
statusPanel.setBackground(Color.WHITE);
|
||||
statusPanel.setLayout(new FlowLayout());
|
||||
|
Loading…
Reference in New Issue
Block a user