This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to call  a new .class file  in Actionlistener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to call  a new .class file  in Actionlistener" Watch "how to call  a new .class file  in Actionlistener" New topic
Author

how to call a new .class file in Actionlistener

sudhakar ananth
Ranch Hand

Joined: Feb 02, 2007
Posts: 68
Hello Friends

I am new SWING

What should be the code to call a new new frame(different class) when we click the (OK BUTTON).

Thank you friends...
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
The general way would be to attach an ActionListener to the button, like this;



I'm not sure what you mean by "call a class" - maybe calling a method in a class?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to call a new .class file in Actionlistener
 
It's not a secret anymore!