If you want to use this tree-table model, you'll need to create an instance of it and then pass that instance to the JXTreeTable constructor, like so.
如果您想使用这个树形表模型,您将需要创建一个它的实例,然后将实例传递到JXTreeTable构造器,像这样。
In this example, you are not supplying a list of named users in the constructor, so the table returned will be a configuration table, not a permissions table.
在本示例中,您并未在构造函数中提供命名用户的列表,因此返回的表将为配置表,而不是权限表。
Then you change the constructor to take the name of the table, as well as the names of the fields in the table.
然后,把构造函数修改成接受表的名称和表中字段的名称。
应用推荐