Trying to list the nodes in a JList so I can choose one from the list.

I have this code (and a lot more)...

```
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
JPanel row1 = new JPanel();
JPanel row2 = new JPanel();
JLabel flabel = new JLabel("Förbindelse från " + n1 +" till " + n2, JLabel.CENTER);
JScrollPane scroll = new JScrollPane(JLista);
DefaultListModel<Edge<Node>> Jlistan = new DefaultListModel<Edge<Node>>();

List<Edge<Node>> listan = listGraph.getEdgesBetween(n1,n2);
for (Edge<Node> listEdge : listan) {
Jlistan.addElement(listEdge);
}

JLista = new JList<Edge<Node>> (Jlistan);
JLista.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
JLista.setLayoutOrientation(JList.HORIZONTAL_WRAP);
JLista.setVisibleRowCount(5);
JLista.setSize(100, 100);
getJlistVal();

row2.add(scroll);
row1.add(flabel);
add(row1);
add(row2);
}

```

...

```
public Edge<Node> getJlistVal(){
return JLista.getSelectedValue();
}

```

But when listing, i just get a little spot on the Jpanel, i think its a graphical dot, or a very very litte Jlist. :( cant publish a picture yet...

1. I thought it had to do with pixelsize but dont think so??
2. Do i *have* to specify size of the list??
3. The list to be displayed is a generic LIST as type Node. I have a method that i call, is the return type ok?

//thank you

-Help me StackOverflow. You are my only hope...