Skip to content

Commit

Permalink
debuug
Browse files Browse the repository at this point in the history
  • Loading branch information
ArashST79 committed Jul 28, 2020
1 parent a56f918 commit ec29da6
Show file tree
Hide file tree
Showing 12 changed files with 126,330 additions and 451 deletions.
604 changes: 153 additions & 451 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private ArrayList<CustomChatMessages> createChatBoxes() {
}

public void sendNewMessage(ActionEvent actionEvent) {
refreshing(null);
String newText = messageArea.getText();
if (newText.equals("")) {
Alert alert = new Alert(Alert.AlertType.ERROR);
Expand All @@ -74,6 +75,7 @@ public void sendNewMessage(ActionEvent actionEvent) {
}

public void offerANewBid(ActionEvent actionEvent) {
refreshing(null);
try {
int newBid = Integer.parseInt(setHigherPriceField.getText());
if (newBid <= Auction.currentAuction.getProposedMoney()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import Client.GraphicView.CustomAuctionBox;
import Client.Model.Auction;
import Client.Model.ManageInfo;
import Client.Model.TimeMachine;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.ScrollPane;
Expand Down
24 changes: 24 additions & 0 deletions Java/candyMarket/src/main/java/Client/Model/TimeMachine.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
package Client.Model;

import javafx.application.Platform;
import javafx.fxml.Initializable;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.Pane;

public class TimeMachine {
public static class reloadPageThread extends Thread{
Initializable initializable ;
public reloadPageThread(Initializable initializable){
this.initializable = initializable;
}
@Override
public void run() {
while (true) {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
Platform.runLater(() -> {
initializable.initialize(null, null);
});
}
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Java/candyMarket/target/classes/Client/Model/TimeMachine.class
Binary file not shown.
126,150 changes: 126,150 additions & 0 deletions hs_err_pid30604.log

Large diffs are not rendered by default.

Binary file modified mydb.db
Binary file not shown.

0 comments on commit ec29da6

Please sign in to comment.