diff --git a/.idea/artifacts/VisualSapfor_jar.xml b/.idea/artifacts/VisualSapfor_jar.xml
index cfe04af4..025d3822 100644
--- a/.idea/artifacts/VisualSapfor_jar.xml
+++ b/.idea/artifacts/VisualSapfor_jar.xml
@@ -11,20 +11,17 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index c7e69f6f..04a642e1 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -9,8 +9,7 @@
-
-
+
@@ -88,8 +87,8 @@
-
-
+
+
diff --git a/Visual_DVM_2020.iml b/Visual_DVM_2020.iml
index 58652714..9812c1d1 100644
--- a/Visual_DVM_2020.iml
+++ b/Visual_DVM_2020.iml
@@ -16,5 +16,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/kek.xls b/kek.xls
new file mode 100644
index 00000000..db46e2a7
Binary files /dev/null and b/kek.xls differ
diff --git a/src/Common/UI/Menus_2023/MainMenuBar/MainMenuBar.java b/src/Common/UI/Menus_2023/MainMenuBar/MainMenuBar.java
index aeb03761..85274b3b 100644
--- a/src/Common/UI/Menus_2023/MainMenuBar/MainMenuBar.java
+++ b/src/Common/UI/Menus_2023/MainMenuBar/MainMenuBar.java
@@ -52,7 +52,7 @@ public class MainMenuBar extends VisualiserMenuBar {
//-
setPreferredSize(new Dimension(0, 30));
//---
-/*
+
add(new MenuBarButton() {
{
setIcon("/icons/Apply.png");
@@ -62,8 +62,6 @@ public class MainMenuBar extends VisualiserMenuBar {
});
}
});
-
- */
//---
ShowProject(false);
}
diff --git a/src/Visual_DVM_2021/Passes/All/TestPass.java b/src/Visual_DVM_2021/Passes/All/TestPass.java
index 7d6b1063..4dd1100c 100644
--- a/src/Visual_DVM_2021/Passes/All/TestPass.java
+++ b/src/Visual_DVM_2021/Passes/All/TestPass.java
@@ -1,5 +1,11 @@
package Visual_DVM_2021.Passes.All;
import Visual_DVM_2021.Passes.Pass_2021;
+import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import org.apache.poi.ss.usermodel.*;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.util.Date;
public class TestPass extends Pass_2021 {
@Override
protected boolean needsAnimation() {
@@ -7,6 +13,36 @@ public class TestPass extends Pass_2021 {
}
@Override
protected void body() throws Exception {
+ File file = new File("kek.xls");
//--
+ Workbook book = new HSSFWorkbook();
+ Sheet sheet = book.createSheet("Birthdays");
+
+ // Нумерация начинается с нуля
+ Row row = sheet.createRow(0);
+
+ // Мы запишем имя и дату в два столбца
+ // имя будет String, а дата рождения --- Date,
+ // формата dd.mm.yyyy
+ Cell name = row.createCell(0);
+ name.setCellValue("John");
+
+ Cell birthdate = row.createCell(1);
+
+ DataFormat format = book.createDataFormat();
+ CellStyle dateStyle = book.createCellStyle();
+ dateStyle.setDataFormat(format.getFormat("dd.mm.yyyy"));
+ birthdate.setCellStyle(dateStyle);
+
+
+ // Нумерация лет начинается с 1900-го
+ birthdate.setCellValue(new Date(110, 10, 10));
+
+ // Меняем размер столбца
+ sheet.autoSizeColumn(1);
+
+ // Записываем всё в файл
+ book.write(new FileOutputStream(file));
+ book.close();
}
}