Skip to content

Commit

Permalink
add tooltip for checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
mbien committed Jul 13, 2023
1 parent 1d2075b commit fc6c9b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ transformerPanelVisual.selectSourceFolder.text=Browse...
transformerPanelVisual.selectTargetFolder.text=Browse...
transformerPanelVisual.selectSourceFolder.actionCommand=BROWSE
transformerPanelVisual.selectTargetFolder.actionCommand=BROWSE
transformerPanelVisual.source.text=
transformerPanelVisual.target.text=
transformerPanelVisual.overrideCheckBox.text=Override
transformerPanelVisual.overrideCheckBox.tooltip=Transform Source in-place
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,11 @@
</Component>
<Component class="javax.swing.JTextField" name="source">
<Properties>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/netbeans/modules/fish/payara/jakarta/transformer/Bundle.properties" key="transformerPanelVisual.source.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="name" type="java.lang.String" value="source" noResource="true"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="target">
<Properties>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/netbeans/modules/fish/payara/jakarta/transformer/Bundle.properties" key="transformerPanelVisual.target.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="name" type="java.lang.String" value="target" noResource="true"/>
</Properties>
</Component>
Expand All @@ -149,6 +143,9 @@
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/netbeans/modules/fish/payara/jakarta/transformer/Bundle.properties" key="transformerPanelVisual.overrideCheckBox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/netbeans/modules/fish/payara/jakarta/transformer/Bundle.properties" key="transformerPanelVisual.overrideCheckBox.tooltip" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="overrideCheckBoxActionPerformed"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
}
});

source.setText(org.openide.util.NbBundle.getMessage(TransformerPanelVisual.class, "transformerPanelVisual.source.text")); // NOI18N
source.setName("source"); // NOI18N

target.setText(org.openide.util.NbBundle.getMessage(TransformerPanelVisual.class, "transformerPanelVisual.target.text")); // NOI18N
target.setName("target"); // NOI18N

org.openide.awt.Mnemonics.setLocalizedText(selectTargetButton, org.openide.util.NbBundle.getMessage(TransformerPanelVisual.class, "transformerPanelVisual.selectTargetFolder.text")); // NOI18N
Expand All @@ -89,6 +87,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
});

org.openide.awt.Mnemonics.setLocalizedText(overrideCheckBox, org.openide.util.NbBundle.getMessage(TransformerPanelVisual.class, "transformerPanelVisual.overrideCheckBox.text")); // NOI18N
overrideCheckBox.setToolTipText(org.openide.util.NbBundle.getMessage(TransformerPanelVisual.class, "transformerPanelVisual.overrideCheckBox.tooltip")); // NOI18N
overrideCheckBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
overrideCheckBoxActionPerformed(evt);
Expand Down

0 comments on commit fc6c9b7

Please sign in to comment.