|
|
|
@ -15,7 +15,7 @@ public class Main_HomePage extends JFrame { |
|
|
|
*/ |
|
|
|
public Main_HomePage() { |
|
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
|
setBounds(100, 100, 271, 358); |
|
|
|
setBounds(100, 100, 300, 500); |
|
|
|
contentPane = new JPanel(); |
|
|
|
contentPane.setBackground(new Color(0, 0, 51)); |
|
|
|
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); |
|
|
|
@ -24,11 +24,11 @@ public class Main_HomePage extends JFrame { |
|
|
|
|
|
|
|
JPanel panel = new JPanel(); |
|
|
|
panel.setBackground(new Color(0, 0, 51)); |
|
|
|
panel.setBounds(50, 31, 155, 249); |
|
|
|
panel.setBounds(50, 31, 250, 400); |
|
|
|
contentPane.add(panel); |
|
|
|
panel.setLayout(null); |
|
|
|
|
|
|
|
JButton btnMovies = new JButton("Movie"); |
|
|
|
JButton btnMovies = new JButton("Add a Movie"); |
|
|
|
btnMovies.addActionListener(new ActionListener() { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
MoviesFrame m=new MoviesFrame(); |
|
|
|
@ -39,10 +39,10 @@ public class Main_HomePage extends JFrame { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
btnMovies.setBounds(27, 41, 89, 23); |
|
|
|
btnMovies.setBounds(10, 60, 180, 23); |
|
|
|
panel.add(btnMovies); |
|
|
|
|
|
|
|
JButton btnStar = new JButton("Star"); |
|
|
|
JButton btnStar = new JButton("Add a Star"); |
|
|
|
btnStar.addActionListener(new ActionListener() { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
StarsFrame s=new StarsFrame(); |
|
|
|
@ -53,10 +53,10 @@ public class Main_HomePage extends JFrame { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
btnStar.setBounds(27, 90, 89, 23); |
|
|
|
btnStar.setBounds(10, 90, 180, 23); |
|
|
|
panel.add(btnStar); |
|
|
|
|
|
|
|
JButton btnRatings = new JButton("Ratings"); |
|
|
|
JButton btnRatings = new JButton("Add Rating"); |
|
|
|
btnRatings.addActionListener(new ActionListener() { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
RatingsFrame r=new RatingsFrame(); |
|
|
|
@ -68,8 +68,58 @@ public class Main_HomePage extends JFrame { |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
btnRatings.setBounds(27, 145, 89, 23); |
|
|
|
btnRatings.setBounds(10, 120, 180, 23); |
|
|
|
panel.add(btnRatings); |
|
|
|
|
|
|
|
JButton btnShowMovieId = new JButton("Show Movie Id"); |
|
|
|
btnShowMovieId.addActionListener(new ActionListener() { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
// TODO |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
btnShowMovieId.setBounds(10, 150, 180, 23); |
|
|
|
panel.add(btnShowMovieId); |
|
|
|
|
|
|
|
JButton btnWatchMovieId = new JButton("Watch Movie By Id"); |
|
|
|
btnWatchMovieId.addActionListener(new ActionListener() { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
// TODO |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
btnWatchMovieId.setBounds(10, 180, 180, 23); |
|
|
|
panel.add(btnWatchMovieId); |
|
|
|
|
|
|
|
JButton btnShowMoviePoster = new JButton("Show Movie Poster"); |
|
|
|
btnShowMoviePoster.addActionListener(new ActionListener() { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
// TODO |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
btnShowMoviePoster.setBounds(10, 210, 180, 23); |
|
|
|
panel.add(btnShowMoviePoster); |
|
|
|
|
|
|
|
JButton btnShowHighRatedMovie = new JButton("Show Highest Rated Movie"); |
|
|
|
btnShowHighRatedMovie.addActionListener(new ActionListener() { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
// TODO |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
btnShowHighRatedMovie.setBounds(10, 240, 220, 23); |
|
|
|
panel.add(btnShowHighRatedMovie); |
|
|
|
|
|
|
|
JButton btnShowMoviesForStar = new JButton("Show Movies For Star"); |
|
|
|
btnShowMoviesForStar.addActionListener(new ActionListener() { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
// TODO |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
btnShowMoviesForStar.setBounds(10, 270, 180, 23); |
|
|
|
panel.add(btnShowMoviesForStar); |
|
|
|
|
|
|
|
JButton btnLogout = new JButton("Logout"); |
|
|
|
btnLogout.addActionListener(new ActionListener() { |
|
|
|
@ -82,7 +132,7 @@ public class Main_HomePage extends JFrame { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
btnLogout.setBounds(27, 198, 89, 23); |
|
|
|
btnLogout.setBounds(10, 350, 180, 23); |
|
|
|
panel.add(btnLogout); |
|
|
|
} |
|
|
|
} |