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
0
votes
1 answer

Jtable show and hide column and save the configuration.

I'm using JXTable which has a setColumnControlVisible(true) which shows a button on the upper right corner above scroll, we can show and hide column by pressing it. I want to remember the changes when the app get close, but cannot figure it out yet,…
Aqeel Haider
  • 603
  • 7
  • 24
0
votes
0 answers

setRowHeight(int) works but not setRowHeight(int, int) with JXTable

I have a problem to update JXTable's rows height. I have tested an example from this post (Setting the height of a row in a JTable in java) : import javax.swing.*; import javax.swing.table.DefaultTableModel; public class DemoTable { private…
Skartt
  • 551
  • 2
  • 7
  • 19
0
votes
1 answer

Preventing JXTable from automatically adjusting column widths

There's a specific scenario I've run into with JXTable (maybe its even a JTable issue) regarding what happens AFTER I execute a 'Pack All Columns' call. 'Pack All Columns' works fine, but when I then manually make a column width smaller, upon the…
jdb1015
  • 127
  • 6
0
votes
1 answer

Making a clickable JXTable or JTable

I have created a web crawler and then a GUI for users to search through the database etc… What I would like is now for the JXTable to clickable to go to the URL. Here is my code for the JXTable: outPut = new JXTable(tableModel); add(new…
Relentless
  • 81
  • 1
  • 11
0
votes
1 answer

Color Cell based on value

im using JXTable and trying to color the row based on value, BUT the show empty(but the render is running because it show the syso in console) public class MyCellRenderer extends JLabel implements TableCellRenderer { public Component…
user2582318
  • 1,607
  • 5
  • 29
  • 47
0
votes
0 answers

JTable Multiple RowFilter for Different COlumn

im using this code to filter based in which checkbox is selected, positiveFilter= RowFilters.regexFilter(0, "^pos", columnStatus); neutralFilter = RowFilters.regexFilter(0, "^neu", columnStatus); negativeFilter =…
user2582318
  • 1,607
  • 5
  • 29
  • 47
0
votes
1 answer

Set Multiple RowFilters On JXTable

How can i add more than one filter for 1 Row in JXTable? I tried using: int col = jxTable.getColumn("Tipo").getModelIndex(); RowFilter filter1 = RowFilters.regexFilter(0, "^N", col) RowFilter filter2 = RowFilters.regexFilter(0, "^N",…
user2582318
  • 1,607
  • 5
  • 29
  • 47
0
votes
2 answers

JTable ToolTip as a JComponent or JPanel

I'm using a JTable (specifically a JXTable) and when I hover over a cell I would like to present some sort of JPanel or Component (to show some graphical data using JFreeChart) I know the JTable has this: …
mainstringargs
  • 13,563
  • 35
  • 109
  • 174
0
votes
1 answer

JXTable width to adjust according to content

I have a JXTable that is created like this: JScrollPane scrollPane = new JScrollPane(); contentPanel.add(scrollPane, BorderLayout.CENTER); tbl = new…
Rico Strydom
  • 537
  • 1
  • 6
  • 26
0
votes
2 answers

Resizing the column of jxtable automatically

I am using JXtable in my project.When I double click some column,it will be expanded or contracted to the highest character cell in that column. Is there any way of creating JXtable so that all its columns shall be resized to the size of its highest…
svkvvenky
  • 1,122
  • 1
  • 15
  • 21
0
votes
1 answer

How to resize row height of JXTable

i'm writing a piece of code to display images in JXTable retrieved from a database everything works fines .I have fixed the row height of that table , now i want to change the row height dynamically using mouse. How to acheive this . I know…
maverick
  • 171
  • 1
  • 9
0
votes
1 answer

GlazedLists clear throws error on sorted JTable

I would like to include glazedlists in an existing project that uses JTables and JXTables. Mainly because of the easier event-handling. I have made a view tests and came across a problem when exchanging the complete list content. I do this by…
langm
  • 171
  • 7
0
votes
1 answer

JTable split header Disable Sorting

Currently every header contains the name of the column and ocassionally a combo box below it. Whenever the combo box is clicked the jtable automatically sort. Is there a simple way to disable sorting for just the combo box clicks while preserving…
0
votes
1 answer

tab escape sequence not working when exporting from JXTable to excel (.csv) file

i am trying to export data from a JXTable to a .csv file(excel). i am using the following code for this: public void exportToExcel(NGAFStandardTable table, File file){ int i = 0; int j = 0; try{ TableModel model…
sonal
  • 101
  • 1
  • 4
  • 13
0
votes
2 answers

Swing JTable - Change background color of a row in function of the previous row

I have a swing JXTable and the requirement is that background color must change if a field differs from the previous row. Here is an example : Row 0 : var = 1 -> Background BLUE Row 1 : var = 1 -> Background BLUE Row 2 : var = 2 -> Background…
FlorianB
  • 31
  • 4