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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:44:24+00:00 2026-06-10T07:44:24+00:00

First let me say that I do appreciate greatly everyone’s suggestions and comments. This

  • 0

First let me say that I do appreciate greatly everyone’s suggestions and comments. This is the only source I have to learn this new stuff.

I have only recently learned java and swing. My current project is in Eclipse and I have to do it in SWT. As some of you may have noticed from my many other post, I am very new SWT and only started working with it this week. I am having issues understanding the the new layouts. Things like do you have extend a dialog type (TitleAreaDialog, TrayDialog) in your dialog class? Composites, when you create the parent composite, how do you add child composites to the parent. Once they are added to the parent, how do you setup the placements of them, other than one above the other.

But with my current schedule for this project the most important thing right now is to get the user data and populate a table and then show the table in a separate dialog class.
I can figure out how to add custom buttons such as “Delete Row”, “Delete All Rows” later.

Creating a Table:

I have a singleton class that gathers users data and places it in a ArrayList.
I need to be able to create a table from the data in the arraylist.
If you can point me to some sample code on how to create a table from a arraylist or pseudo code it for me- that would be great!!

Creating a TableViewer:

I have to be able to display/edit the table in a separate dialog class.
I think I have to user a tableviewer to achieve this.
Will someone please just code me a simple dialog class and show me how to setup the table viewer.
Just a dialog with the Table displayed

Thanks for any help you can give me

OK – I have read over http://www.vogella.com/articles/EclipseJFaceTable/article.html. I have created code to fairly match his example but to my specifications.

If the TableViewer class (View.java) extends ViewPart do you add the view class to a dialog class? or does View.java become the dialog class?

  • 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-10T07:44:25+00:00Added an answer on June 10, 2026 at 7:44 am

    Your questions are really improving, but you should google more before you ask new questions.
    I already linked many SWT resources in a different question of yours and you really should read them 🙂

    Here is a really good tutorial by Vogella explaining how to use the Table in combination with TableViewer.

    Basically, the TableViewer is responsible for displaying your data via the ContentProviders. Since you have an ArrayList you might want to try ArrayContentProvider.

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

Sidebar

Related Questions

First, let me just say that I have searched for information on this topic;
First let me say that I did see this article: How to remove AspxAutoDetectCookieSupport
I can't figure this one out. At first let me say that my cache
Let's say that there are two PHP functions. function first() { $keyword = $this->input->post('keyword');
Let's say I have a form that collects a first name and a last
First let me say I have read this useful article thoroughly and am using
First let me say that I really feel directionless on this question. I am
Let me first say that I realize this question is vague and does not
Let's say that I have a hashref whose Data::Dumper output looks like this: $VAR1
Let’s say that my string is: test! I want to get the first character

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.