Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348970 - SpringLayout/FormLayout. Attach should be intuitive, not just any acceptable
Summary: SpringLayout/FormLayout. Attach should be intuitive, not just any acceptable
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Alexander Mitin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 17:31 EDT by Alexander Mitin CLA
Modified: 2021-06-04 16:45 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Mitin CLA 2011-06-09 17:31:40 EDT
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.
Comment 1 Wim Jongman CLA 2021-02-27 12:01:43 EST
Closing. Please reopen if this is still an issue.