I have the following problem:
I want to populate several JLists with the class "Worker". In the Worker Class, there is a field of WorkerType (an Enum). The ListModel for each View should be the same Type and same Instance, so that when a Worker gets deleted in one View it shouldn't be visible in the other Views anymore. Is this possible?
Might be easier to use a single column JTable. A JTable supports filtering, so each view can be created to show only a specific worker type.
Read the section from the Swing tutorial on Sorting and Filtering for more information.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.