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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:34:37+00:00 2026-06-05T17:34:37+00:00

Every second line is coloured on the table in the view. I have the

  • 0

Every second line is coloured on the table in the view.

I have the same table twice on the editor, but it doesn’t show this separation:

My code of the lower table in the editor:

table1 = new Table(c, SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION
            | SWT.V_SCROLL);
    TableLayout layout1 = new TableLayout();
    table1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    layout1.addColumnData(new ColumnWeightData(20, 50, true));
    layout1.addColumnData(new ColumnWeightData(20, 50, true));
    layout1.addColumnData(new ColumnWeightData(20, 50, true));
    layout1.addColumnData(new ColumnWeightData(20, 50, true));

    table1.setLayout(layout1);
    table1.setLinesVisible(true);
    table1.setHeaderVisible(true);

    TableColumn colReihe = new TableColumn(table1, SWT.LEFT);
    colReihe.setText("Reihe");
    TableColumn colPlatz = new TableColumn(table1, SWT.LEFT);
    colPlatz.setText("Platz");
    TableColumn colPreis = new TableColumn(table1, SWT.LEFT);
    colPreis.setText("Preis");
    TableColumn colStatus = new TableColumn(table1, SWT.LEFT);
    colStatus.setText("verkauft");

    this.tableViewer2 = new TableViewer(table1);
    this.tableViewer2.setContentProvider(new ArrayContentProvider());
    this.tableViewer2.setLabelProvider(new ITableLabelProvider() {
            ....some more code here....
            this.toolkit.adapt(table1, true, true);
  • 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-05T17:34:38+00:00Added an answer on June 5, 2026 at 5:34 pm

    I don’t really understand your question. Do you expect the table on the lower right of your screenshot to look like the table on the left? If that’s the question, check, whether you call toolkit.adapt(table, true, true); with the left table as well, or try to remove that call with the right table. The FormToolkit sets a lot of colors and styles on widgets.

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

Sidebar

Related Questions

I have a line chart that is updated every so and so seconds, similar
I have two processes: Writes to two tables every second (ish) Reads from said
I have an application that needs to check a website feed every second. Sometimes
I'm building an application that needs to fire an event every second, but it
I want to have a clock showing current time and refreshes every second. The
My ASP.NET MVC page uses JavaScript/jQuery to poll my database every second. This is
I have a texbox and I want to change it's content every second in
I have a counter that counts up every 1 second and add 1 to
I have an activity 'A' which is called from Main activity every second until
I have created a simple command line tool that outputs hello world. This is

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.