Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,11 @@ public void load(String source) {
this.source = source;

// Load from the web
if (source.startsWith("http://")) {
if (source.startsWith("http://") || source.startsWith("https://")) {

image = ImageIO.read(new URL(source).openStream());

} else {

// Attempt to load from the class path (as in JAR file..)
URL url = getClass().getResource(source.startsWith("/") ? source : "/" + source);
if (url != null) {
Expand Down