How to use Java Applications and Applets in Domino…
and when it can be used??
How to use Java Applications and Applets in Domino…
and when it can be used??
Subject: Java applets and apllications
Hi,Domino Designer can be used to create a UI elements very quickly . But there are cases when you want to create UI which require drag and drop functionality or other functionality which cannot be achived by domino designer.
You can create a Custom UI by calling a agent / applet in a pop up window.
here is a sample code of agent to get started .This code creates a Frame . You can use java Swings UI elements to create Tree, Tables and also drag drop.
I you are domino developer you may find coding in java time consuming :-).
Hope this helps.
Thanks
Sushant
import lotus.domino.*;
import java.awt.*;
import javax.swing.*;
public class JavaAgent extends AgentBase {
private TestFrame1 out;
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
out = new TestFrame1();
Thread.sleep(250);
} catch(Exception e) {
e.printStackTrace();
}
}
}
import java.awt.*;
import javax.swing.*;
public class TestFrame1
{
TestFrame1()// Constructor
{
JFrame frame = new JFrame(“Test Frame 1”);
frame.setSize(200,100);
frame.setVisible( true );
}
}