Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to detected when a new child is added to a Composite parent?  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Could anyone please help me out on this? I am trying to figure out a way of detecting whenever a child is added to a SWT Composite parent.

Any suggestions please?

THanks
 
Sheriff
Posts: 21374
91
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know much about SWT, but in Swing there is java.awt.event.ContainerListener that can be triggered about child addition or removal. Perhaps there is something similar in SWT?
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!