mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Fixes resources not found problem using Smack under an AppServer
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2200 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
29903213a3
commit
3db7e3fe4d
2 changed files with 23 additions and 12 deletions
|
@ -84,19 +84,25 @@ class EnhancedDebuggerWindow {
|
|||
{
|
||||
URL url;
|
||||
|
||||
url = ClassLoader.getSystemClassLoader().getResource("images/trafficlight_off.png");
|
||||
url =
|
||||
Thread.currentThread().getContextClassLoader().getResource(
|
||||
"images/trafficlight_off.png");
|
||||
if (url != null) {
|
||||
connectionCreatedIcon = new ImageIcon(url);
|
||||
}
|
||||
url = ClassLoader.getSystemClassLoader().getResource("images/trafficlight_green.png");
|
||||
}
|
||||
url =
|
||||
Thread.currentThread().getContextClassLoader().getResource(
|
||||
"images/trafficlight_green.png");
|
||||
if (url != null) {
|
||||
connectionActiveIcon = new ImageIcon(url);
|
||||
}
|
||||
url = ClassLoader.getSystemClassLoader().getResource("images/trafficlight_red.png");
|
||||
url =
|
||||
Thread.currentThread().getContextClassLoader().getResource(
|
||||
"images/trafficlight_red.png");
|
||||
if (url != null) {
|
||||
connectionClosedIcon = new ImageIcon(url);
|
||||
}
|
||||
url = ClassLoader.getSystemClassLoader().getResource("images/warning.png");
|
||||
url = Thread.currentThread().getContextClassLoader().getResource("images/warning.png");
|
||||
if (url != null) {
|
||||
connectionClosedOnErrorIcon = new ImageIcon(url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue