details += "</font></html>";
return details;
}
};
timeLine.addTimeLineNode(node1);
node1.addVetoableChangeListener(new VetoableChangeListener() {
public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException {
System.out.println("XXX node 1 changed: " + evt);
}
});
String label2 = "Label 2";
DefaultTimeLineNode node2 = new DefaultTimeLineNode(new Time(24.0 * 60.0), new Time(30.0 * 60.0), label2) {
public String getDescription(Point pt) {
return "Node Description";
}
};
timeLine.addTimeLineNode(node2);
node2.addVetoableChangeListener(new VetoableChangeListener() {
public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException {
System.out.println("XXX node 2 changed: " + evt);
}
});