2-APL UPC project.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

updatebid refixed again

fdesan dfa2a828 f9a2d338

+9 -3
+9 -3
code/2apl_platform/environments/cardtable/Table.java
··· 70 70 HorizontalSplitPlane.setDividerLocation(600); 71 71 72 72 getContentPane().add(HorizontalSplitPlane); 73 - setVisible( true ); 73 + pack(); 74 + setSize( 1024, 768 ); 75 + setVisible( true ); 74 76 } 75 77 76 78 public void playCard(String name, int position) { ··· 102 104 cardsPane[position].add(new JLabel(cardBack)); 103 105 cardsPane[position].add(new JLabel(cardBack)); 104 106 cardsPane[position].add(new JLabel(cardBack)); 107 + 108 + setVisible( true ); 105 109 } 106 110 107 111 public void updateScore(String name, int position, int score) { 108 112 Integer scoreInt = new Integer(score); 109 113 JLabel scoreLab = (JLabel) playersPane[position].getComponent(4); 110 - scoreLab.setText(scoreInt.toString()); 114 + scoreLab.setText("Score: "+scoreInt.toString()); 115 + setVisible( true ); 111 116 } 112 117 113 118 public void updateBid(String name, int position, int bid) { 114 119 Integer bidInt = new Integer(bid); 115 120 JLabel bidLab = (JLabel) playersPane[position].getComponent(2); 116 - bidLab.setText(bidInt.toString()); 121 + bidLab.setText("Bid: "+bidInt.toString()); 122 + setVisible( true ); 117 123 } 118 124 119 125 public void writeLog(String text) {