Hi there, I am working on the development of an actor (it extends TypedAtomicActor) in Kepler in which I need to addChoices to another Parameter (say parameter Y) based on the value of parameter X in the EditParametersDialog.
Hence in the AttributeChanged method, I do the check if parameter X was indeed changed and then try to set the possible choices for Y parameter accordingly. However the choices for parameter Y are not shown instantly in the dialog (only after pressing commit with param X) and then re-clicking the actor again can I see the newly added Y param choices in the EditParametersDialog. public void attributeChanged(Attribute attribute) throws IllegalActionException { if(attribute == X) { if(!(X.getExpression().equals(""))) { Y.addChoice("XY1"); Y.addChoice("XY2"); Y.addChoice("XY3"); } } } After doing the above, Y param's new choices show only after pressing commit and then re-opening EditParametersDialog. Is there any way I can manually refresh/update the EditParametersDialog so that it can show the newly added choices for param Y in the same dailog before pressing commit. thanks for the help. nandita mangal. __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]