Answers for "set the content of a Jlist from an other Jlist (Swing)"

0

set the content of a Jlist from an other Jlist (Swing)

DeafaultListModel m = new DeafaultListModel(); // the content of the Jlist is set in a a "model" 
// to select from a List
String data=Jlist.GetSelectedValue.toString() ;
m.add(data); 
JlistNum2.setModel(m) ;
Posted by: Guest on April-30-2022

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language