Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 611519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:47:34+00:00 2026-05-13T17:47:34+00:00

I have a table showing a list of objects; let’s call them Employee for

  • 0

I have a table showing a list of objects; let’s call them Employee for clarity’s sake.

The table shows Employee objects that are child objects of a given parent object which is also an Employee. What I would like to do is show a special header row with the parent object, either above (if possible) or below the normal column heading, but in a different color. I want the columns of the parent object row to be resized in sync with the rest of the table, and I don’t want the parent object to be selectible.

(Basically I want to show a self-contained table of child objects, along with a separate parent “context” which has the same fields.)

Is there a good way to do this? (one table with a special row? two tables, where the one for the parent context object is only 1 row vertical, and horizonally resizes to match the other?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:47:34+00:00Added an answer on May 13, 2026 at 5:47 pm

    I think you should make the special row always be rendered at row 0 in the table, using whatever renderer you need to change the color etc. That way you get the resizing for free.

    In order to make this row unselectable, I think you’ll need to override the createDefautSelectionModel method to your own implementation of ListSelectionModel. You can probably override the DefaultListSelectionModel to ignore a value of 0 (first row) in the setAnchorSelectionIndex method and setLeadSelectionIndex methods.

    Should work, but haven’t tested.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table view that's showing a list of bank transactions. When I
I have table view which is showing list of files to download. When I
i am working on an Android app that needs showing a list[table], inside the
Here's my case: I have a table view showing contacts. Add button in the
When showing data from a mysql table on an php page does it have
I have table with some fields that the value will be 1 0. This
I have a table showing information from a mysql table. I have three forms
I am using Struts1.3, I have Jsp page which is showing the list of
I have an NSOutlineView that I want to populate with a list of NSURL
Suppose I have the following schema: Table: Showing showing_id movie_id theater_id show_date show_time Table:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.