I need to get my jlist to simply display a one word subject.
When I do it the way below, it obviously prints: "subject: blah location: blah date: blah path: blah."

How can I get to set an JList to simply display the string title of the picture rather than an object[].

itemList.setListData(theList.getArray());

Users will be adding photos to the album and I want it to only display their photo name.
I tried

itemList.add(ss, null)

Recommended Answers

All 2 Replies

there is no enougth information about the "ss" parameter.
can you provide more please!

Yes I apologize. ss is simply the "String subject" that a user puts into the subject JTextArea.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.