Printing the text when checkbox is clicked
<p>I have a doubt regarding Swing application. In this image, if the check box is checked and next button is clicked, it need to show the printed text in the next frame as "enter the movie name". Could anyone please help me with this? </p>

<h1>Code:</h1>

<pre><code>private void nextActionPerformed(java.awt.event.ActionEvent evt){


 if (movie.isSelected()== true ){

    // code 

 }
else

{
    // code

  }

}
</code></pre>

<p>What code I need to write to show the text as "enter the movie name:______" in the same window when next button is clicked<br>
Image:</p>

<p><img src="https://i.stack.imgur.com/O9KD7.png" alt="here"></p>