обещаные инструкции

значить так, я тестил под wine! (рассказ для виндей типа)
-Notes 7.0.3
-качаем swt отсель -
Ссылка скрыта от гостей
-из zip распаковываем swt.jar - в каталог установки Notes в папку jvm/lib/ext
-а все dll (из архива) - в %SYSTEMROOT%\system32 (это грубый метод - можно и в Нотусовую диру засунуть)
-перепущаем Нотуса (ежели запущеты были)
-в тестовой базе создаем агента (Java, с типом отбора none)
-в агенте код будет
<div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">такой</div></div><div class="sp-body"><div class="sp-content"><!--shcode--><pre><code class='java'>import lotus.domino.*;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.ToolTip;
import org.eclipse.swt.widgets.Tray;
import org.eclipse.swt.widgets.TrayItem;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
testTip();
} catch(Exception e) {
e.printStackTrace();
}
}
public static void testTip() {
Display display = new Display();
Shell shell = new Shell(display);
Image image = null;
final ToolTip tip = new ToolTip(shell, SWT.BALLOON | SWT.ICON_INFORMATION);
tip.setMessage("Here is a message for the user. When the message is too long it wraps. I should say something cool but nothing comes to my mind.");
Tray tray = display.getSystemTray();
if (tray != null) {
TrayItem item = new TrayItem(tray, SWT.NONE);
image = new Image(display, "c:\\yourFile.gif");
item.setImage(image);
tip.setText("Notification from a tray item");
item.setToolTip(tip);
} else {
tip.setText("Notification from anywhere");
tip.setLocation(400, 400);
}
Button button = new Button(shell, SWT.PUSH);
button.setText("Press for balloon tip");
button.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
tip.setVisible(true);
}
});
button.pack();
shell.setBounds(50, 50, 300, 200);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
if (image != null)
image.dispose();
display.dispose();
}
}[/CODE]-и не забудем в корень диска положить файло с именем yourFile.gif (это иконка в трее)
у меня даже в вайне запустилось, при наведении на иконку - появится текст (из агента)
заюзать др. видгеты из состава SWT - можно аналогичным способом