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 713053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:55:05+00:00 2026-05-14T04:55:05+00:00

I am working in JTable and I have a requirement like this. Say There

  • 0

I am working in JTable and I have a requirement like this.
Say There are 4 columns namely 10,20,30,40

Now the value usually comes like 10-20 20-30 and 30-40
So it was easy for us to display the name for this range.

But recently the values have started to come randomly like 15-25 10-25,25-30

In this case our JTable should dynamically adjust the size of the row such that it represents that range only meaning it should not disturb the existing cells and only rows which diverge from the normal range.

TO be more precise I should be able to merge and split cells based on the content of the cell.

EDIT:Its like this.A person is assigned a task for a particular point of time

10|          |20|          |30|

  |----------|
                |----------|

represents 10-20 and 20-30 .The first line 10,20,30 are the column names.The second line is graphical representation of a box representing 10-20 and 20-30.Now if a value 15-25 comes

10|          |20|          |30|

  |----------|  |----------|
       |-----------|
           |-----------|
    |-------------|

  |----------|  |----------|

Actually there is no gap between in the first and fourth row just to show that they are seperate cells.Now since data comes in the intermediate ranges of like 15-25 where we have to re align the cell shape as above I posted this.

  • 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-14T04:55:05+00:00Added an answer on May 14, 2026 at 4:55 am

    The only place that I have seen this implemented in Swing is in the third example in this link. The key aspects that are covered here are overriding the getCellRect method in JTable and overriding the table UI to do the painting.

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

Sidebar

Related Questions

Is there a way where I can have a parent JTable sort value be
I'm trying to have a JTable edition working like in excel: if I start
I have created a JTable but for some reason row selection is not working
I am working on a Java GUI, in which i have a JTable in
I am working with a JTable that contains a few columns with different datatypes
So i am working with a JTable , It has Columns A-K . with
I have created a simple GUI which includes a JTable. This table may be
Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
Working with H2 I get this error when I try to write a row
Working with JSF 2.0 (and Primefaces), is there a way to fire an ActionListener

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.