How do I configure the Column names in a Scala Table?

后端 未结 2 2049
滥情空心
滥情空心 2020-12-19 17:09

I am writing a Scala program to manage a database, and have drawn all of the data into a 2-dimensional ArrayBuffer where row 0 is the column names, and the subsequent rows c

2条回答
  •  臣服心动
    2020-12-19 17:28

    assuming you are talking of swing, if you put your table inside a scrollpane and create your table model based on the array buffer shown, the first row will be taken as column names by default.

提交回复
热议问题