Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
swdev:java:component:jlist [2017/09/29 16:32] smayr |
swdev:java:component:jlist [2017/09/29 16:33] (current) smayr |
||
---|---|---|---|
Line 1: | Line 1: | ||
= JList = | = JList = | ||
- | 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: |