How to locate JLabels to an absolute position on Java GUI

后端 未结 3 1743
醉话见心
醉话见心 2020-12-02 00:08

I have many JLabels (which includes ImageIcons) in a JPanel.

And this JPanel is only a panel on the GUI; there ar

3条回答
  •  情深已故
    2020-12-02 00:58

    Take a look at MigLayout, which allows you to do absolute positioning, it's not part of the JDK, but a seperate download.

    It's very good as far as layout managers go and does absolute positioning, plus a whole load of other things.

提交回复
热议问题