Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
swdev:java:component:jlist [2017/09/29 16:33]
smayr
swdev:java:component:jlist [2017/09/29 16:33] (current)
smayr
Line 3: Line 3:
 To programmatically populate the list models of a JList called ''lstNames'': To programmatically populate the list models of a JList called ''lstNames'':
 <code java> <code java>
 +import javax.swing.DefaultListModel;
 +import javax.swing.JList;
 +//...
 +
     private void btnTestActionPerformed(java.awt.event.ActionEvent evt) {                                             private void btnTestActionPerformed(java.awt.event.ActionEvent evt) {                                        
         // TODO add your handling code here:         // TODO add your handling code here: