|
|
Dear Java Developer,
I am creating a web applet that has, among other things, some sliders (vertical). I am using the SpringLayout (javax.swing.SpringLayout) for the layout manager, and using the simple api, layout.putConstraint(String edge, Component c1, int distance_in_pixels, String edge, Component c2) to layout the components. This is working VERY well, and I'm amazed with the flexibility of the SpringLayout manager. I have the "East" side of the content_pane attached to the "East" edge of the east-most (rightmost) vertical slider (with a gap of 6 or 12 pixels, I forget which). This looks fine, too, but I want to be able to add more sliders to the East of the east-most slider, and attach the content_pane to the new east-most slider. How can I destroy the old spring and create a new one? I know how to create a new one, I just would like to be able to delete springs at run-time. I see putConstraint as a SUPER-EASY way to create springs, but I don't see the equivalent remove_Constraint or whatever. Please help, and I look forward to hearing your responses.
In Christ,
Aaron Laws