Swing Overlapping components

后端 未结 3 1680
悲&欢浪女
悲&欢浪女 2021-01-06 14:06

I have two AWT components in a Frame, Panel A and Panel B. I would like panel A to be sized to the height width of the frame (and maintain that size on frame resize), but I

3条回答
  •  渐次进展
    2021-01-06 15:12

    Your best bet is to have your own LayoutManager. The easiest way is probably to extend or proxy BorderLayout, and have a specific case to layout panel B.

提交回复
热议问题