6 Replies Latest reply on Jun 17, 2011 5:11 PM by Narayan

    help use JTable

    863138
      Good evening, I am writing because I have a problem.
      I'm doing a web application in JavaFX, and I need to use the JTable Java library.
      Although he has made some attempts, I have problems when I have to declare a two dimensional array object.
      I have done so, but I did not recognize.

      String[] columnNames = {"First Name","Second Name"}
      Object[][] data = { {"Kathy", "Smith"}};
      JTable table = new JTable(data, columnNames);

      Can anyone tell me the syntax that I must follow?