From 712a820fbf97e7ce95d2aa2e78adf0129193ef83 Mon Sep 17 00:00:00 2001 From: Derek DeMoro Date: Thu, 6 Sep 2007 21:30:19 +0000 Subject: [PATCH] Fix small issue with notes. git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9072 b35dd754-fafc-0310-a699-88a17e54d16e --- .../sparkimpl/plugin/scratchpad/ScratchPadPlugin.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/ScratchPadPlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/ScratchPadPlugin.java index 53e4cb3b..4a964c69 100644 --- a/src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/ScratchPadPlugin.java +++ b/src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/ScratchPadPlugin.java @@ -12,6 +12,7 @@ package org.jivesoftware.sparkimpl.plugin.scratchpad; import org.jdesktop.swingx.calendar.DateUtils; import org.jivesoftware.resource.SparkRes; +import org.jivesoftware.resource.Res; import org.jivesoftware.spark.SparkManager; import org.jivesoftware.spark.component.RolloverButton; import org.jivesoftware.spark.component.VerticalFlowLayout; @@ -121,7 +122,7 @@ public class ScratchPadPlugin implements Plugin { // Add To toolbar SparkManager.getWorkspace().getCommandPanel().add(taskButton, index); - SparkManager.getWorkspace().getCommandPanel().add(notesButton, index + 1); + SparkManager.getWorkspace().getCommandPanel().add(notesButton, index); SparkManager.getWorkspace().getCommandPanel().validate(); SparkManager.getWorkspace().getCommandPanel().invalidate(); SparkManager.getWorkspace().getCommandPanel().repaint(); @@ -377,8 +378,8 @@ public class ScratchPadPlugin implements Plugin { scrollPane.getViewport().setOpaque(false); pane.setText(text); - final RolloverButton button = new RolloverButton(SparkRes.getString("save"), null); - final RolloverButton cancelButton = new RolloverButton(SparkRes.getString("cancel"), null); + final RolloverButton button = new RolloverButton(Res.getString("save"), null); + final RolloverButton cancelButton = new RolloverButton(Res.getString("cancel"), null); ResourceUtils.resButton(button, "&Save"); ResourceUtils.resButton(cancelButton, "&Cancel");