Package net.sf.nebulacards.ui.cards

Examples of net.sf.nebulacards.ui.cards.Card


      }
    }
    layout.setColumns(num);
    // add new buttons
    for (int i = numButtons; i < num; i++) {
      buttons[i] = new Card();
      buttons[i].addMouseListener(this);
      hand[i] = null;
      add(buttons[i]);
    }
    numButtons = num;
View Full Code Here


   */
  public void mouseClicked(MouseEvent e) {
    PlayingCard c = null;
    Object src = e.getSource();
    if (src instanceof Card) {
      Card card = (Card) src;
      for (int i = 0; i < numButtons; i++) {
        if (card == buttons[i]) {
          c = hand[i];
          // System.out.println( "Selected card: " + c );
          break;
View Full Code Here

    // at the top of the table.
    final int[][] positions = { { 2, 3, 0, 1 }, { 3, 0, 1, 2 },
        { 0, 1, 2, 3 }, { 1, 2, 3, 0 } };

    for (int j = 0; j < 4; j++) {
      tableau[j] = new Card();
      tableau[j].setCard(null);
      tableau[j].setForeground(fgColor);
      tableau[j].setBackground(tableColor);
      tableau[j].repaint();
    }
View Full Code Here

TOP

Related Classes of net.sf.nebulacards.ui.cards.Card

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.