なにがやりたいのかがわからない。 JListに表示したいのならば、JListに追加する。 actionPerfomedの中は、 int n = (new Integer(f1.getText())).intValue(); Vector primeList = new Vector(); for (int i = 2; i <= n; ++i) { if(i が 素数) primeList.add(new Integer(i)); } l1.setListData(primeList); こんな感じだ。