2022-11-06 00:34:21 +04:00
|
|
|
|
import javax.imageio.ImageIO;
|
|
|
|
|
import javax.swing.*;
|
2022-11-06 19:16:28 +04:00
|
|
|
|
import javax.swing.event.ListSelectionEvent;
|
|
|
|
|
import javax.swing.event.ListSelectionListener;
|
2022-11-06 00:34:21 +04:00
|
|
|
|
import java.awt.*;
|
|
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
|
import java.awt.event.ActionListener;
|
|
|
|
|
import java.awt.event.KeyAdapter;
|
|
|
|
|
import java.awt.event.KeyEvent;
|
|
|
|
|
import java.awt.image.BufferedImage;
|
2022-11-06 19:16:28 +04:00
|
|
|
|
import java.util.HashMap;
|
2022-11-06 00:34:21 +04:00
|
|
|
|
|
2022-11-18 18:38:30 +04:00
|
|
|
|
public class FormMapWithSetPlanesGeneric extends JFrame{
|
2022-11-06 12:34:47 +04:00
|
|
|
|
public JPanel MainPanel;
|
2022-11-06 00:34:21 +04:00
|
|
|
|
private JPanel PictureBoxPlane;
|
2022-11-06 19:16:28 +04:00
|
|
|
|
private JPanel GroupBoxTools;
|
2022-11-06 00:34:21 +04:00
|
|
|
|
private JComboBox ComboBoxSelectorMap;
|
|
|
|
|
private JButton ButtonLeft;
|
|
|
|
|
private JButton ButtonDown;
|
|
|
|
|
private JButton ButtonRight;
|
|
|
|
|
private JButton ButtonUp;
|
|
|
|
|
private JButton ButtonShowOnMap;
|
|
|
|
|
private JButton ButtonShowStorage;
|
|
|
|
|
private JButton ButtonAddPlane;
|
|
|
|
|
private JTextField MaskedTextBoxPosition;
|
|
|
|
|
private JButton ButtonRemovePlane;
|
2022-11-06 17:32:49 +04:00
|
|
|
|
private JTextField TextBoxNewMapName;
|
|
|
|
|
private JButton ButtonAddMap;
|
2022-11-06 19:16:28 +04:00
|
|
|
|
private JList ListBoxMaps;
|
2022-11-06 17:32:49 +04:00
|
|
|
|
private JButton ButtonDeleteMap;
|
2022-11-06 19:16:28 +04:00
|
|
|
|
private JPanel GroupBoxMap;
|
|
|
|
|
private JButton ButtonShowDelete;
|
2022-11-06 00:34:21 +04:00
|
|
|
|
|
2022-11-06 19:16:28 +04:00
|
|
|
|
//объект от коллекции карт
|
|
|
|
|
private final MapsCollection _mapsCollection;
|
|
|
|
|
|
|
|
|
|
//Для выпадающего списка
|
|
|
|
|
HashMap<String, AbstractMap> _mapsHashMap = new HashMap<>()
|
|
|
|
|
{{
|
|
|
|
|
put("Простая карта", new SimpleMap());
|
|
|
|
|
put("Буря в пустыне", new DesertStormMap());
|
|
|
|
|
put("Звёздные войны", new StarWarsMap());
|
|
|
|
|
}};
|
|
|
|
|
|
|
|
|
|
public FormMapWithSetPlanesGeneric()
|
|
|
|
|
{
|
2022-11-18 18:38:30 +04:00
|
|
|
|
super("Хранилище");
|
2022-11-06 19:16:28 +04:00
|
|
|
|
CreateWindow();
|
2022-11-07 10:19:28 +04:00
|
|
|
|
_mapsCollection = new MapsCollection(730, 650);
|
2022-11-06 19:16:28 +04:00
|
|
|
|
ComboBoxSelectorMap.removeAllItems();
|
2022-11-07 10:19:28 +04:00
|
|
|
|
|
2022-11-17 23:34:35 +04:00
|
|
|
|
for (String elem : _mapsHashMap.keySet())
|
|
|
|
|
{
|
2022-11-07 10:19:28 +04:00
|
|
|
|
ComboBoxSelectorMap.addItem(elem);
|
2022-11-06 19:16:28 +04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//заполнение ListBoxMaps
|
|
|
|
|
private void ReloadMaps()
|
|
|
|
|
{
|
|
|
|
|
int index = ListBoxMaps.getSelectedIndex();
|
|
|
|
|
|
2022-11-07 10:19:28 +04:00
|
|
|
|
DefaultListModel<String> model = (DefaultListModel<String>)ListBoxMaps.getModel();
|
2022-11-06 19:16:28 +04:00
|
|
|
|
model.removeAllElements();
|
|
|
|
|
|
2022-11-07 10:19:28 +04:00
|
|
|
|
for (int i = 0; i < _mapsCollection.Keys().size(); i++)
|
2022-11-06 19:16:28 +04:00
|
|
|
|
{
|
2022-11-07 10:19:28 +04:00
|
|
|
|
model.addElement(_mapsCollection.Keys().get(i));
|
2022-11-06 19:16:28 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ListBoxMaps.getModel().getSize() > 0 && (index == -1 || index >= ListBoxMaps.getModel().getSize()))
|
|
|
|
|
{
|
|
|
|
|
ListBoxMaps.setSelectedIndex(0);
|
|
|
|
|
}
|
|
|
|
|
else if (ListBoxMaps.getModel().getSize() > 0 && index > -1 && index < ListBoxMaps.getModel().getSize())
|
|
|
|
|
{
|
|
|
|
|
ListBoxMaps.setSelectedIndex(index);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-06 00:34:21 +04:00
|
|
|
|
//обновление отрисовки
|
|
|
|
|
public void UpdateWindow(BufferedImage bmp)
|
|
|
|
|
{
|
|
|
|
|
PictureBoxPlane.removeAll();
|
|
|
|
|
JLabel imageWithMapAndObject = new JLabel();
|
|
|
|
|
imageWithMapAndObject.setPreferredSize(PictureBoxPlane.getSize());
|
|
|
|
|
imageWithMapAndObject.setMinimumSize(new Dimension(1, 1));
|
|
|
|
|
imageWithMapAndObject.setIcon(new ImageIcon(bmp));
|
|
|
|
|
PictureBoxPlane.add(imageWithMapAndObject, BorderLayout.CENTER);
|
|
|
|
|
PictureBoxPlane.revalidate();
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-06 19:16:28 +04:00
|
|
|
|
public void CreateWindow()
|
2022-11-06 00:34:21 +04:00
|
|
|
|
{
|
|
|
|
|
//загрузка изображений для кнопок
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
Image img = ImageIO.read(getClass().getResource("resourses/Up.png"));
|
|
|
|
|
ButtonUp.setIcon(new ImageIcon(img));
|
|
|
|
|
img = ImageIO.read(getClass().getResource("resourses/Left.png"));
|
|
|
|
|
ButtonLeft.setIcon(new ImageIcon(img));
|
|
|
|
|
img = ImageIO.read(getClass().getResource("resourses/Down.png"));
|
|
|
|
|
ButtonDown.setIcon(new ImageIcon(img));
|
|
|
|
|
img = ImageIO.read(getClass().getResource("resourses/Right.png"));
|
|
|
|
|
ButtonRight.setIcon(new ImageIcon(img));
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
System.out.println(ex.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-06 19:16:28 +04:00
|
|
|
|
//добавить карту
|
|
|
|
|
ButtonAddMap.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(ComboBoxSelectorMap.getSelectedIndex() == -1 || TextBoxNewMapName.getText().isEmpty())
|
|
|
|
|
{
|
|
|
|
|
JOptionPane.showMessageDialog(null, "Не все данные заполнены", "Ошибка", JOptionPane.ERROR_MESSAGE);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!_mapsHashMap.containsKey(ComboBoxSelectorMap.getSelectedItem()))
|
|
|
|
|
{
|
|
|
|
|
JOptionPane.showMessageDialog(null, "Данная карта отсутсвует", "Ошибка", JOptionPane.ERROR_MESSAGE);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
2022-11-06 19:16:28 +04:00
|
|
|
|
|
2022-11-07 10:19:28 +04:00
|
|
|
|
_mapsCollection.AddMap(TextBoxNewMapName.getText(), _mapsHashMap.get(ComboBoxSelectorMap.getSelectedItem().toString()));
|
|
|
|
|
ReloadMaps();
|
2022-11-06 19:16:28 +04:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//удалить карту
|
|
|
|
|
ButtonDeleteMap.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(ListBoxMaps.getSelectedIndex() == -1)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
2022-11-06 19:16:28 +04:00
|
|
|
|
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(JOptionPane.showConfirmDialog(null, "Удалить карту" + ListBoxMaps.getSelectedValue().toString() + "?",
|
|
|
|
|
"Удаление", JOptionPane.YES_NO_OPTION) == 0)
|
|
|
|
|
{
|
|
|
|
|
_mapsCollection.DelMap(ListBoxMaps.getSelectedValue().toString());
|
|
|
|
|
ReloadMaps();
|
|
|
|
|
}
|
2022-11-06 19:16:28 +04:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//список карт
|
|
|
|
|
ListBoxMaps.addListSelectionListener(new ListSelectionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void valueChanged(ListSelectionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(ListBoxMaps.getSelectedIndex() == -1)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
2022-11-06 19:16:28 +04:00
|
|
|
|
|
2022-11-07 10:19:28 +04:00
|
|
|
|
UpdateWindow(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).ShowSet());
|
2022-11-06 19:16:28 +04:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//Просмотр удалённых самолётов
|
|
|
|
|
ButtonShowDelete.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(ListBoxMaps.getSelectedIndex() == -1)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DrawningObjectPlane plane = _mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).GetPlaneInDelete();
|
2022-11-06 19:16:28 +04:00
|
|
|
|
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(plane == null)
|
|
|
|
|
{
|
|
|
|
|
JOptionPane.showMessageDialog(null, "Список пуст", "Ошибка", JOptionPane.ERROR_MESSAGE);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FormPlane form = new FormPlane(plane);
|
2022-11-07 21:03:30 +04:00
|
|
|
|
form.setSize(700, 500);
|
2022-11-07 10:19:28 +04:00
|
|
|
|
form.setVisible(true);
|
2022-11-06 19:16:28 +04:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2022-11-18 16:31:49 +04:00
|
|
|
|
//добавление самолёта с использованием делегата
|
2022-11-06 00:34:21 +04:00
|
|
|
|
ButtonAddPlane.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-18 16:31:49 +04:00
|
|
|
|
FormPlaneConfig form = new FormPlaneConfig();
|
|
|
|
|
|
|
|
|
|
form.AddEvent(newPlane ->{
|
|
|
|
|
if(ListBoxMaps.getSelectedIndex() == -1)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(newPlane != null)
|
|
|
|
|
{
|
|
|
|
|
DrawningObjectPlane plane = new DrawningObjectPlane(newPlane);
|
|
|
|
|
|
|
|
|
|
if(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).Add(plane) != -1)
|
|
|
|
|
{
|
|
|
|
|
JOptionPane.showMessageDialog(null, "Объект добавлен");
|
|
|
|
|
UpdateWindow(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).ShowSet());
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
JOptionPane.showMessageDialog(null, "Не удалось добавить объект");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
form.setSize(975, 360);
|
2022-11-06 00:34:21 +04:00
|
|
|
|
form.setVisible(true);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//удаление самолёта
|
|
|
|
|
ButtonRemovePlane.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
|
|
if (MaskedTextBoxPosition.getText().isEmpty())
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int result = JOptionPane.showConfirmDialog(null,"Удалить объект?","Удаление",
|
|
|
|
|
JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE);
|
2022-11-07 10:19:28 +04:00
|
|
|
|
|
|
|
|
|
if(result == JOptionPane.NO_OPTION)
|
2022-11-06 00:34:21 +04:00
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int pos = Integer.parseInt(MaskedTextBoxPosition.getText());
|
|
|
|
|
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).Delete(pos) != null)
|
2022-11-06 00:34:21 +04:00
|
|
|
|
{
|
|
|
|
|
JOptionPane.showMessageDialog(null,"Объект удалён");
|
2022-11-07 10:19:28 +04:00
|
|
|
|
UpdateWindow(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).ShowSet());
|
2022-11-06 00:34:21 +04:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
JOptionPane.showMessageDialog(null,"Не удалось удалить объект");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//показ хранилища
|
|
|
|
|
ButtonShowStorage.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(_mapsCollection == null)
|
2022-11-06 00:34:21 +04:00
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-07 10:19:28 +04:00
|
|
|
|
UpdateWindow(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).ShowSet());
|
2022-11-06 00:34:21 +04:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//показ карты
|
|
|
|
|
ButtonShowOnMap.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if (_mapsCollection == null)
|
2022-11-06 00:34:21 +04:00
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-07 10:19:28 +04:00
|
|
|
|
UpdateWindow(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).ShowOnMap());
|
2022-11-06 00:34:21 +04:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
ButtonUp.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(_mapsCollection== null)
|
2022-11-06 00:34:21 +04:00
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PictureBoxPlane.removeAll();
|
|
|
|
|
|
|
|
|
|
JLabel imageWithMapAndObject = new JLabel();
|
|
|
|
|
imageWithMapAndObject.setPreferredSize(PictureBoxPlane.getSize());
|
|
|
|
|
imageWithMapAndObject.setMinimumSize(new Dimension(1, 1));
|
2022-11-07 10:19:28 +04:00
|
|
|
|
imageWithMapAndObject.setIcon(new ImageIcon(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).MoveObject((Direction.Up))));
|
2022-11-06 00:34:21 +04:00
|
|
|
|
|
|
|
|
|
PictureBoxPlane.add(imageWithMapAndObject, BorderLayout.CENTER);
|
|
|
|
|
PictureBoxPlane.revalidate();
|
|
|
|
|
PictureBoxPlane.repaint();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
ButtonLeft.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(_mapsCollection == null)
|
2022-11-06 00:34:21 +04:00
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PictureBoxPlane.removeAll();
|
|
|
|
|
|
|
|
|
|
JLabel imageWithMapAndObject = new JLabel();
|
|
|
|
|
imageWithMapAndObject.setPreferredSize(PictureBoxPlane.getSize());
|
|
|
|
|
imageWithMapAndObject.setMinimumSize(new Dimension(1, 1));
|
2022-11-07 10:19:28 +04:00
|
|
|
|
imageWithMapAndObject.setIcon(new ImageIcon(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).MoveObject((Direction.Left))));
|
2022-11-06 00:34:21 +04:00
|
|
|
|
|
|
|
|
|
PictureBoxPlane.add(imageWithMapAndObject, BorderLayout.CENTER);
|
|
|
|
|
PictureBoxPlane.revalidate();
|
|
|
|
|
PictureBoxPlane.repaint();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
ButtonDown.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(_mapsCollection == null)
|
2022-11-06 00:34:21 +04:00
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PictureBoxPlane.removeAll();
|
|
|
|
|
|
|
|
|
|
JLabel imageWithMapAndObject = new JLabel();
|
|
|
|
|
imageWithMapAndObject.setPreferredSize(PictureBoxPlane.getSize());
|
|
|
|
|
imageWithMapAndObject.setMinimumSize(new Dimension(1, 1));
|
2022-11-07 10:19:28 +04:00
|
|
|
|
imageWithMapAndObject.setIcon(new ImageIcon(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).MoveObject((Direction.Down))));
|
2022-11-06 00:34:21 +04:00
|
|
|
|
|
|
|
|
|
PictureBoxPlane.add(imageWithMapAndObject, BorderLayout.CENTER);
|
|
|
|
|
PictureBoxPlane.revalidate();
|
|
|
|
|
PictureBoxPlane.repaint();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
ButtonRight.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-11-07 10:19:28 +04:00
|
|
|
|
if(_mapsCollection == null)
|
2022-11-06 00:34:21 +04:00
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PictureBoxPlane.removeAll();
|
|
|
|
|
|
|
|
|
|
JLabel imageWithMapAndObject = new JLabel();
|
|
|
|
|
imageWithMapAndObject.setPreferredSize(PictureBoxPlane.getSize());
|
|
|
|
|
imageWithMapAndObject.setMinimumSize(new Dimension(1, 1));
|
2022-11-07 10:19:28 +04:00
|
|
|
|
imageWithMapAndObject.setIcon(new ImageIcon(_mapsCollection.get(ListBoxMaps.getSelectedValue().toString()).MoveObject((Direction.Right))));
|
2022-11-06 00:34:21 +04:00
|
|
|
|
|
|
|
|
|
PictureBoxPlane.add(imageWithMapAndObject, BorderLayout.CENTER);
|
|
|
|
|
PictureBoxPlane.revalidate();
|
|
|
|
|
PictureBoxPlane.repaint();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
MaskedTextBoxPosition.addKeyListener(new KeyAdapter() {
|
|
|
|
|
@Override
|
|
|
|
|
public void keyTyped(KeyEvent e) {
|
|
|
|
|
char c = e.getKeyChar();
|
|
|
|
|
|
2022-11-06 19:16:28 +04:00
|
|
|
|
if ((c < '0') || (c > '9')) {
|
2022-11-06 00:34:21 +04:00
|
|
|
|
e.consume();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
2022-11-07 10:19:28 +04:00
|
|
|
|
|
2022-11-17 23:34:35 +04:00
|
|
|
|
private void createUIComponents()
|
|
|
|
|
{
|
2022-11-07 10:19:28 +04:00
|
|
|
|
DefaultListModel<String> defListMod = new DefaultListModel<String>();
|
|
|
|
|
ListBoxMaps = new JList(defListMod);
|
|
|
|
|
}
|
2022-11-06 00:34:21 +04:00
|
|
|
|
}
|