From d89a127b8b4f5b19a3463d2fb51946657d54fbfa Mon Sep 17 00:00:00 2001 From: rickard Date: Mon, 2 Jan 2023 13:55:20 +0100 Subject: [PATCH] fixes missing text for tooltip --- .../jme3/gde/materials/multiview/widgets/Bundle.properties | 3 +++ .../materials/multiview/widgets/MaterialPreviewWidget.form | 6 +++--- .../materials/multiview/widgets/MaterialPreviewWidget.java | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/Bundle.properties b/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/Bundle.properties index af8efc915..8cec2babb 100644 --- a/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/Bundle.properties +++ b/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/Bundle.properties @@ -51,3 +51,6 @@ TexturePanelSquare.jCheckBox2.text=repeat TexturePanelSquare.jCheckBox1.text=flip TexturePanelSquare.AccessibleContext.accessibleName= TexturePanelSquare.text= +MaterialPreviewWidget.jToggleButton1.text=jToggleButton1 +MaterialPreviewWidget.togglePbrEnvButton.label= +MaterialPreviewWidget.togglePbrEnvButton.toolTipText=Toggle PBR environment diff --git a/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/MaterialPreviewWidget.form b/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/MaterialPreviewWidget.form index 23a6b6042..f5a3019be 100644 --- a/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/MaterialPreviewWidget.form +++ b/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/MaterialPreviewWidget.form @@ -133,12 +133,12 @@ - + - + @@ -146,7 +146,7 @@ - + diff --git a/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/MaterialPreviewWidget.java b/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/MaterialPreviewWidget.java index 39fa91b96..c8e921843 100644 --- a/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/MaterialPreviewWidget.java +++ b/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/MaterialPreviewWidget.java @@ -129,13 +129,13 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { jToolBar1.add(jSeparator1); togglePbrEnvButton.setIcon(IconList.lightYellow); - togglePbrEnvButton.setToolTipText(org.openide.util.NbBundle.getMessage(MaterialPreviewWidget.class, "MaterialPreviewWidget.toolTipText")); // NOI18N + togglePbrEnvButton.setToolTipText(org.openide.util.NbBundle.getMessage(MaterialPreviewWidget.class, "MaterialPreviewWidget.togglePbrEnvButton.toolTipText")); // NOI18N togglePbrEnvButton.setFocusable(false); togglePbrEnvButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); - togglePbrEnvButton.setLabel(org.openide.util.NbBundle.getMessage(MaterialPreviewWidget.class, "MaterialPreviewWidget.label")); // NOI18N + togglePbrEnvButton.setLabel(org.openide.util.NbBundle.getMessage(MaterialPreviewWidget.class, "MaterialPreviewWidget.togglePbrEnvButton.label")); // NOI18N togglePbrEnvButton.setMaximumSize(new java.awt.Dimension(26, 24)); togglePbrEnvButton.setMinimumSize(new java.awt.Dimension(26, 24)); - togglePbrEnvButton.setName(""); // NOI18N + togglePbrEnvButton.setName("togglePbrEnvButton"); // NOI18N togglePbrEnvButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); togglePbrEnvButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) {