Hello everybody; m screwed by searching, and dont get any satisfactory material, i want to know that, if i have a button of NEXT then how it will close that GUI and open the new one from another class?? kindly help me

Recommended Answers

All 3 Replies

Try setVisible(false); to hide and setVisible(true); to show.

this dont work i tried it, any other suggestions plzzzzz

Not sure what you mean by "this don't work". Are you saying that setVisible(false); doesn't make the window hidden? Or that setVisible(true); doesn't make the window appear? If that is the case, please post your code so we can see why it might not be working. Otherwise, please ask a more specific question.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.