且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Beans绑定NetBeans中的JTable

更新时间:2023-12-04 09:47:16

I have it working. You can't really use the "Bind" menu option for JTables. Here's how to get it to work:


  1. 右键单击JTable。

  2. 点击表格内容。

  1. Right-Click the JTable.
  2. Click "Table Contents".

  1. 绑定来源:表格

  2. 绑定表达式:$ {var}(其中var是列表的名称bean)。


  • 点击列标签。

  • 将列映射到表达式。它应该看起来像$ {id}而不是$ {var.id}。

  • 注意:映射到列的每个字段必须具有一个吸气剂。

    Note: Each field mapped to a column must have a getter.