| Summary: | SpringLayout/FormLayout. Attach should be intuitive, not just any acceptable | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Alexander Mitin <Alexander.Mitin> |
| Component: | WindowBuilder | Assignee: | Alexander Mitin <Alexander.Mitin> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | clayberg, wim.jongman |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Closing. Please reopen if this is still an issue. |
See SpringLayout_GEF_Test.test_MOVE_andCycles_A() It is now in state "be green for current implementation", but we should change it to: assertEditor(getTestSource(new String[]{ "public class Test extends JPanel {", " public Test() {", " SpringLayout layout = new SpringLayout();", " setLayout(layout);", " ", " Button buttonA = new Button();", " add(buttonA);", " ", " Button buttonB = new Button();", " layout.putConstraint(SpringLayout.WEST, buttonB, 75, SpringLayout.WEST, this);", " add(buttonB);", " ", " Button buttonC = new Button();", " layout.putConstraint(SpringLayout.NORTH, buttonA, 0, SpringLayout.NORTH, buttonC);", " layout.putConstraint(SpringLayout.WEST, buttonA, 5, SpringLayout.EAST, buttonC);", " layout.putConstraint(SpringLayout.WEST, buttonC, 5, SpringLayout.EAST, buttonB);", " add(buttonC);", " }", "}"}), m_editor); Order of putConstraint() invocations may be different.