• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call click event of a buttong

 
Liwuen Chew
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic