hello guyz,,do you know best sites to recommend that has a tutorials on "swing" about:
a.) sample writing a file on "text file"
b.) the saved text file will be read by the main class in JOptionPane (java file)

actually, i has on it on bufferedreader,,but i really like to use JOptionPane,,do it has something like this???i hope you can help me guyzz,,thank you!!

9 Years
Discussion Span
Last Post by peter_budo

actually this is how we make it:

we will be saving any texts in a "text file",,example i save in the text file like this:

i think that i shall never see
a poem lovely as a tree

then i save it in "poem.txt"

however,,if we will now start a program,,of course it will be in a "java file",,,i will make a code to read and call the "poem.txt",,so that when i want to output it, the output will be:

i think that i shall never see
a poem lovely as a tree

i only know buffered reader who read the file that i saved "text file"..but does the swing have this??i really want to have it on JOptionPane...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.