• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Q: JComboBox in JTableHeader to choose data array to display in table column

Charles Van Damme
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Java experts,

Is the following requirement not an often required one ? But I never can find an SSCCE of it ...
Adding JComboBox to JTable header and JTable Multiple Header Rows are the only discussions I founded on the Internet and nonetheless does not implement a JComboBox.

I had like to implement a multi-row JTableHeader with ...
- mandatory
. - A row with column titles; some of them are replaced by a JComboBox - E.g. "Under the power range", "Only in the power range", "Above the power range", "Total"
- possibly
. - A row for the column units - E.g. "KW", "MWH", "Hours"
. - A row for regrouping titles - E.g. "Electricity", "Heat"

How to achieve this ?
Which Swing topics do I need to study ?
Where can I find an example SSCCE ?

Many thanks
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic