|
@@ -474,7 +474,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
if (leaf) {
|
|
|
for (Category cat : model.getCategories()) {
|
|
|
for (CpsObject cps : cat.getObjects()) {
|
|
|
- if (value.toString().compareTo(cps.getCompareName()) == 0) {
|
|
|
+ if (value.toString().compareTo(cps.getObjName()) == 0) {
|
|
|
File checkPath = new File(cps.getImage());
|
|
|
if (checkPath.exists()) {
|
|
|
imgR = new ImageIcon(cps.getImage()).getImage().getScaledInstance(
|
|
@@ -572,7 +572,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
} else {
|
|
|
for (Category cat : model.getCategories()) {
|
|
|
for (CpsObject cps : cat.getObjects()) {
|
|
|
- if (actualObjectClicked.compareTo(cps.getCompareName()) == 0) {
|
|
|
+ if (actualObjectClicked.compareTo(cps.getObjName()) == 0) {
|
|
|
File checkPath = new File(cps.getImage());
|
|
|
if (checkPath.exists()) {
|
|
|
img = new ImageIcon(cps.getImage()).getImage().getScaledInstance(
|