Skip to content

Instantly share code, notes, and snippets.

@ozgun
Created February 10, 2014 13:23
Show Gist options
  • Save ozgun/8915848 to your computer and use it in GitHub Desktop.
Save ozgun/8915848 to your computer and use it in GitHub Desktop.
IntelliJ IDEA folding example
public void init() {
//Execute a job on the event-dispatching thread; creating this applet's GUI.
try {
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
buffer = new StringBuffer();
}
});
} catch (Exception e) {
System.err.println("createGUI didn't complete successfully");
}
}
public void init() {
//Execute a job on the event-dispatching thread; creating this applet's GUI.
try {
SwingUtilities.invokeAndWait(() -> {
buffer = new StringBuffer();
}
});
} catch (Exception e) {
System.err.println("createGUI didn't complete successfully");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment