• Post Reply Bookmark Topic Watch Topic
  • New Topic

please help to explain following method  RSS feed

 
rajareddya reddy
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody please how the bolded code set to the addSelectionListener method?I am seeing first time the following mentioned code.I mean the way code is setting to setter.I want to know how this type of code works.

 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is an anonymous inner class. You are defining/declaring an inner class which does not have a name and overriding void widgetSelected(SelectionEvent e) in SelectionAdapter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!