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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:43:58+00:00 2026-06-09T12:43:58+00:00

In a Java desktop app with SWT-based GUI, we have a table in which

  • 0

In a Java desktop app with SWT-based GUI, we have a table in which some rows must span multiple columns. This was solved with the approach shown in this official SWT Snippet: Snippet239.java

However, much later it was discovered that there’s a major problem with this approach on Ubuntu with the default Ambiance/Radiance theme: There are always vertical lines between the columns, even for cells that span multiple columns. This is shown in the following screenshots:

Ubuntu with Ambiance/Radiance theme

Ubuntu with Clearlooks theme

As you can see, in the first screenshot there’s a vertical line between Column 1 and Column 2. Does anybody have an idea how to get rid of these lines?

We’ve already tried the following:

  • Table.setLinesVisible(false): Doesn’t work, the vertical lines don’t go away.
  • Use owner-draw-based label providers to draw over those vertical lines: Doesn’t work, the vertical lines seem to be drawn on top of everything that is drawn by the label providers.
  • Attach paint listener to table to draw over the vertical lines: Doesn’t work, because there are lots of glitches whenever the table is scrolled or otherwise updated.
  • The Nebula project has a Grid widget where cells can span multiple columns, and it doesn’t have a problem with vertical lines, because the entire table is drawn non-natively. However, we can’t justify the effort to replace our table with a Grid widget just to fix the vertical lines problem on a particular platform with certain themes. Also, the Grid widget seems to be a pre-release alpha version.

Based on the things we’ve already tried, I assume the only way left is to muck around in the platform-specific internals of SWT, but I don’t even know where to start with something like that.

  • 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-06-09T12:44:00+00:00Added an answer on June 9, 2026 at 12:44 pm

    We solved this problem by using a Table with a single owner-draw column that emulates multiple columns.

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

Sidebar

Related Questions

i have a java based desktop app that i am hoping to rewrite as
I am developing a Java Desktop Application but have some confusions in choosing a
I have a chat like desktop java swing app, where i keep getting String
I have a small Java desktop app that uses Swing. There is a data
I want to write a small (5-6 table) desktop app in Java. I want
I designing a Java desktop app which will open web page, allow user to
I have a desktop app in Java that connects to a MySql database through
I'm writing a Java desktop client which will send multiple files over the wire
We have a Windows Java desktop application that creates some configuration files at %APPDATA%
I have a java desktop application for which I am trying to create a

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.