• R/O
  • HTTP
  • SSH
  • HTTPS

DelesteRandomSelector: Commit

開発Git


Commit MetaInfo

Revision2619d618c9dc4191d85d88535489088b4a8bfde8 (tree)
Time2021-08-24 00:03:16
Authorhizumiaoba <56146205+hizumiaoba@user...>
Commiterhizumiaoba

Log Message

fix: add scroll bar if textarea is full

Change Summary

Incremental Difference

--- a/database.json
+++ b/database.json
@@ -11372,7 +11372,7 @@
1137211372 }, {
1137311373 "attribute" : "クール",
1137411374 "name" : "Just Us Justice",
11375- "difficulty" : "MASTER+",
11375+ "difficulty" : "ⓁMASTER+",
1137611376 "level" : 29,
1137711377 "notes" : 999
1137811378 }, {
@@ -11939,5 +11939,41 @@
1193911939 "difficulty" : "MASTER",
1194011940 "level" : 25,
1194111941 "notes" : 596
11942+ }, {
11943+ "attribute" : "全タイプ",
11944+ "name" : "リトルリドル",
11945+ "difficulty" : "LIGHT",
11946+ "level" : 7,
11947+ "notes" : 165
11948+ }, {
11949+ "attribute" : "全タイプ",
11950+ "name" : "リトルリドル",
11951+ "difficulty" : "TRICK",
11952+ "level" : 17,
11953+ "notes" : 410
11954+ }, {
11955+ "attribute" : "全タイプ",
11956+ "name" : "Wonder goes on!!",
11957+ "difficulty" : "LIGHT",
11958+ "level" : 8,
11959+ "notes" : 171
11960+ }, {
11961+ "attribute" : "全タイプ",
11962+ "name" : "Wonder goes on!!",
11963+ "difficulty" : "TRICK",
11964+ "level" : 17,
11965+ "notes" : 426
11966+ }, {
11967+ "attribute" : "クール",
11968+ "name" : "Just Us Justice",
11969+ "difficulty" : "MASTER+",
11970+ "level" : 29,
11971+ "notes" : 999
11972+ }, {
11973+ "attribute" : "クール",
11974+ "name" : "初夢をあなたと",
11975+ "difficulty" : "MASTER+",
11976+ "level" : 28,
11977+ "notes" : 803
1194211978 } ]
1194311979 }
\ No newline at end of file
--- a/settings.json
+++ b/settings.json
@@ -3,7 +3,7 @@
33 "checkLibraryUpdates" : true,
44 "windowWidth" : 640,
55 "windowHeight" : 360,
6- "songLimit" : 3,
6+ "songLimit" : 15,
77 "saveScoreLog" : false,
88 "outputDebugSentences" : true
99 }
\ No newline at end of file
--- a/src/com/ranfa/main/DelesteRandomSelector.java
+++ b/src/com/ranfa/main/DelesteRandomSelector.java
@@ -23,8 +23,9 @@ import javax.swing.JFrame;
2323 import javax.swing.JLabel;
2424 import javax.swing.JOptionPane;
2525 import javax.swing.JPanel;
26+import javax.swing.JScrollPane;
2627 import javax.swing.JSpinner;
27-import javax.swing.JTextPane;
28+import javax.swing.JTextArea;
2829 import javax.swing.border.EmptyBorder;
2930
3031 import com.jgoodies.forms.layout.ColumnSpec;
@@ -59,7 +60,6 @@ public class DelesteRandomSelector extends JFrame {
5960 private JButton btnImport;
6061 private JButton btnStart;
6162 private JButton btnExit;
62- private JTextPane textPane;
6363 private JComboBox comboDifficultySelect;
6464 private JLabel labelLvCaution;
6565 private JComboBox comboAttribute;
@@ -67,6 +67,9 @@ public class DelesteRandomSelector extends JFrame {
6767 private JButton btnTwitterIntegration;
6868 private String[] integratorArray;
6969 private boolean integratorBool = false;
70+ private JTextArea textArea;
71+
72+ private JScrollPane scrollPane;
7073
7174 /**
7275 * Launch the application.
@@ -273,7 +276,7 @@ public class DelesteRandomSelector extends JFrame {
273276 paneString = paneString + tmp[i];
274277 }
275278 paneString = paneString + "この" + tmp.length + "曲をプレイしましょう!!!";
276- textPane.setText(paneString);
279+ textArea.setText(paneString);
277280 integratorBool = true;
278281 LimitedLog.println("[" + Thread.currentThread().toString() + "]:" + this.getClass() + ":[INFO]: " + "show up completed.");
279282 }
@@ -355,10 +358,12 @@ public class DelesteRandomSelector extends JFrame {
355358 contentPane.add(panelCentre, BorderLayout.CENTER);
356359 panelCentre.setLayout(new BorderLayout(0, 0));
357360
358- textPane = new JTextPane();
359- textPane.setText("楽曲選択の手順\r\n1.難易度、属性、レベルを選択する\r\n2.「楽曲取り込み」ボタンを押す!\r\n3.「開始」ボタンを押す!\r\n4.選択された楽曲がここに表示されます!\r\n現在設定されている楽曲選択の最大数:" + property.getSongLimit());
360- textPane.setEditable(false);
361- panelCentre.add(textPane);
361+ textArea = new JTextArea();
362+ textArea.setText("楽曲選択の手順\r\n1.難易度、属性、レベルを選択する\r\n2.「楽曲取り込み」ボタンを押す!\r\n3.「開始」ボタンを押す!\r\n4.選択された楽曲がここに表示されます!\r\n現在設定されている楽曲選択の最大数:" + property.getSongLimit());
363+ textArea.setEditable(false);
364+
365+ scrollPane = new JScrollPane(textArea);
366+ panelCentre.add(scrollPane, BorderLayout.CENTER);
362367 }
363368
364369
Show on old repository browser