Skip to content

Commit f803dd0

Browse files
committed
final?
1 parent 80fb3dc commit f803dd0

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
11
# Java_OMDbAPI
22

3+
Java application to query movie information.
4+
5+
The API used is from OMDb. //Get your key here:
6+
http://www.omdbapi.com/
7+
8+
# About
9+
10+
This project was developed as a need of mine to learn to developed and handle HTTP requisitions with Java.
11+
This is a Maven Java Project.
12+
Swing was used to build a user-friendly GUI.
13+
14+
3 dependencies has been used:
15+
com.squareup.okhttp3 -- To get the API's response
16+
org.json -- To transform the API's Response into a JSON
17+
com.jayway.jsonpath -- To get values from the JSON
18+
19+
A separate class was created (MyPrivateKey.java) to hide my API key that is used in Main.java
20+
21+
22+
# Screenshots
23+
24+
## `Main page`
25+
![all-text](https://github.com/bispo-daniel/Java_OMDbAPI/blob/main/src/Screenshots/MainPageScreenshot.png)
26+
27+
## `Query page`
28+
![all-text](https://github.com/bispo-daniel/Java_OMDbAPI/blob/main/src/Screenshots/QueryPageScreenshot.png)
7.5 KB
Loading
18.9 KB
Loading

src/projectPack/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static void menu() throws IOException {
9090
String key = myPrivateKey.KEY;
9191
String URL = "http://www.omdbapi.com/?t=%s&apikey=%s";
9292

93-
String dialog = "Welcome to the Java Movie App!!\n\nType a movie title\nType 0 to exit";
93+
String dialog = "Welcome to the Java Movie App!!\n\nType a Movie Title\nType 0 to exit";
9494
String query = JOptionPane.showInputDialog(null, dialog);
9595

9696
if (query.equals("0")) {

0 commit comments

Comments
 (0)