Commit 00c9bfe9 authored by Bogdan's avatar Bogdan
Browse files

Silly commit, dumb fix for something that should not occur anyway. (making RPC...

Silly commit, dumb fix for something that should not occur anyway. (making RPC calls before entering multiplayer panels).
parent de6c1341
......@@ -23,18 +23,18 @@ public class LoungeList_SubPanel extends JPanel {
listPanel=new JPanel();
ArrayList<Lounge> lounges = RPCClient.getLoungeList();
for (Lounge lounge:lounges)
{
JPanel loungePanel=PickLoungeSubPanelFactory.createPickLoungeSubPanel(lounge.getName()+" "+(lounge.MAX_PLAYERS-lounge.numberFreeSpots())+"/"+lounge.MAX_PLAYERS,lounge);
listPanel.add(loungePanel);
if (lounges!=null) {
for (Lounge lounge : lounges) {
JPanel loungePanel = PickLoungeSubPanelFactory.createPickLoungeSubPanel(lounge.getName() + " " + (lounge.MAX_PLAYERS - lounge.numberFreeSpots()) + "/" + lounge.MAX_PLAYERS, lounge);
listPanel.add(loungePanel);
}
BoxLayout boxLayout = new BoxLayout(listPanel, BoxLayout.Y_AXIS);
listPanel.setLayout(boxLayout);
JScrollPane scrollPane = new JScrollPane();
scrollPane.getViewport().add(listPanel);
add(scrollPane);
}
BoxLayout boxLayout=new BoxLayout(listPanel,BoxLayout.Y_AXIS);
listPanel.setLayout(boxLayout);
JScrollPane scrollPane = new JScrollPane();
scrollPane.getViewport().add(listPanel);
add(scrollPane);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment