for(int i=0; i<roleResolutionContextClasses.length; i++)
{//TAB "Direct"
String className = roleResolutionContextClasses[i];
JPanel tabPanel = new JPanel(new BorderLayout());
InputterAdapter drrcInput;
Class classType;
try {
classType = Class.forName(className);
try{
drrcInput = (InputterAdapter)ObjectType.getDefaultInputter(Class.forName(className));
}catch(Exception e){
drrcInput = new ObjectInput(classType);
}
RoleResolutionContext rrc = (RoleResolutionContext)Class.forName(className).newInstance();
String roleResolutionContextName = rrc.getName();
drrcInput.addActionListener(this);
tabPanel.add(
"Center",
drrcInput.getNewComponent()
);
tab.addTab(roleResolutionContextName, tabPanel);
} catch (Exception e1) {
e1.printStackTrace();