From 4f259425333a20097430d030bec428c6c7f93b33 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sat, 29 Jun 2013 19:34:05 +0000 Subject: [PATCH] SDK: - add icon to AppState nodes git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10690 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../jme3/gde/core/appstates/AppStateNode.java | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/appstates/AppStateNode.java b/sdk/jme3-core/src/com/jme3/gde/core/appstates/AppStateNode.java index ea6712b0e..62354cc9d 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/appstates/AppStateNode.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/appstates/AppStateNode.java @@ -33,10 +33,12 @@ package com.jme3.gde.core.appstates; import com.jme3.app.state.AppState; import com.jme3.app.state.AppStateManager; +import com.jme3.gde.core.icons.IconList; import com.jme3.gde.core.properties.SceneExplorerProperty; import com.jme3.gde.core.properties.ScenePropertyChangeListener; import com.jme3.gde.core.scene.SceneSyncListener; import com.jme3.gde.core.util.PropertyUtils; +import java.awt.Image; import java.beans.PropertyDescriptor; import java.io.IOException; import java.lang.reflect.Field; @@ -71,16 +73,16 @@ public class AppStateNode extends AbstractNode implements ScenePropertyChangeLis // setIconBaseWithExtension(ICON_ENABLED); } -// @Override -// public Image getIcon(int type) { -// return icon; -// -// } -// -// @Override -// public Image getOpenedIcon(int type) { -// return icon; -// } + @Override + public Image getIcon(int type) { + return IconList.wheel.getImage(); + + } + + @Override + public Image getOpenedIcon(int type) { + return IconList.wheel.getImage(); + } // // public void toggleIcon(boolean enabled) { // if (enabled) {