diff options
author | Przemysław R. Pietraszczyk <prymula76@outlook.com> | 2024-09-21 21:08:02 +0200 |
---|---|---|
committer | Przemysław R. Pietraszczyk <prymula76@outlook.com> | 2024-09-21 21:08:02 +0200 |
commit | 5f063db194796565fcce9725dbf7aa5c4b6ca683 (patch) | |
tree | aa45ecf30d06e3ecffbbd5b606e6f99062a6c7df | |
parent | 18e499686d1c9991b65dc79272038b291bc14c5d (diff) |
Spec file fix, language fix
-rw-r--r-- | RPM/colorsmemory.spec | 17 | ||||
-rw-r--r-- | build.xml | 2 | ||||
-rw-r--r-- | src/ColorsMemory.java | 10 |
3 files changed, 18 insertions, 11 deletions
diff --git a/RPM/colorsmemory.spec b/RPM/colorsmemory.spec index 0a92fb1..b948f7f 100644 --- a/RPM/colorsmemory.spec +++ b/RPM/colorsmemory.spec @@ -21,15 +21,22 @@ Version: 0.210503 Release: 2 Summary: My implementation Memory game License: GPL -URL: https://prymula.ct8.pl +URL: https://pietraszczyk.smallhost.pl Source0: %{name}-%{unmangled_version}.tar.gz -%if 0%{?suse_version}==1530 + +%if 0%{?suse_version} > 1600 +BuildRequires: java-21-openjdk, ant +Requires: java-21-openjdk +%endif +%if 0%{?sle_version} >= 150400 && 0%{?is_opensuse} BuildRequires: java-11-openjdk, ant Requires: java-11-openjdk -%else -BuildRequires: java-11-openjdk, ant -Requires: java-11-openjdk %endif +%if 0%{?fedora} >= 37 +BuildRequires: java-latest-openjdk, ant +Requires: java-latest-openjdk +%endif + BuildArch: noarch %description @@ -6,7 +6,7 @@ <target name="compile"> <mkdir dir="build/classes"/> - <javac srcdir="src" destdir="build/classes"/> + <javac srcdir="src" encoding="UTF-8" destdir="build/classes"/> </target> <target name="jar"> diff --git a/src/ColorsMemory.java b/src/ColorsMemory.java index 0e11fef..271ddd2 100644 --- a/src/ColorsMemory.java +++ b/src/ColorsMemory.java @@ -54,13 +54,13 @@ public class ColorsMemory extends JPanel menuItem = new JMenuItem("Nowa Gra", null);
menuItem.setActionCommand("NewGame");
menuItem.addActionListener(this);
- menuItem.setToolTipText("Rozpoczyna nowa gre");
+ menuItem.setToolTipText("Rozpoczyna nową grę");
menu.add(menuItem);
menu.addSeparator();
- menuItem = new JMenuItem("Zakoncz", null);
+ menuItem = new JMenuItem("Zakończ", null);
menuItem.setActionCommand("Exit");
menuItem.addActionListener(this);
- menuItem.setToolTipText("Wyjscie z programu");
+ menuItem.setToolTipText("Wyjście z programu");
menu.add(menuItem);
menuItem = new JMenuItem("O Programie", null);
menuItem.setActionCommand("About");
@@ -205,7 +205,7 @@ public class ColorsMemory extends JPanel else if(e.getActionCommand().equals("About")) {
JOptionPane.showMessageDialog(frame,
- "Moja implementacja gry Memory\nPrzemyslaw R. Pietraszczyk\nStworzono w oparciu o OpenJDK\nSierpien 2019",
+ "Moja implementacja gry Memory\nPrzemysław R. Pietraszczyk\nStworzono w oparciu o OpenJDK\nSierpien 2019",
"Colors Memory 0.210503-0",
JOptionPane.PLAIN_MESSAGE);
@@ -295,7 +295,7 @@ public class ColorsMemory extends JPanel }
else {
JOptionPane.showMessageDialog(frame,
- "Wykonales "+nmove+" posuniec",
+ "Wykonałeś "+nmove+" posunięć",
"Podsumowanie",
JOptionPane.PLAIN_MESSAGE);
nFields=1; // aby nie wyswietlalo drugi raz
|