Skip to main content

Extending JSR 57 with anonymous interfaces

1 reply [Last post]
denisw
Offline
Joined: 2005-01-03

I think it would be practical if you could write anonymous interfaces inline into JavaBeans XML files. I thought of something like this:

<?xml version="1.0" encoding="UTF-8"?>

Foo

public void actionPerformed(ActionEvent e) {
((JButton) e.getSource()).setText("Bar");
}

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
subanark
Offline
Joined: 2004-11-26

This would require including a compiler to the jre. Also this would need to be wraped into a class