java.awt.Container.validate():public void validate() Validates this container and all of its subcomponents. The validate method is used to cause a container to lay out its subcomponents again. It should be invoked when this container's subcomponents are modified (added to or removed from the container, or layout-related information changed) after the container has been displayed. java.awt.GridLayout java.awt.GridBagLayout
我想通过选择其中的某些项,把这些项分别作为JLabel对象放置在JPanel中,并在这些JLable后面放置一些JTextField对象
Validates this container and all of its subcomponents.
The validate method is used to cause a container to lay out its subcomponents again. It should be invoked when this container's subcomponents are modified (added to or removed from the container, or layout-related information changed) after the container has been displayed.
java.awt.GridLayout
java.awt.GridBagLayout