Differences
This shows you the differences between two versions of the page.
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 '' | To programmatically populate the list models of a JList called '' | ||
<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: |