String « JList « Java Swing Q&A





1. How could I allow only unique strings in a JList?    stackoverflow.com

I have a JList that holds a bunch of strings . I would like it to act like a Set , so that it will only hold unique values . Is ...

2. string wont send to JList    java-forums.org

string wont send to JList hey guys im not quicke sure this progrom wont send the string "result" to the JList, something im doing wrong? any help would be great thanks import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.*; import java.io.*; import javax.swing.*; import java.sql.Array; import java.text.*; public class Q3 implements ActionListener { JFrame addressBook; JFrame contacts; JList theList; ...

3. Getting a String from a JList    forums.oracle.com

Hey, finally beginning to understand Java a bit better now. But trying to pull a string from a Jlist and can only seem to get the index of it. I have a list (finally) of Files in a directory and I want the user to be able to click on a file from the list and it to populate a string ...