Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

opening new frame  RSS feed

 
sachin dabhade
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,
i have an application made in swing using frames.
i have a button on it.
what i want to do is on the click event of the button,i want to open a new frame and kill this frame.
can anybody help me how to do this??
thanks in advance.
sachin
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
here is the code you want:

Hope this helps
Rene
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!