X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2Fedit%2FPointNameEditor.java;h=bfa46c4bf4d54f9df5f4e9101b859903a26cd172;hp=3fc630e2b96506789f36ad0ee7878d13fee8bb0d;hb=4d5796d02a15808311c09448d79e6e7d1de9d636;hpb=f1b92378a792131ac8fb33a869405851d5b2d1f7 diff --git a/tim/prune/function/edit/PointNameEditor.java b/tim/prune/function/edit/PointNameEditor.java index 3fc630e..bfa46c4 100644 --- a/tim/prune/function/edit/PointNameEditor.java +++ b/tim/prune/function/edit/PointNameEditor.java @@ -125,16 +125,16 @@ public class PointNameEditor extends GenericFunction } }); rightPanel.add(lowerButton); - JButton sentenceButton = new JButton(I18nManager.getText("dialog.pointnameedit.sentencecase")); - sentenceButton.addActionListener(new ActionListener() { + JButton titleButton = new JButton(I18nManager.getText("dialog.pointnameedit.titlecase")); + titleButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - _nameField.setText(sentenceCase(_nameField.getText())); + _nameField.setText(titleCase(_nameField.getText())); _okButton.setEnabled(true); _nameField.requestFocus(); } }); - rightPanel.add(sentenceButton); + rightPanel.add(titleButton); panel.add(rightPanel, BorderLayout.EAST); // Bottom panel for OK, cancel buttons JPanel lowerPanel = new JPanel(); @@ -167,11 +167,11 @@ public class PointNameEditor extends GenericFunction } /** - * Turn a String into sentence case by capitalizing each word + * Turn a String into title case by capitalizing each word * @param inString String to convert * @return capitalized String */ - private static String sentenceCase(String inString) + private static String titleCase(String inString) { // Check first for empty strings if (inString == null || inString.equals(""))