Skip to content

A program showing how to work with another JFrame variable, JTextArea.

Notifications You must be signed in to change notification settings

MSH-trojan/Java_21_Words_Frame_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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).

About

A program showing how to work with another JFrame variable, JTextArea.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages