MCPcopy Create free account
hub / github.com/PCGen/pcgen / asJavaFX

Method asJavaFX

code/src/java/pcgen/gui2/tools/Icons.java:101–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 }
100
101 public Image asJavaFX()
102 {
103 String fileName = RESOURCE_URL + name() + extension;
104 final URL iconURL = getClass().getResource(fileName);
105 if (iconURL == null)
106 {
107 throw new RuntimeException("invalid image: " + fileName);
108 }
109 return new Image(iconURL.toExternalForm());
110 }
111}

Callers 5

testIconsExistMethod · 0.80
setSourceLoadErrorsMethod · 0.80
JTableMenuButtonMethod · 0.80
initComponentsMethod · 0.80
buildMenuMethod · 0.80

Calls 1

nameMethod · 0.80

Tested by 1

testIconsExistMethod · 0.64