Skip to content

Commit

Permalink
textArea setLineWrap增加了自动换行
Browse files Browse the repository at this point in the history
fixed #35
  • Loading branch information
0Chencc committed Dec 19, 2021
1 parent 58c29e2 commit a08aa03
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'org.ctfcracktools'
version '4.0.2'
version '4.0.3'

buildscript {
ext.kotlin_version = '1.4.10'
Expand Down Expand Up @@ -52,7 +52,6 @@ dependencies {
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
compile group: 'commons-codec', name: 'commons-codec', version: '1.10'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
// https://mvnrepository.com/artifact/com.formdev/flatlaf
compile group: 'com.formdev', name: 'flatlaf', version: '1.6.4'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
Expand Down
2 changes: 1 addition & 1 deletion src/org/ctfcracktools/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static void main(String[] args) {
System.err.println( "Failed to initialize LaF" );
}
String title = "CTFCrackTools %s %s";
String version = "4.0.2";
String version = "4.0.3";
String slogan = "";
JFrame f = new JFrame(String.format(title, version,slogan));
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
Expand Down
3 changes: 3 additions & 0 deletions src/org/ctfcracktools/ui/About.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ private void initComponents() {

//======== scrollPane1 ========
{

//---- textArea1 ----
textArea1.setLineWrap(true);
scrollPane1.setViewportView(textArea1);
}
add(scrollPane1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
Expand Down
6 changes: 6 additions & 0 deletions src/org/ctfcracktools/ui/DecodePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ private void initComponents() {

//======== scrollPane1 ========
{

//---- inputArea ----
inputArea.setLineWrap(true);
scrollPane1.setViewportView(inputArea);
}
add(scrollPane1, new GridBagConstraints(0, 1, 7, 1, 0.0, 0.0,
Expand Down Expand Up @@ -203,6 +206,9 @@ private void initComponents() {

//======== scrollPane2 ========
{

//---- resultArea ----
resultArea.setLineWrap(true);
scrollPane2.setViewportView(resultArea);
}
add(scrollPane2, new GridBagConstraints(0, 4, 7, 1, 0.0, 0.0,
Expand Down

0 comments on commit a08aa03

Please sign in to comment.