File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Call click event of a buttong Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Call click event of a buttong" Watch "Call click event of a buttong" New topic
Author

Call click event of a buttong

Liwuen Chew
Greenhorn

Joined: Mar 11, 2010
Posts: 24
Hi! I have a SWT button in a SWT form, which has its listener for a click event.
I want to call that listener from a swing jButton. Can you please help me? Thanks!
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

I haven't worked with SWT, but I am imagining you need to register the listener to the button like you would do in swing.
button.addActionListener(listener)


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call click event of a buttong
 
Similar Threads
Actionevent
Pblm with JFrame and JPanel
[SWT] Sash (Widget) repaint problem
Expand and Fold GWT Tree
Executing two f:ajax in h:commandButton