Note that there are some explanatory texts on larger screens.

plurals
  1. POList items = new ArrayList() : it does not work
    primarykey
    data
    text
    <p>Is all in the title, I do not understand the problem this time is a bit different, I used the same Object(List) for two different programs and it does not work in the second time, see :</p> <pre><code>private void jMenuItem23ActionPerformed(java.awt.event.ActionEvent evt) { init_creer_client(); List items = new ArrayList(); items.add("mawren"); items.add("blabla"); items.add("Bonjour"); CL.show(cartes,"creer_client"); } </code></pre> <p>screenshot about the error : <img src="https://i.stack.imgur.com/Dawol.png" alt="enter image description here"></p> <p>by cons here its work smoothly :</p> <pre><code> import java.awt.Dimension; import java.awt.HeadlessException; import java.util.ArrayList; import java.util.List; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField; import org.jdesktop.swingx.autocomplete.AutoCompleteDecorator; public class Test_swingx extends JFrame { public Test_swingx(String title) throws HeadlessException { this.setTitle(title); JPanel pan=new JPanel(); JTextField jtf=new JTextField(); jtf.setColumns(20); List items = new ArrayList(); items.add("hello"); items.add("marwen"); items.add("allooo"); AutoCompleteDecorator.decorate(jtf, items,false); pan.add(jtf); this.setContentPane(pan); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setVisible(true); this.setBounds(280, 150, 500, 200); } public static void main(String[] args) { Test_swingx tsx=new Test_swingx("helloo swingx"); } } </code></pre> <p>can anyone explain to me ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload