Skip to content

Commit

Permalink
fix minor error
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhang5 committed Apr 8, 2015
1 parent ff3ba30 commit e66c784
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void highlight(String selText) {

selText = selText.toLowerCase();
DefaultHighlightPainter hPainter = new DefaultHighlightPainter(Color.YELLOW);

// String selText = txtPane.getSelectedText();
String contText = "";// = jTextPane1.getText();

Expand Down Expand Up @@ -188,10 +188,15 @@ public void actionPerformed(ActionEvent e) {
}
});
this.toolbar.add(editButton);

// add a search icon
JButton searchButton = new JButton(ZooInspectorIconResources.getSearchIcon());
searchButton.setToolTipText("Find (^/⌘-F)");
String osName = System.getProperty("os.name").toLowerCase();
String tipText = "Find (^F)";
if (osName != null && osName.indexOf("mac") > -1) {
tipText = "Find (⌘F)";
}
searchButton.setToolTipText(tipText);
searchButton.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent e) {
Expand Down

0 comments on commit e66c784

Please sign in to comment.