File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JTable vs. JXTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable vs. JXTable" Watch "JTable vs. JXTable" New topic

JTable vs. JXTable

Jason Richard
Ranch Hand

Joined: Oct 05, 2007
Posts: 79
I'm working on a GUI that I'm doing a lot more complex items by the day. I've noticed that there is also a JXTable out there instead of just a JTable.

My question is simply this: before i get too deep into my project, are the benifits/costs of JXTable worth making a switch too over the standard JTable, or should i just wait to see if i run into something that the JXTable does that the JTable won't? (or won't easily).
Brett Spell
Ranch Hand

Joined: Feb 24, 2001
Posts: 97
It depends on what functionality you need: if JTable does everything you need then don't bother with JXTable. According to its documentation:

A JXTable is a JTable with built-in support for row sorting, filtering, and highlighting, column visibility and a special popup control on the column header for quick access to table configuration.

If you don't need any of that then don't use it.
It is sorta covered in the JavaRanch Style Guide.
subject: JTable vs. JXTable
jQuery in Action, 3rd edition