Questions tagged [jxtable]

An enhanced Table component in Java, with support for general SwingX sorting/filtering, rendering, highlighting, rollover and search functionality

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. It can be instantiated just like a JTable, using a TableModel. However, a JXTable automatically wraps TableColumns inside a TableColumnExt instance. TableColumnExt supports visibility, sortability, and prototype values for column sizing, none of which are available in TableColumn.

Javadocs found here.

80 questions
3
votes
1 answer

Hide a column in JXTable?

I'm using a JXTable and I want to programmatically hide a column. Is there any convenient methode to do this (without setting miniman/maximal/preferd width) ? Thanks.
isoman
  • 742
  • 2
  • 9
  • 34
3
votes
1 answer

Why does my JXTable sort so much slower when I switch to GlazedLists' EventTableModel?

Updated I have updated this question to more accurately describe the cause of my problem and have included a simpler example that the one I originally used. I've included a simple example below to show the performance issue I'm having. When I back…
Ryan J
  • 2,502
  • 5
  • 31
  • 41
3
votes
1 answer

HyperLinks in JXTable column, populated from database

My question is how can I make the hyperlinks from a JXTable column (just for one/specific column) to action like "_blank" links of my default desktop web browser. I use JXTable and a DefaultTableModel, also I call the data from a sqlite database. I…
2
votes
1 answer

Swingx component provider: hide component on certain rows

I've subclassed Swingx's ComponentProvider to provide JButtons but on some lines of my JXTreeTable, I don't want to show any button. The final "result" I want is to have an empty cell, like what I get when showing an empty text in a column for which…
ixM
  • 1,244
  • 14
  • 29
2
votes
2 answers

JXTable: how to query state on column models?

I am writing some UI persistence methods for an application. I'm trying to expand to a JXTable with a fixed set of N columns in the table model. How can I get and set the following information for column #k in the JXTable, where k is the column…
Jason S
  • 184,598
  • 164
  • 608
  • 970
2
votes
1 answer

JXTable Highlighter

I would like to highlight data in a JXTable based on the previous data in the table. The data exists in "blocks" but the number of rows in each block of data varies based on a variety of factors; what I would like to do is alternately highlight…
user986713
  • 143
  • 1
  • 1
  • 6
2
votes
1 answer

Combining JXTable with RXTable

Problem I want the capabilities of JXTable with the "select all on edit" behavior of RXTable. Doing a simple override would be fine but the double click function of the RXTable doesn't work with JXTable. When using the Button Action mode it's…
Robbie
  • 892
  • 2
  • 7
  • 19
2
votes
4 answers

Is there a way to call JXTable.packAll() in a way that does not lock up the swing thread?

I am displaying lots of data in JXTable from the SwingX project. After loading the data, I call packAll() on the table but with 200 hundred columns and 30,000 records it might take 5 seconds or more. I'm calling this from the swing thread which…
Jay Askren
  • 10,282
  • 14
  • 53
  • 75
2
votes
1 answer

JXTable + GlazedLists + update during drag selection = problem

I'm having a table row selection problem with JXTable. If I run the following program, I get two frames that are viewing the same EventList. One has a JTable and one has a JXTable. Every 1000 milliseconds I update all the items with names…
Jason S
  • 184,598
  • 164
  • 608
  • 970
2
votes
1 answer

Make a scrollable ColumnControl popup JXTable

Good aftermoon. I am having a interesting issue with the propeties of a JXtable. The thing is that I have created the JXTable with too many columns, so I decided to let the user choose which column to display using the ColumnControlButton that…
Jesus Soto
  • 139
  • 2
  • 13
2
votes
1 answer

How to disable JXTable default search action?

I have a JXTable in my swing app. When I press ctrl+F on the table, default search panel is opening. This panel finds only substrings. I need to find similar words with my InputText. For example, I write "test" result may be "tost", "tests",…
N0D1R
  • 313
  • 2
  • 11
2
votes
1 answer

Coloring some rows in JXTable

I have a problem with coloring some rows after resorting columns. I want to coloring every row which the 4th column equals to zero. So that I have overridden prepareRenderer() method like this: public Component prepareRenderer(TableCellRenderer…
N0D1R
  • 313
  • 2
  • 11
2
votes
1 answer

How do I add a Button to JxTable?

I guess I would have to use a Highlighter, but I cannot figure it out.
HansDampf
  • 161
  • 2
  • 11
2
votes
1 answer

JXTable Incorrect Sorting

I am using a JXTable to display, filter, and sort some data. However, I'm getting some unexpected behavior when sorting. As you can see, the values are not ascending as expected, but sorted how a string would be sorted. To address the comments, I am…
dberm22
  • 3,187
  • 1
  • 31
  • 46
2
votes
2 answers

Very unusual cell highlighting in JXTable

I have a JXTable set up to paint the selected cell in a certain color. However, whenever the selected cell is in the top row, it appears as though ALL cells in the table are painted. Can anyone help me understand why, and how to resolve this…
DarkOwl
  • 263
  • 1
  • 5
  • 15