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
1
vote
0 answers

Up to what model size can a JXTable work properly?

I am building a Swing UI for analysis data dealing with potentially hundreds of thousands of rows (only a handful of columns) and I would like to use a JXTable for visualization with filtering and sorting. Is there a rule of thumb up to what size…
user1573546
  • 523
  • 5
  • 13
1
vote
1 answer

persistent configuration, JTable, JXTable

I would like to store the state of my JTable (technically I'm using a JXTable if that helps) in some sort of configuration file. My goal is that when a user runs my spreadsheet program, its state (ie which columns are hidden, the column order) will…
Adam
  • 8,752
  • 12
  • 54
  • 96
1
vote
3 answers

Remove column from column control popup menu

Is it possible to control whether a column should be available in a column control popup menu? I'm aware of toggling (Disable/enable using CheckBoxList) and gray-out the column. But I do not want column entry in popup menu as The column is must-have…
user2122853
  • 73
  • 1
  • 9
1
vote
0 answers

JXTableHeader resetSortOrder on Shift + click

I use JXTable and JXTableHeader to display sortable tables. JXTableHeader supported a way to reset sort order, by holding down shift and left clicking on the headers at the same time. The problem is the following: This reset mode is not possible…
user1405469
  • 195
  • 9
1
vote
1 answer

Changing current selection in JXTable doesn't work?

I have a JXTable where the users need to introduce data, then save it. Only the thing is, the user has to deselect the last edited cell before saving it. If they don't, the data of that cell isn't saved. The only thing I thought of is to change the…
Xaviraan
  • 73
  • 1
  • 5
1
vote
1 answer

JXTable - how to update highlighters on sorting the table

I have a JXTable with custom table model. I added 2 ColorHighlighter's with custom HighlightPredicate's. Problem is when i click on the column header, the table sorts the rows, BUT the highlighter's remain as for the old view. How can I update the…
drzymala
  • 2,009
  • 20
  • 26
1
vote
1 answer

JXTable and Header Cell Above Scrollbar

JTable and JXTables have a header cell that is generated above the scrollbar. It's a small cell but I would like to use it to render an icon and popup menu. How might I access this header cell? Thanks
LDAdams
  • 682
  • 4
  • 18
1
vote
0 answers

In JXTable, root column is not taking other column color

I used swingx for table.The first column is not taking color rendering of JxTable. Plz give your valuable suggestion. Thanx in advance.
adityak
  • 192
  • 1
  • 1
  • 12
0
votes
1 answer

JXTable - How to render column as Icon/Label?

I have a JXTable up and running but I would like to render a column as a label or Icon. I already have the code to convert the string value into a label (with a series of icons appended together). I just need to know how to tell the table to render…
javydreamercsw
  • 5,363
  • 13
  • 61
  • 106
0
votes
2 answers

Views sorting and filtering: GlazedList sorting and filtering + JTable vs Glazed event list+JXTable

I want to create user views (tables) with sorting and filtering capabilities. I use EventList (Glazed Lists) as source for EventTableModel. There are also Sorted List and some filtering items in GlazedLists, so I can use them for creating view. But…
Artyom Chernetsov
  • 1,394
  • 4
  • 17
  • 34
0
votes
2 answers

jtable and intellij - how do i set the columns to appear next to the the right side

On intellij I have created a JXTable on a JPanel. I have added two columns and set their width. I want the panel too be much longer then the jxtable and so i set its size to be very large. The problem is that the columns are are added to the left…
Bick
  • 17,833
  • 52
  • 146
  • 251
0
votes
0 answers

Java WebLookAndFeel doesn't shows Column Control Popup Menu of a JXTable

I have an issue with Java WebLookAndFeel class. I have an application made in Java Swing in which I set the look and feel using it. Inside the app, I have a button that launches a new JDialog that contains a JXTable inside a JScrollBar. The problem…
0
votes
1 answer

Out-of-table column sorting with Glazed Lists and a JXTable

I'm using Glazed Lists to sort and filter a JXTable. How can I sort on out-of-table values? That is, I would like to be able to format column values in my own way, yet sort on raw values. My current relevant code: EventList foos =…
melkamo
  • 642
  • 1
  • 6
  • 14
0
votes
1 answer

JXTable high cpu when visible

I'm debugging legacy code that displays a small amount data (< 100 entries) using a JXTable. All the functionality works but when there is at least one entry in the table, the CPU usage climbs to over 95% iff the pane is displayed. Instrumentation…
AlexHomeBrew
  • 117
  • 9
0
votes
1 answer

Highlight related cells in hairline cross pattern on selection

I want to add hairline cross highlighting to a JXTable. But I can either highlight the current row or the current column; never both. What I currently have is the red part, the yellow part is what I want to add. Below a SSCCE1. import…
mike
  • 4,929
  • 4
  • 40
  • 80