2-APL UPC project.
0
fork

Configure Feed

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

minor change i cannot remmeber

fdesan 2b009dcb a80a821a

+7 -36
+2 -1
code/2apl_platform/environments/cardtable/Env.java
··· 356 356 357 357 358 358 // Print a message to the console 359 - static public void writeToLog(String message) { 359 + public void writeToLog(String message) { 360 360 System.out.println("cardtable: " + message); 361 + table.writeLog(message); 361 362 } 362 363 363 364 // helper function to wrap a boolean value inside a ListPar.
+5 -35
code/2apl_platform/environments/cardtable/Table.java
··· 50 50 } 51 51 52 52 53 - 54 - 55 - 56 - 57 53 Info = new JTextArea(5,00); 58 54 Info.setEditable(false); 59 - Info.append("Player1 has connected \n"); 60 - Info.append("Player2 has connected \n"); 61 - Info.append("Player3 has connected \n"); 62 - Info.append("Player4 has connected \n"); 63 - Info.append("Player5 has connected \n"); 64 - Info.append("Game Started! \n"); 65 - Info.append("Bidding Started! \n"); 66 - Info.append("Player 1 Bids.... \n"); 67 - Info.append("You get the point Fab \n"); 68 - 69 55 GameInfo = new JScrollPane(Info); 70 56 71 57 VerticalSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, ··· 154 140 c.gridy = 0; 155 141 c.gridwidth = 2; 156 142 pane.add(P1Bid, c); 157 - 158 - 159 - 160 - 161 143 162 144 //1st Card 163 145 JButton P1C1 = new JButton(Image); ··· 589 571 c9.gridx = 7; 590 572 c9.gridy = 9; 591 573 pane.add(P5C8, c9); 592 - 593 - 594 - 574 + } 595 575 596 576 597 - /* 598 - button = new JButton("5"); 599 - c.fill = GridBagConstraints.HORIZONTAL; 600 - c.ipady = 0; //reset to default 601 - c.weighty = 1.0; //request any extra vertical space 602 - c.anchor = GridBagConstraints.PAGE_END; //bottom of space 603 - c.insets = new Insets(10,0,0,0); //top padding 604 - c.gridx = 1; //aligned with button 2 605 - c.gridwidth = 2; //2 columns wide 606 - c.gridy = 2; //third row 607 - pane.add(button, c); 608 - * */ 609 - 610 - } 577 + public void writeLog(String text) { 578 + Info.append(text+"\n"); 579 + Info.setCaretPosition(Info.getDocument().getLength()); 580 + } 611 581 } 612 582 613 583