MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / runAsync

Method runAsync

src/main/java/core/packetproxy/gui/Splash.java:28–36  ·  view source on GitHub ↗
(final Runnable runnable)

Source from the content-addressed store, hash-verified

26 }
27
28 private void runAsync(final Runnable runnable) {
29 if (SwingUtilities.isEventDispatchThread()) {
30
31 runnable.run();
32 } else {
33
34 SwingUtilities.invokeLater(runnable);
35 }
36 }
37
38 private void createSplash() {
39 ImageIcon img = new ImageIcon(getClass().getResource("/gui/splash.png"));

Callers 2

showMethod · 0.95
closeMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected