Swing (Java): Difference between revisions

Content deleted Content added
m Foundations: consistency in headings
Fixed code for Sample class. It now handles previously unhandled InvocationTargetException and InterruptedException.
Line 202:
}
 
public static void main(String[] args) throws InvocationTargetException, InterruptedException {
// Swing calls must be run by the event dispatching thread.
SwingUtilities.invokeAndWait(() -> new Sample());