你可以用PANEL.ADD()函数,至于整齐排列,你可以使用不同的布局管理器!!!

解决方案 »

  1.   

    楼上的兄弟,我通过选择JComboBox对象中的若干项(JComboBox中有20~100项),
    我想通过选择其中的某些项,把这些项分别作为JLabel对象放置在JPanel中,并在这些JLable后面放置一些JTextField对象
      

  2.   

    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