What my program does is allow the user to select from a list of movies and decide whether they want to rent or purchase each movie. Here is my code:
public void addMovie(JFrame framePassed, JLabel moviePassed, JCheckBox movieCheckBoxPassed){
if (movieCheckBoxPassed.isSelected() == true)
{
framePassed.add(moviePassed);
bg2.add(rentButton);
bg2.add(purchaseButton);
framePassed.add(rentButton);
framePassed.add(purchaseButton);
}//end if
else
{
framePassed.remove(moviePassed);
}//end else
// movieList.add(new Movie());
framePassed.setSize(1000, 1000);
framePassed.setVisible(true);
}//end method
The moviePassed is added to the framePassed but the radio buttons are not appearing. Any help is appreciated. Thank you in advance.