splitter.setResizeWeight(0.5);
JPanel topPanel = new JPanel(new BorderLayout());
topPanel.add(new LocalizedJLabel(friendsListViewMessages, "online"), BorderLayout.NORTH);
this.onlineList = new JList<RosterEntry>();
this.onlineList.setCellRenderer(new FriendListItemRenderer());
topPanel.add(new JScrollPane(this.onlineList), BorderLayout.CENTER);
JPanel bottomPanel = new JPanel(new BorderLayout());
bottomPanel.add(new LocalizedJLabel(friendsListViewMessages, "offline"), BorderLayout.NORTH);
this.offlineList = new JList<RosterEntry>();
this.offlineList.setCellRenderer(new FriendListItemRenderer());
bottomPanel.add(new JScrollPane(this.offlineList), BorderLayout.CENTER);
splitter.setTopComponent(topPanel);
splitter.setBottomComponent(bottomPanel);
this.add(splitter,BorderLayout.CENTER);