Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] trying to monitor the Swing libraries

Hi,
I'm have a big problem: I'm trying to code a program to add a listener
in every JComponent in every swing program, I've add the code to do
that in JFrame, but for each JComponent, i'm trying to do something
like this:

poincut catch(JComponent c) : (call (* JComponent+.new(..) ||
execute(* JComponent+.new(..))

after(JComponent c) : catch(c) {
System.out.println("Here i will put the add listener code)
}

well , this doesn't work ... I think when classes do some like:

JButton(){
super();
............
} 
the JComponent's constructor is never caught by code ...

Can anyone help me please ?


Back to the top