How do I go about displaying all the lines from the file in one output box?
Concatenate the lines together separated by new line characters (\n)
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Remove the lines from the array.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Write a loop that goes thru the array and gets its elements one at a time and concatenates that element to the String to be shown in the JOptionPane.
After the loop ends, show the String.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Post the code that shows what you are doing.
Do you know how to concatenate Strings?
aString += "add this to the String";
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224