java - JTable how to render different swing objects in the same column -


I want to present different swing components in the same JT column. For example, I have to have some different combobox, jellybos and jacquack boxes in the same column. Provides information on how to render only one type of Cambodia per column, although this is not enough.

How can I set up a table cell renderer so that it can achieve this functionality?

If you want to use different editors / renderers in the same column, then the approach described above And you can override the JTable #getCellEditor () on the basis of cell (column and line intersection). JTable # getCellRenderer () can be overridden if necessary.

Here's a description of the strategy behind the tables to get the renderer / editor so that you can solve it, your problem


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -