p.add(name);
}
if (node.getType() == TreeNode.CHECK_TOKEN_NODE) {
CheckToken ct = (CheckToken) node;
JLabel l1 = new JLabel("Token: ");
l1.setFont(f);
l1.setAlignmentY(Component.CENTER_ALIGNMENT);
p.add(l1);
name = new JTextField(10);
name.addKeyListener(this);
name.setAlignmentY(Component.CENTER_ALIGNMENT);
name.setText(ct.getToken());
p.add(name);
value = new JTextField(6);
value.addKeyListener(this);
value.setAlignmentY(Component.CENTER_ALIGNMENT);
value.setText(ct.getValue());
p.add(value);
}
if (node.getType() == TreeNode.CREATE_TOKEN_NODE) {
CreateToken ct = (CreateToken) node;
JLabel l1 = new JLabel("Token: ");
l1.setFont(f);
l1.setAlignmentY(Component.CENTER_ALIGNMENT);
p.add(l1);
name = new JTextField(10);
name.addKeyListener(this);
name.setAlignmentY(Component.CENTER_ALIGNMENT);
name.setText(ct.getToken());
p.add(name);
JLabel l3 = new JLabel("value: ");
l3.setFont(f);
l3.setAlignmentY(Component.CENTER_ALIGNMENT);
p.add(l3);
value2 = new JTextField(6);
value2.setAlignmentY(Component.CENTER_ALIGNMENT);
value2.addKeyListener(this);
if (ct.getValue() != null)
value2.setText(ct.getValue());
p.add(value2);
JLabel l2 = new JLabel("expires: ");
l2.setFont(f);
l2.setAlignmentY(Component.CENTER_ALIGNMENT);
p.add(l2);
value = new JTextField(8);
value.setAlignmentY(Component.CENTER_ALIGNMENT);
value.setText(ct.getLifeTime().toString());
p.add(value);
}
if (node.getType() == TreeNode.LIMIT_NODE) {