Can anyone tell me how I can insert some components/ values into JList? I 've being trying all means of loading my JList which can later-on be drag unto a textpane. Can anyone help me please?
+2
A:
Sun has a tutorial on their site that specifically covers using the JList
component.
In its most simple form, you can create an array or Vector
of "stuff" and pass it to the JList
constructor. Each element from the array will be displayed.
Adam Batkin
2009-08-09 18:16:32