for (int i=0; i<simList.size(); i++)
{
list.addCard(simList.getCard(i).getCard());
}
final CardListPanel listDisplay = new csa.jportal.match.display.CardListPanel();
listDisplay.addPlayerEventListener(new DisplayEventListener()
{
@Override
public void displayEventOccurred(DisplayEvent e)
{
// if rigth click, than show info of current card
if (e.mMessageType == MOUSE_LEFTRELEASED_CARD)
{
Card card = e.mCard;
for (int i=0; i < simList2.size(); i++)
{
if (card.getUniqueID().equals(simList2.getCard(i).getCard().getUniqueID()))
{
CardSim sim = simList2.getCard(i);
showSimCardInfo(sim);
break;
}
}
}
}
});
listDisplay.setShowCards(true);
listDisplay.setOwnScale(true, 80);
listDisplay.setShowCardCardCount(false);
listDisplay.setSinglePackView(false);
listDisplay.setPreferredSize(new Dimension(100, 285));
// listDisplay.setMyPrefferedSize(jPanelvMatchPanel.getSize().width,jPanelvMatchPanel.getSize().height);
listDisplay.setMyPrefferedSize(jPanelvMatchPanel.getSize().width,285);
listDisplay.setHand(list);
listDisplay.scaleChanged();
jPanelvMatchPanel.add(listDisplay, BorderLayout.CENTER);
SwingUtilities.invokeLater(new Runnable() {
public void run()
{
jPanelvMatchPanel.invalidate();