Skip to content, Skip to search

Changes

Scripting comparisons

108 bytes removed, 13:26, 1 August 2008
simplified anonymous interface instantiation
importClass(Packages.java.util.ArrayList);
importClass(Packages.java.awt.event.TextListener);
 
commands = Menus.getCommands();
keys = new ArrayList(commands.keySet());
prom.setForeground(Color.red);
// Create a body for the interface prom.addTextListener(new TextListener,( {// since 'new' cannot be called directly on an interfacebody = { textValueChanged: function(evt) {
text = prom.getText();
for (i=0;i<keys.size();i++) {
prom.setForeground(Color.red);
}
}importClass(Packages.java.awt.event.TextListener);prom.addTextListener(new TextListener(body));
gd.showDialog();
Emailconfirmed, incoming, uploaders
335
edits