Skip to content

Instantly share code, notes, and snippets.

@jonbca
Created March 21, 2011 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonbca/879392 to your computer and use it in GitHub Desktop.
Save jonbca/879392 to your computer and use it in GitHub Desktop.
Anonymous Inner Class example
import javax.swing.*;
import java.security.*
class InnerClassStupidity {
void someAction() {
AccessController.doPrivileged( new PrivilegedAction() {
public Object run() {
SwingUtilities.invokeLater( new Runnable() {
public void run() {
// some privileged action here
}
});
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment