Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Wietze Mulder
ssm
Commits
e8d9c511
Commit
e8d9c511
authored
Dec 05, 2019
by
Mart Lubbers
Browse files
Use a different way for fetching resources that works on java 9 as well
parent
53b2a5fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/nl/uu/cs/ssmui/HelpFromProp.java
View file @
e8d9c511
...
...
@@ -34,7 +34,7 @@ public class HelpFromProp
private
static
Properties
getProps
(
String
nm
)
{
URL
url
=
nm
.
getC
lass
()
.
getResource
(
"/Help/"
+
nm
+
".prop"
)
;
URL
url
=
HelpFromProp
.
c
lass
.
getResource
(
"/Help/"
+
nm
+
".prop"
)
;
Properties
props
=
new
Properties
()
;
try
{
...
...
src/nl/uu/cs/ssmui/Images.java
View file @
e8d9c511
...
...
@@ -32,7 +32,7 @@ public class Images
private
static
ImageIcon
getImage
(
String
nm
)
{
return
new
ImageIcon
(
nm
.
getC
lass
()
.
getResource
(
"/Images/"
+
nm
+
".gif"
)
)
;
return
new
ImageIcon
(
Images
.
c
lass
.
getResource
(
"/Images/"
+
nm
+
".gif"
)
)
;
}
static
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment