|
|
|
@ -90,10 +90,6 @@ public class StarsFrame extends JFrame { |
|
|
|
s.setMovieTitle(tf_mtitleS.getText()); |
|
|
|
s.setNameSurname(tf_snameS.getText()); |
|
|
|
s.setYear(Integer.parseInt(tf_yearS.getText())); |
|
|
|
<<<<<<< Updated upstream |
|
|
|
|
|
|
|
======= |
|
|
|
>>>>>>> Stashed changes |
|
|
|
if (Database.addStar(s)) |
|
|
|
{ |
|
|
|
JOptionPane.showMessageDialog(null, "Star added Successfully....."); |
|
|
|
@ -101,25 +97,17 @@ public class StarsFrame extends JFrame { |
|
|
|
tf_midS.setText(""); |
|
|
|
tf_mtitleS.setText(""); |
|
|
|
tf_yearS.setText(""); |
|
|
|
<<<<<<< Updated upstream |
|
|
|
tf_snameS.setText(""); |
|
|
|
} |
|
|
|
else{ |
|
|
|
|
|
|
|
JOptionPane.showMessageDialog(null, "Movie not found, star not addded....."); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
======= |
|
|
|
tf_snameS.setText(""); |
|
|
|
} |
|
|
|
else { |
|
|
|
JOptionPane.showMessageDialog(null, "Movie not found, Star not added!!"); |
|
|
|
} |
|
|
|
>>>>>>> Stashed changes |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
});btnStar.setBounds(195, 320, 89, 23); |
|
|
|
}); |
|
|
|
btnStar.setBounds(195, 320, 89, 23); |
|
|
|
panel.add(btnStar); |
|
|
|
|
|
|
|
JButton btnHomeS = new JButton("Home"); |
|
|
|
|