This discussion is archived
2 Replies Latest reply: Nov 19, 2012 1:54 AM by 973901 RSS

Alternative to SpringLayout?

973901 Newbie
Currently Being Moderated
Most of Swing's layout managers have Pane representations in FX; except for SpringLayout. There doesn't seem to be a pane that offers the same incredible flexibility. AnchorPane seems to be the spiritual successor to SpringLayout, but it only allows you to anchor nodes to itself (and then only the same side, left to left, etc.), and not to each other. Trying the other panes and different methods of UI layout just hasn't been as fluid or successful as I got from SpringLayout. Is there anything I could use that would give me similar functionality? I've done a lot of searching and came up with zilch, so I apologize if this has been addressed before.
  • 1. Re: Alternative to SpringLayout?
    875756 Pro
    Currently Being Moderated
    MigPane is excellent. A slight learning curve getting into it but very good once you do:

    It's available via Maven too if you're that way inclined.
  • 2. Re: Alternative to SpringLayout?
    973901 Newbie
    Currently Being Moderated
    Hm. It might just be late, but this just looks like a GridPane clone. GridPane already allows you to specify how many rows or columns a cell uses, and lets you attach row and column constraints. I didn't see anything more than that in the MigPane documentation.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points