Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to open a new form or jframe while clicking a button in swing

 
R Karthick
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
This is the first time i'm working with swing.I dont know how to accomplish certain tasks! so i need your help. Can any one please tell me how to open a jframe or a gui while clicking a button. I tried a lot but i cant figure it out.

I have given my sample coding here.If it is wrong kindly suggest me a best solution.


Thanks a lot..
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the button is already in a frame (another frame)?

if so, how did you create that frame - the code you seek is remarkably similar
 
permaculture is largely about replacing oil with people. And one tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!