0

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?

Code:

private void nextActionPerformed(java.awt.event.ActionEvent evt){


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

    // code 

 }
else

{
    // code

  }

}

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

here

user1803551
  • 12,965
  • 5
  • 47
  • 74
Mahesh
  • 1
  • 3
  • 2
    Can you post some code that you have already tried ? – gregn3 Jul 27 '16 at 14:36
  • Printing is quite unclear here.It seems like you are are looking for passing value from one frame to other . – manikant gautam Jul 27 '16 at 15:55
  • private void nextActionPerformed(java.awt.event.ActionEvent evt){ if (movie.isSelected()== true ){ // code else{ // code } What code I need to write to show the text as "enter the movie name:______" in the same window when next button is clicked. – Mahesh Jul 27 '16 at 16:33
  • Use a `CardLayout`. Switch to a panel with the new contents. – user1803551 Jul 27 '16 at 19:17

1 Answers1

-1

In this panel you can make a textfield invisible. When you clicked button the textfield will enable for input Movie name

Raj
  • 1
  • 4