【发布时间】:2019-08-07 19:27:28
【问题描述】:
我想知道是否可以使用删除 JTextField GridBagLayout 并像这样删除。
PANEL.remove(gridx.5, gridy.5) ---
或者我怎样才能用这种逻辑删除。
【问题讨论】:
-
1) 参见What is the XY problem? 2) 使用
CardLayout,如this answer 所示。 3)为了尽快获得更好的帮助,edit添加minimal reproducible example或Short, Self Contained, Correct Example。