Skip to content

This is a live cricket score-board JavaFX application with mySql database.

Notifications You must be signed in to change notification settings

ashik5757/ScoreBoard-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Cricket Scoreboard Project

This is a JavaFX application with mySql database. This application can be use in cricket match to update the score of the match and store all the match info in mySql database.


Features

  • User can start a new match every time after finish a match.
  • User can choose the number of overs.
  • User can set the two team names and players name as well.
  • AutoTextFill - team and player names will be suggested in textfield option.
  • User can set the team which is going to bat first and also set the striker and non-striker.
  • Live visualize of the scoreboard with control panel
  • Update any type of run (by bat or Extra) by clicking button or by choose from the option
  • User can switch the sticker batsman.
  • Update wide ball or no ball.
  • User can set the bowler.
  • User can set the outed batsman.
  • Update out type and out info by choice option.
  • Update new batsman.
  • Save all the match info in the database.
  • User can view the saved match data in the database inside the application.
  • User can search the player’s name in match info.

Tools Used :

  • Java [JDK 16.0.1]
  • IntelliJ IDEA
  • SceneBuilder
  • XAMPP

Setup (JAR) :

  • Tools required :

    • Java [JDK 8+]
    • MySql database (XAMPP Recommended)

Just download the latest jar file from release tag and run it by JVM. (Make sure mySql database is running in the background)


Setup (IDE) :

  • Tools required :

    • Java [JDK 16.0.1] or Latest
    • IntelliJ IDEA
    • MySql database (XAMPP Recommended)

  • Download :

    • JavaFX (sdk-16 or Latest)
    • JDBC (mysql-connector-java-8.0.26 or Latest)
    • ControlFX (controlsfx-11.1.0 or Latest)

JDBC and ControlFX files are available in Config folder.


  • Process :

    • Run MySql database. (XAMPP Recommended)
    • Open new project in IntelliJ IDEA.
    • Attach lib folder directory of javafx-sdk to Libraries in project structure.
    • Attach JDBC and ControlFX jar file in module dependency in project structure.
    • Download the zip file of the code and put all the code files/folder in src folder. [ ClassFile, DatabaseFile, FXML_FIle, TableViewFiles, FakeLauncher.java, LaunchApp.java ]
    • Put all the files of data folder outside of the src folder. (In main project directory)
    • Now run the FakeLauncher.java or LaunchApp.java.

If the program does not run and shows an error like following line, then update the VM option in run configuration.

Error: JavaFX runtime components are missing, and are required to run this application

Go to the Run -> Edit Configurations... of FakeLauncher.java or LaunchApp.java and paste the following line in Add VM option from Modify option.

--module-path
"F:\Download\Soft\Java\JavaFx\javafx-sdk-16\lib"
--add-modules
javafx.controls,javafx.fxml
--add-exports
javafx.base/com.sun.javafx.event=ALL-UNNAMED

NOTE : Must change the directory path for javafx-sdk-16\lib.


It is better to add VM option in run config to omit unnecessary error :

WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @4b7d8551'

Developed by :

  • Md. Iftekhar Hossain Khan

  • Nur Adnan Chowdhury Anik

  • Md. Ashikur Rahman


Screenshot of Functionalities :


  • Homepage :

    • New Match : User can start a new match every time after finish a match.
    • Saved Match : After complete a match, all match data will be visible in saved match option from database.
    • EXIT : Programme will terminate.


  • Over-option Selection :

    • 5-Over
    • 10-Over
    • T-20
    • ODI


HomePage Button : User can go to the homepage from that scene wherever this button is available.


  • Team and all player name :

    • User can input all the team and players names which will be use in further step.
    • Team names and player names will be suggested in textfield. (The new name will be saved in a text file and will use in the future)
    • User don’t have to input anything in further step.


  • Set Batsman Option :

    • Batting Team : User can select the team which team will be bat first.
    • Striker : User can select the striker batsman.
    • Non-Striker : User can select the non-striker batsman.


  • Live visualize of the scoreboard with control panel :

    • Total
    • Extra
    • CRR (Current Run Rate)
    • Over


Control Panel : User can control everything about the match.


  • Update Run :

    • 1,2,3 Button : These buttons are for single, two and three runs.
    • 4 & 6 Button : These buttons will update the number of four and six of striker batsman as well updating the run info.
    • No Run Button : This button will only increase the number of total ball played.
    • Select Run Option : If the fielders throws the ball while the taking the single and it pass the boundary as bye four, then batsman will get 5 runs and bowler will the same run as well.
      Similarly, as 6 and 7 run batsman and bowler will get the same run.
    • Extra Run : This button will update only extra run. It will not update the number of total ball played.

By pressing these button batsman, bowlers and total run will update automatically along with increasing the total counted ball.


  • Switch-No-Wide :

    • Switch Batsman : This button will change the striker batsman.
    • Wide Ball : This button will add one extra run and increase the number of wide ball of the bowler.
    • No Ball : This button will add one extra run and increase the number of no ball of the bowler.


  • Update bowler :

User can change the current bowler anytime by selecting the bowler name and clicking the Set Bowler button. Programme will give an alert every time after finish an over.


  • Update the outed batsman :

In this option there will be two batsman name, striker and non-striker. User can select one of them and by selecting out button, selected batsman will be out.


  • Update out type and out info :

Out Type : There will 5 types of out which are Bowled, LBW, Run Out, Catch Out and Stamp. Out by player option will be only enable if out type is Run out, catch out or stamp out.

  • Update Out by player :

Update the player name who got the catch or stamped or throws the ball for run out.


  • Update new batsman :

User can select the next batsman and add the batsman to the scoreboard.


  • 2nd Innings Confirmation :

After complete first innings, user will lose the access of the control panel and programme will force the user to go to next scene.


  • 2nd Innings scoreboard :

    • Target
    • RRR (Required Run Rate)
    • Information about remaining run and ball


  • Match End confirmation:

User will lose the access of control panel after completing 2nd innings and programme will force the user to go to homepage.


Also, the match info will be stored in database as two team names with date.


  • Saved Match :

In this option, user can select any saved match to see the all match data stored in the database.


  • Match Data from the Database :

After completing a match, 1st and 2nd innings match info will be stored in the database and in the saved match option, user can see all the match info of 1st and 2nd innings together.


  • Search option :

User can search any player by their name. Only searched player will be visible in the specific table if the searched name match with any player name.


  • WARNING :


Same batsman selection warning :


Same bowler selection warning :


Click the submit button without select any option :


Empty text field Warning :