From 684e01bb190c7d0b95347b732aeb3cdeda4740d7 Mon Sep 17 00:00:00 2001 From: abranson Date: Tue, 18 Oct 2011 17:00:33 +0200 Subject: Module support --- source/com/c2kernel/gui/tabs/EntityTabPane.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/com/c2kernel/gui/tabs/EntityTabPane.java') diff --git a/source/com/c2kernel/gui/tabs/EntityTabPane.java b/source/com/c2kernel/gui/tabs/EntityTabPane.java index 5a374dd..0a8a0cd 100644 --- a/source/com/c2kernel/gui/tabs/EntityTabPane.java +++ b/source/com/c2kernel/gui/tabs/EntityTabPane.java @@ -43,7 +43,7 @@ public class EntityTabPane extends JPanel implements Runnable { protected NodeEntity sourceEntity; protected String titleText = null; protected ImageIcon titleIcon = null; - private String tabName; + private final String tabName; protected GridBagLayout gridbag = new GridBagLayout(); protected GridBagConstraints c = null; public static Font titleFont = null; @@ -53,7 +53,7 @@ public class EntityTabPane extends JPanel implements Runnable { protected Box titleBox; static { try { - mReloadIcon = Resource.getImageResource("reload.gif"); + mReloadIcon = Resource.findImage("reload.gif"); } catch (Exception e) { Logger.warning("Couldn't load images: " + e); } @@ -96,7 +96,7 @@ public class EntityTabPane extends JPanel implements Runnable { if (titleText == null) titleText = tabName; if (titleIcon == null) - titleIcon = Resource.getImageResource("info.png"); + titleIcon = Resource.findImage("info.png"); JLabel title = new JLabel(titleText, titleIcon, SwingConstants.LEFT); title.setFont(titleFont); title.setForeground(headingColor); @@ -113,7 +113,7 @@ public class EntityTabPane extends JPanel implements Runnable { }); String defaultStartTab = MainFrame.getPref("DefaultStartTab", "Properties"); JToggleButton defaultStart = - new JToggleButton(Resource.getImageResource("graph/start.png")); + new JToggleButton(Resource.findImage("graph/start.png")); defaultStart.setMargin(new Insets(0, 0, 0, 0)); defaultStart.setToolTipText( Language.translate("Select this tab to be the default one opened when you double click an item")); -- cgit v1.2.3