|
|
|
@ -26,6 +26,17 @@ import java.io.Writer; |
|
|
|
|
|
|
|
public class Movies extends JFrame { |
|
|
|
|
|
|
|
private int MovieId; |
|
|
|
private String Title; |
|
|
|
private int Year; |
|
|
|
private int Length; |
|
|
|
private String Genre; |
|
|
|
private String StudioName; |
|
|
|
private String ProducerName; |
|
|
|
private String ShortDescription; |
|
|
|
private double AvgRating; |
|
|
|
private int NumWatched; |
|
|
|
|
|
|
|
private JPanel contentPane; |
|
|
|
private JTextField tf_mid; |
|
|
|
private JTextField tf_title; |
|
|
|
@ -37,7 +48,68 @@ public class Movies extends JFrame { |
|
|
|
private JTextField tf_shortDesc; |
|
|
|
private JTextField tf_avgrate; |
|
|
|
private JTextField tf_num_watch; |
|
|
|
|
|
|
|
|
|
|
|
public int getMovieId() { |
|
|
|
return MovieId; |
|
|
|
} |
|
|
|
public void setMovieId(int movieId) { |
|
|
|
MovieId = movieId; |
|
|
|
} |
|
|
|
public String getTitle() { |
|
|
|
return Title; |
|
|
|
} |
|
|
|
public void setTitle(String title) { |
|
|
|
Title = title; |
|
|
|
} |
|
|
|
public int getYear() { |
|
|
|
return Year; |
|
|
|
} |
|
|
|
public void setYear(int year) { |
|
|
|
Year = year; |
|
|
|
} |
|
|
|
public int getLength() { |
|
|
|
return Length; |
|
|
|
} |
|
|
|
public void setLength(int length) { |
|
|
|
Length = length; |
|
|
|
} |
|
|
|
public String getGenre() { |
|
|
|
return Genre; |
|
|
|
} |
|
|
|
public void setGenre(String genre) { |
|
|
|
Genre = genre; |
|
|
|
} |
|
|
|
public String getStudioName() { |
|
|
|
return StudioName; |
|
|
|
} |
|
|
|
public void setStudioName(String studioName) { |
|
|
|
StudioName = studioName; |
|
|
|
} |
|
|
|
public String getProducerName() { |
|
|
|
return ProducerName; |
|
|
|
} |
|
|
|
public void setProducerName(String producerName) { |
|
|
|
ProducerName = producerName; |
|
|
|
} |
|
|
|
public String getShortDescription() { |
|
|
|
return ShortDescription; |
|
|
|
} |
|
|
|
public void setShortDescription(String shortDescription) { |
|
|
|
ShortDescription = shortDescription; |
|
|
|
} |
|
|
|
public double getAvgRating() { |
|
|
|
return AvgRating; |
|
|
|
} |
|
|
|
public void setAvgRating(double avgRating) { |
|
|
|
AvgRating = avgRating; |
|
|
|
} |
|
|
|
public int getNumWatched() { |
|
|
|
return NumWatched; |
|
|
|
} |
|
|
|
public void setNumWatched(int numWatched) { |
|
|
|
NumWatched = numWatched; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Create the frame. |
|
|
|
|