Is it possible to cache all row renderers so that each row is rendered just once after table updates? I am not expecting much data.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
JTable
renderers serve the view; an RTL renderer should have no perceptible overhead unless your model'sgetValueAt()
implementation imposes it. Instead, let yourTableModel
acquire its data, caching only if necessary. This exampleextends AbstractTableModel
and acquires its entire data on construction. If acquisition will impose a delay, use an instance ofSwingWorker
, as shown in the API or in this example.