The Source for Java Technology Collaboration
Webmaster Alert: Posting to Jive Forums is currently not working. Estimated time for fix is unknown.

Home » java.net Forums » Java Desktop Technologies » SwingLabs

Thread: Request for comments: JXTablePanel

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Last Post: Apr 26, 2009 2:10 PM by: leftblank
acdesouza

Posts: 4
Request for comments: JXTablePanel
Posted: Apr 14, 2009 9:38 PM
  Click to reply to this thread Reply

Hi,

My name is Antonio Carlos da Graça Mota Durão de Souza, a.k.a., AC. I'm a Java Developer from Brazil, and, actually, developing a system using Java Desktop technologies.

I would like to share an UI Component that added some features in a table.

I just checked in JXTablePanel to the incubator. There's a demo to play with, although I'm more interested in feedback about the code:

https://jdnc-incubator.dev.java.net/demos/acdesouza/JXTablePanel/JXTablePanel.jnlp

I did it, at home, to solve a problem in my actual job: The software should show some data as a table, and the user should be able to:
- Export to a Microsoft Excel file;
- Create charts with selected columns;
- Filter table data without ask the database again.

So... I thought was a good idea to make those features as "plug-ins"

In the beginning I was using the JIDE components but, to share the component, I removed the dependency, then:

Actual features:
- Export data to Excel(Not working in Webstart need to be signed);
- Plot a chart with user selected columns;
- Filter plugins is a work in progress.

I'm wrote this thread to ask for comments/suggestions/ideas about code, features and how to test the component. But, most important:

How(much) this component can help you(and your client) make a better presentation(use) of your tabled data?

Thanks for any help,
AC

pietblok

Posts: 291
Re: Request for comments: JXTablePanel
Posted: Apr 15, 2009 10:36 PM   in response to: acdesouza
  Click to reply to this thread Reply

Bom dia AC,

I think it is a very nice idea. I don't know how often this has been done before and, if so, in a generalized way.

My experience in the commercial world of programming: for support and sales people, an MS Excel export facility is an important feature. They love to put anything in such a file. I myself, and my fellow programmers, used other means of gathering data (XML or just create a small program for one time use).

One question:

Is it possible to import an Excel file into the table?

Three remarks about the demo:

1) Either sign your jar or use the jnlp FileOpenService and FileSaveService. Exporting Excel files is an important feature, so you should demonstrate it.

2) Use ResourceBundles with English as the default. I know that there is a vast group of Java developers in Brazil, but I guess you also want to reach developers in the rest of the world.

3) I didn't quite understand the selections: why are all selection possibilities duplicate?

Piet

acdesouza

Posts: 4
Re: Request for comments: JXTablePanel
Posted: Apr 16, 2009 6:34 AM   in response to: pietblok
  Click to reply to this thread Reply

Goedemorgen Piet,

Thank you for your reply.

1) I tried to sign the jar but forgot about the packages.
I put JXTablePanel in same package of JXTable. So I should sign swingx.jar too.

I'll fix it by night... I mean Brazil's night ;).

2) Sure I want to reach as much developer as I could. I created a en_US properties but it's useless out of US. I'll change today.

3) I'm not sure where, but if you mean chart options it's to choose chart's X and Y axis.

[],
AC

acdesouza

Posts: 4
Re: Request for comments: JXTablePanel
Posted: Apr 16, 2009 9:55 PM   in response to: pietblok
  Click to reply to this thread Reply

Piet,

Finally!!! It's done.

1) Done.

2) Done. But need more tests to see where is missing translations....

3) I figured out the problem of duplications. The problem was I'm fulfilling the combos twice.

Thanks for feedback...

Is there some another data to fill the table to improve the demo?

[],
AC

leftblank

Posts: 1
Re: Request for comments: JXTablePanel
Posted: Apr 26, 2009 2:10 PM   in response to: acdesouza
  Click to reply to this thread Reply

I've checked out the demo and it's amazing, the dynamic chart generation and especially Excel exportation will definitely be appreciated by a lot of users, including me.

I've looked at the sourcecode as well like you requested, I'd say it looks reasonably nice, just the comments are slightly harder to read for something outside of Brazil ;)




 XML java.net RSS