https://github.com/msh-trojan/java_21_words_frame_1
A program showing how to work with another JFrame variable, JTextArea.
https://github.com/msh-trojan/java_21_words_frame_1
graphics gui-components java jframe jtextarea
Last synced: 2 months ago
JSON representation
A program showing how to work with another JFrame variable, JTextArea.
- Host: GitHub
- URL: https://github.com/msh-trojan/java_21_words_frame_1
- Owner: MSH-trojan
- Created: 2024-08-23T23:48:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T23:52:27.000Z (10 months ago)
- Last Synced: 2024-08-24T00:50:48.537Z (10 months ago)
- Topics: graphics, gui-components, java, jframe, jtextarea
- Language: Java
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java_21_Words_Frame_1
With the output text in a textarea the focus is on building a long string to be fed to the JTextArea constructor.
In **Words.java** (another Repo) each line is created by using *System.out.println()*.
In **WordsFrame.java** we have a textarea containing a single string s with all lines of output:
To build s we have to concatenate each output line with *s += output line*
Each output line should contain the special character “*\n*” (i.e. go to the next line).