fix: resolve issue with resource filepath
This commit is contained in:
parent
2cc702b8f8
commit
4bb595dc6b
1 changed files with 2 additions and 3 deletions
|
|
@ -18,7 +18,6 @@ package client;
|
|||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Path;
|
||||
|
||||
import com.google.inject.Injector;
|
||||
|
||||
|
|
@ -49,7 +48,7 @@ public class MyFXML {
|
|||
}
|
||||
|
||||
private URL getLocation(String... parts) {
|
||||
var path = Path.of("", parts).toString();
|
||||
var path = String.join("/", parts);
|
||||
return MyFXML.class.getClassLoader().getResource(path);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue