How to write the contents of JList into a text file. i have a JList and i want to add the list elements to a text file.
How to do this?
have you already solved it? if not, why did you mark it solved?
I assume you know how to get the contents from the JList, so your problem must lie in the writing to the txt file part.
this is a good place to start reading up on that.
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.