изменения в форме

This commit is contained in:
Hells Hound 2022-12-13 22:53:22 +04:00
parent a3fd9f7327
commit 42ebda8b47

View File

@ -123,7 +123,7 @@ public class FormMapWithSetWarships extends JFrame{
fs.setAcceptAllFileFilterUsed(false); fs.setAcceptAllFileFilterUsed(false);
FileNameExtensionFilter filter = new FileNameExtensionFilter(".txt file", "txt"); FileNameExtensionFilter filter = new FileNameExtensionFilter(".txt file", "txt");
fs.addChoosableFileFilter(filter); fs.addChoosableFileFilter(filter);
fs.setDialogTitle("Загрузка"); fs.setDialogTitle("Load");
int result = fs.showSaveDialog(null); int result = fs.showSaveDialog(null);
if (result == JFileChooser.APPROVE_OPTION) { if (result == JFileChooser.APPROVE_OPTION) {
File selectedFile = fs.getSelectedFile(); File selectedFile = fs.getSelectedFile();
@ -146,7 +146,7 @@ public class FormMapWithSetWarships extends JFrame{
fs.setAcceptAllFileFilterUsed(false); fs.setAcceptAllFileFilterUsed(false);
FileNameExtensionFilter filter = new FileNameExtensionFilter(".txt file", "txt"); FileNameExtensionFilter filter = new FileNameExtensionFilter(".txt file", "txt");
fs.addChoosableFileFilter(filter); fs.addChoosableFileFilter(filter);
fs.setDialogTitle("Сохранение карты"); fs.setDialogTitle("SaveMap");
int result = fs.showSaveDialog(null); int result = fs.showSaveDialog(null);
if (result == JFileChooser.APPROVE_OPTION) { if (result == JFileChooser.APPROVE_OPTION) {
File selectedFile = fs.getSelectedFile(); File selectedFile = fs.getSelectedFile();
@ -168,7 +168,7 @@ public class FormMapWithSetWarships extends JFrame{
fs.setAcceptAllFileFilterUsed(false); fs.setAcceptAllFileFilterUsed(false);
FileNameExtensionFilter filter = new FileNameExtensionFilter(".txt file", "txt"); FileNameExtensionFilter filter = new FileNameExtensionFilter(".txt file", "txt");
fs.addChoosableFileFilter(filter); fs.addChoosableFileFilter(filter);
fs.setDialogTitle("Загрузка карты"); fs.setDialogTitle("LoadMap");
int result = fs.showSaveDialog(null); int result = fs.showSaveDialog(null);
if (result == JFileChooser.APPROVE_OPTION) { if (result == JFileChooser.APPROVE_OPTION) {
File selectedFile = fs.getSelectedFile(); File selectedFile = fs.getSelectedFile();