Table tabPatients = new Table(columns, data); JScrollPane scrollPatients = new JScrollPane(tabPatients); GridBagConstraints gbc_scrollPatients = new GridBagConstraints(); gbc_scrollPatients.fill = GridBagConstraints.BOTH; gbc_scrollPatients.gridx = 1; gbc_scrollPatients.gridy = 1; getContentPane().add(scrollPatients, gbc_scrollPatients);
JScrollPane scrollPatients = new JScrollPane(); GridBagConstraints gbc_scrollPatients = new GridBagConstraints(); gbc_scrollPatients.fill = GridBagConstraints.BOTH; gbc_scrollPatients.gridx = 1; gbc_scrollPatients.gridy = 1; getContentPane().add(scrollPatients, gbc_scrollPatients); Table tabPatients = new Table(columns, data); scrollPatients.setViewportView(tabPatients);
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question