The Query class in the ptolemy.gui package provides a very simple interface for creating on-screen controls for parameter values. The controls include entry boxes, check boxes, and sliders. Below is an example that includes one of each type of query that is supported. Such a combination of queries is not particularly attractive, and is rarely needed, but it illustrates the features.
An instance of Query can be placed in a modal dialog using the ComponentDialog class.