From a7e7618fb914f8b919a17daf6c020b860c5d11c9 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Tue, 10 Sep 2019 00:32:18 -0400 Subject: [PATCH] Lazy icons. --- ObjEditor.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ObjEditor.java b/ObjEditor.java index 6e8ba4c..4f82f20 100644 --- a/ObjEditor.java +++ b/ObjEditor.java @@ -98,10 +98,11 @@ cButton GetButton(String name, boolean border) { - ImageIcon icon = GetIcon(name); + //ImageIcon icon = GetIcon(name); boolean fit = !name.startsWith("icons"); - if (icon != null || name.contains("/")) - return new cButton(icon, border, fit); + if (//icon != null || + name.contains("/")) + return new cButton(name, border, fit); else return new cButton(name, border); } @@ -1787,7 +1788,7 @@ objectTabbedPane.setToolTipTextAt(objectTabCount++, "Material"); figurePanel = new cGridBag(); - figurePanel.add(new cButton("FIGURES amd POSES coming soon!")); + figurePanel.add(new cButton("FIGURES and POSES coming soon!")); objectTabbedPane.add(figurePanel); objectTabbedPane.setIconAt(objectTabCount, GetIcon("icons/figure.png")); objectTabbedPane.setToolTipTextAt(objectTabCount++, "Figures and poses"); -- Gitblit v1.6.2