code: private void ReadInTable(String clasz) {
          this.clasz = clasz;
          DefaultTableModel tableModel = (DefaultTableModel) table.getModel();
          while (tableModel.getRowCount() > 0) {
              tableModel.removeRow(0);
          }
          try {
              BeanInfo sourceBean = Introspector.getBeanInfo(Class.forName(clasz), Object.class);
              PropertyDescriptor[] ps = sourceBean.getPropertyDescriptors();
              for (int i = 0; i < ps.length; i++) {
                  if (ps[i].getPropertyType().equals(Class.class)) {
                      continue;
                  }
                  tableModel.addRow(new Object[]{ps[i].getName(),
                          ps[i].getPropertyType().getName(), ps[i].getName()});
              }
              hasRead = true;
          } catch (Exception e) {
              JOptionPane.showMessageDialog(GenXml.this, "发生错误:" + e.getMessage());
          }
      }
docs: 读入文件夹列表