Browse Source

added todo items

master
mac 3 years ago
parent
commit
4db12a3e61
6 changed files with 23 additions and 5 deletions
  1. BIN
      Favorite_Movies/bin/Main_HomePage$1.class
  2. BIN
      Favorite_Movies/bin/Main_HomePage$2.class
  3. BIN
      Favorite_Movies/bin/Main_HomePage$3.class
  4. BIN
      Favorite_Movies/bin/Main_HomePage$4.class
  5. BIN
      Favorite_Movies/bin/Main_HomePage.class
  6. 28
      Favorite_Movies/src/Main_HomePage.java

BIN
Favorite_Movies/bin/Main_HomePage$1.class

BIN
Favorite_Movies/bin/Main_HomePage$2.class

BIN
Favorite_Movies/bin/Main_HomePage$3.class

BIN
Favorite_Movies/bin/Main_HomePage$4.class

BIN
Favorite_Movies/bin/Main_HomePage.class

28
Favorite_Movies/src/Main_HomePage.java

@ -74,7 +74,11 @@ public class Main_HomePage extends JFrame {
JButton btnShowMovieId = new JButton("Show Movie Id");
btnShowMovieId.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// TODO
// TODO 1: add a new frame class to display a form
// form should have a text field to enter the movie title
// and a button
// on clicking the button, it should call Database.findMovieId(title)
// and display the movie id if found, or else an error message
}
});
@ -84,7 +88,11 @@ public class Main_HomePage extends JFrame {
JButton btnWatchMovieId = new JButton("Watch Movie By Id");
btnWatchMovieId.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// TODO
// TODO 2: add a new frame class to display a form
// form should have a text field to enter the movie id and a button
// upon entering a valid movie id and clicking the button
// it should call Database.incNumWatched(movieId)
// This function will increase the number of times the movie with that id is watched in the file
}
});
@ -94,7 +102,9 @@ public class Main_HomePage extends JFrame {
JButton btnShowMoviePoster = new JButton("Show Movie Poster");
btnShowMoviePoster.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// TODO
// TODO 3: add a frame class to display a form
// this form will have a text field and an image control and button
// when a id is entered and the button is clicked, it should display the poster for that movie
}
});
@ -104,7 +114,12 @@ public class Main_HomePage extends JFrame {
JButton btnShowHighRatedMovie = new JButton("Show Highest Rated Movie");
btnShowHighRatedMovie.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// TODO
// TODO 4: add a frame class to display a form
// form should have a field to select the genre
// list of genres can be obtained from the Database.getMovieGenres() function
// upon selecting a genre from a dropdown list and clicking the button
// it should call Database.findTopMovieByGenre(String genre)
// this function will search all the records in the file and find the top movies by genre
}
});
@ -114,7 +129,10 @@ public class Main_HomePage extends JFrame {
JButton btnShowMoviesForStar = new JButton("Show Movies For Star");
btnShowMoviesForStar.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// TODO
// TODO 5: add a frame class to display a form
// form should have a text field to take the name of the star
// upon clicking the button, it should call Database.findMoviesForStar(String starName)
// and display a list of movie titles below
}
});

Loading…
Cancel
Save