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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:55:08+00:00 2026-06-08T08:55:08+00:00

I was given a code which uses GridData as shown below: public DetailView(Composite parent)

  • 0

I was given a code which uses GridData as shown below:

public DetailView(Composite parent) {
        carModel = new Composite(parent, SWT.NONE);
        carModel.setLayoutData(new GridData(GridData.FILL_BOTH));
        carModel.setLayout(new GridLayout());
}

public void constructView() {
        carModelViewer = new TableViewer(carModelComposite, SWT.BORDER);
        CarModelProvider = new carModelContentProvider();
        carModelViewer.setContentProvider(carModelProvider);
        carModelViewer.setLabelProvider(new CarModelLabelProvider());

        Table carModel = carModelViewer.getTable();
        carModel.setHeaderVisible(true);
        carModel.setLinesVisible(true);
        carModel.setLayoutData(new GridData(GridData.FILL_BOTH));

        TableColumn carModelColumn = new TableColumn(carModel, SWT.LEFT);
        carModelColumn.setText("Model:");
        carModel.pack();
}

I wanted to know if its possible to edit the cells in the UI of the application. I tried reading the API and found two methods:
1. setCellEditor()
2. setCellModifier()
but am not sure about the parameters. Any help??

  • 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-08T08:55:11+00:00Added an answer on June 8, 2026 at 8:55 am

    GridData is completely unrelated to contents of cells, it just tells how the entire table should be positioned inside the parent composite. If you want to change the layout of the table, read Understanding layouts in SWT.

    If you want to let users change contents of cells instead, then read Building and delivering a table editor with SWT/JFace.

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

Sidebar

Related Questions

Hello friends i am running code given below which contains the setLogTimeEntery function and
Given this JavaScript code (which is just a comment referring to a url): //
I have been given some generated code which looks like so: <form id=form1 method=post
Given the following lines of code which is using JQTOUCH: $('#customers').bind('pageAnimationEnd', function(e, info){ if
I'm trying to write a code which, given a path to an item in
I am looking for a C/C++ code which can get icon for a given
We are developing an application which consists of: a source code base given to
I have an Excel Workbook which has some VSTO-based c# code. Given a known
I hit a bug in my code which uses WSARecv and WSAGetOverlapped result on
Given: ASP.Net application which uses a legacy COM library legacy COM library which 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.