Guest User

Untitled

a guest
Jul 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ResultSet rs = ps.executeQuery();
  2.  
  3. XYChart.Series<String, Double> series = new XYChart.Series<>();
  4. while (rs.next()) {
  5. String name = rs.getString(1);
  6. Double no = rs.getDouble(2);
  7. series.getData().add(new XYChart.Data<>(name, no));
  8. barchart1.getData().add(series);
  9. }
  10.  
  11. ResultSet rs = ps.executeQuery();
  12.  
  13. while (rs.next()) {
  14. String name = rs.getString(1);
  15. Double no = rs.getDouble(2);
  16. XYChart.Series<String, Double> series = new XYChart.Series<>();
  17. series.getData().add(new XYChart.Data<>(name, no));
  18. barchart1.getData().add(new XYChart.Data<>);
  19. }
Add Comment
Please, Sign In to add comment