Search Results

Search found 1 results on 1 pages for 'aysenur'.

Page 1/1 | 1 

  • How to capture button click if more than one button in AspectJ?

    - by aysenur
    Hi all, I wonder if we can capture that which button is clicked if there are more than one button. On this example, can we reach //do something1 and //do something2 parts with joinPoints? public class Test { public Test() { JButton j1 = new JButton("button1"); j1.addActionListener(this); JButton j2 = new JButton("button2"); j2.addActionListener(this); } public void actionPerformed(ActionEvent e) { //if the button1 clicked //do something1 //if the button2 clicked //do something2 } }

    Read the article

1