The project written in Java and we use JFrame for the interface. It also uses MySQL database to save the data which are consist of cars are in the park and some settings of program like admin password, personal password and the hourly price. As I mentioned above, we have written this project for our Software Engineering course's term project at (Kadir Has University). So, it is not an advance programmed but useful and helpful example to use MySQL, JFrame so and so forth for someone who wants and deserves to learn Java.
Important: You have to setup any MySQL program to use it.
- In PHPMyAdmin, import the .sql file thats name is
carpark.sql
. - Open the project with NetBeans or Eclipse.
- On the menu of
Run
, select thecompile and run
. - Go to
Project Folder
>dist
, double clickCarPark.jar
. - Thats it!
- Open
Automator
- Create new file
- Select
Application
- On the second panel from the left, click
Run AppleScript
- Copy and paste the code below and save it
- Go to .app file that is created by Automator
- Right click,
show package content
- Double click the
Contents
file - Create new folder as
Java
- Copy the project's dist folder to
Java
folder - Thats it!
Code:
on run {input, parameters}
set p to POSIX path of (path to me)
do shell script "java -jar " & p & "/Contents/Java/CarPark.jar"
end run