CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2012
    Posts
    4

    How to merge two cells into one in JTable?

    I need to do the table like this http://imgur.com/vrFmz . But I don't know how to merge two cells into one. What I need to do?

  2. #2
    Join Date
    Nov 2012
    Posts
    6

    Re: How to merge two cells into one in JTable?

    This screenshot doesn't tell exactly what you need.
    Can you give me an example?

  3. #3
    Join Date
    Aug 2012
    Posts
    4

    Re: How to merge two cells into one in JTable?

    In this example, on first table you can see cell with string "Частота настройки, кГц" on the left side and three row on the right side. It's exactly what I need.

  4. #4
    Join Date
    Nov 2012
    Posts
    6

    Re: How to merge two cells into one in JTable?

    Sorry, I still don't get it.

  5. #5
    Join Date
    Aug 2012
    Posts
    4

    Re: How to merge two cells into one in JTable?

    I need to unite cells. This means that I make one big cell from two small cells. But I don't know how to do this on Java.

  6. #6
    Join Date
    Nov 2012
    Posts
    6

    Re: How to merge two cells into one in JTable?

    So you want the 3500 row at the bottom to be in the one above?

  7. #7
    Join Date
    Aug 2012
    Posts
    4

    Re: How to merge two cells into one in JTable?

    http://imgur.com/C7VmN Can you see the one cell on the left side and and two cells on the right side?

  8. #8
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: How to merge two cells into one in JTable?

    If you are wanting to do this with JTable then the simple answer is it doesn't support merging cells. You can however add such support or use a third party component that already has this feature added (such as JIDE grid, but it's not free). Not sure if there are any free implementations available but a quick search may get you what you want.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured