These procedures assume that you configured your Process development environment and are using the Java™ Development Kit (JDK) in native, command line mode. If you are using an IDE, add the vwpanel.jar file to your Java project to use the Process Java UI Toolkit's Swing-based controls.
For information about the Process development environment, see Configuring the Process Development Environment. For information about swing-based controls, see Java UI Toolkit Overview.
Note: Only customization of the Step Processor samples is discussed here. Simple directory and file name changes, however, are all that is necessary to apply these instructions to the Launch Step Processor samples.
To customize the sample Java Step Processor:
If the new custom Step Processor runs properly, you are ready to customize the Step Processor application/applet source.
Customize the Processor Source
//Create labels for the launch date and originator information.
javax.swing.JLabel sentLabel = new javax.swing.JLabel();
javax.swing.JLabel fromLabel = new javax.swing.JLabel();
//Create label objects for the launch date and originator information.
filenet.vw.toolkit.runtime.step.beans.VWLabel vwSentLabel =
new filenet.vw.toolkit.runtime.step.beans.VWLabel();
filenet.vw.toolkit.runtime.step.beans.VWLabel vwFromLabel =
new filenet.vw.toolkit.runtime.step.beans.VWLabel();
iconLabel.setBounds(516,48,216,108);
iconLabel.setBounds(20,48,216,108);
//Display the label text on the JPanel to specify what the launch date information means.
sentLabel.setText("Launched on:");
add(sentLabel);
sentLabel.setBounds(320,84,100,24);
//Retrieve and display the launch date for Step Processor.
vwSentLabel.setParameterName("F_LaunchDate");
add(vwSentLabel);
vwSentLabel.setBounds(430,84,100,24);
//Display the label text on the JPanel to indicate what the originator information means.
sentLabel.setText("Step Originator:");
add(fromLabel);
fromLabel.setBounds(320,120,100,24);
//Retrieve and display the originator information.
vwFromLabel.setParameterName("F_Originator");
add(vwFromLabel);
vwFromLabel.setBounds(430,120,180,24);