I have a JList that lists files in a certain directory, i cannot get it to setLocation or setSize.
import java.awt.*; import java.swing.*; public class b extends JFrame ... ...Gets what the list disaplys.... <initiated JList> list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); list.setSize(575, 375); //no matter what parameters i put in its always center list.setVisibleRowCount(15); add (new JScrollPane(list));
its the same way with a button...