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

  • SEARCH
  • Home
  • 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 7556645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:54:43+00:00 2026-05-30T11:54:43+00:00

I have this kind of progamming task without JavaFx, instead it’s Java Swing. I

  • 0

I have this kind of progamming task without JavaFx, instead it’s Java Swing. I realized my knowledge is still limited.

I have one single JTable.
But, within this JTable I need a custome Cell Renderer.
The goal is to make this kind of JTable: Example image

My current solutions are: Example Image

  1. Create a Single JTable:
    • get each Column and set its CellRenderer with a custom Renderer (below).
  2. Create a new Class implements TableCellRenderer:
    • return different JPanel inside getTableCellRendererComponent
      method using switch case (as column counted).

After hours, and hours, I think my current solutions is quite daunting tasks. Thus, My question is:

What are the simplest method of creating this Custom JTable to achieve the main goal as mentioned above?

  • 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-30T11:54:46+00:00Added an answer on May 30, 2026 at 11:54 am

    I’ve been facing this problem for a while, and I decided to do it myself. Extending the existing implementation of a table, adding some concepts for what I expect from a table, and writting some editors/listeners for that. All the same, but with a treetable.

    I’m working on this project called SUMI.

    It contains a java package (ar.com.tellapic.sumi.treetable) that is an extension of a JXTreeTable from SwingLabs.

    The project is being developed and I didn’t provide any documentation yet. You can do what you want by creating a renderer and if needed, an editor, for lastly attaching actions to each object.

    If you decide to use it and you need help, email me, I’ll help you without any problem.

    Or, you could read the source by your own.

    Regards,

    EDITED (again):

    To clear a little bit this answer, I’ve just created a wiki page in the project wiki and put the relevant code there. If someone feels that the code should be inserted here, please let me know.

    Basically, I try to explain how to find a straight solution to the renderer/editor problems you may find using JTable with your specifics needs by using part of my project, in order to get something like this:

    Note that the screenshot was taken after clicking on the respective tick-button.

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

Sidebar

Related Questions

I have this kind of code in some applications (from microsoft) [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage( Microsoft.Naming,
I have this kind of node in my xml document: <parent ...> <a .../>
I have ask this kind of question before, but it seems my previous question
I know questions of this kind have been asked before, but my situation differs
guys i have arrays in which i have to match this kind of text
I know this kind of questions have been asked already many times before. The
i have a class of this kind Class Car { private $color; public function
I have a file that contains this kind of paths: C:\bad\foo.c C:\good\foo.c C:\good\bar\foo.c C:\good\bar\[variable
We have lot of object with this kind of design : Interface and several
I have a bunch of occurrences of this kind of boilerplate code in my

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.