glazedlists

keeping JTable selection in viewport

I'm using GlazedLists to autogenerate an EventTableModel from an EventList, for use with a JTable in a JScrollbarPane. I'm using the EventList as a FIFO, a bunch of elements are added to the end, then a bunch of elements are sometimes removed from the beginning. When elements are removed, the selection works exactly as I expect: even th...

How do I build a HTML table from Glazed List?

Lat week I downloaded the Glazed List library into eclipse. I have been looking through the tutorials and it seems that everything is designed to run jTable or SWT. I am need a backing list(Map, table, whatever) for simple HTML tables that can be sortable. I have been doing this by rolling my own classes to create HTML tables from either...

GlazedLists AutoComplete Changing Selection Doesn't Work

I am using the GlazedLists (1.8) library in my project, and I have been having trouble getting autocomplete working properly on my combo boxes. I installed a KeyListener on comboBox.getEditor().getEditorComponent() to catch when a user hits enter, so that I can do something based on what item they select in the combo box. I installed it...

Creating and using Multiple Filters/Searches using JTable or GlazedLists

I looked up how to use multiple filters on here with a regular table and the answers all pointed to GlazedLists. However, the answers didn't specify how to use it. I was able to get one filter to work but do not know how to get more than one. For one filter I used: // nameE is a BasicEventList containing classes (name) which // c...

Java glazedlists: how to update a table row

I'm missing something obvious here. I have a glazedlists EventList<X> where X is my custom class. This list contains a bunch of values. When I update one of the values, how do I make sure the GUI updates its display for that row? ...

Database to GlazedList/Jtable and then edit the database through the GlazedList/JTable

I am able to break this problem down into two questions: What is the best way to put the contents of a database (MS-Access) into a GlazedList/JTable? How do I make sure any changes made to the GlazedList/JTable are reflected on the database (MS-Access)? Here are the things I know: I know how to retrieve/manipulate the information f...

Editing JTable from RestulSet Table

Continuing this question. My problem is that I can not edit my JTable. I get an exception and the Object value instead of what I should be seeing. I am using the ResultSet Table code with a MS-Access database and with a few modifications. My code can be found here. I run into an error when I rs.updateRow() is called. java.sql.SQLExcept...

Groovy 'as' keyword to implement 2+ interfaces

Dear All: I would like to implement a Glazed List that has both an AdvancedTableFormat and WritableTableFormat interface. I am reading here: http://www.jroller.com/aalmiray/entry/glazedlists_groovy_not_your_regular and for one interface it seems this is possible in Groovy with the "as" keyword: # return new EventTableModel(linksList,...

GlazedLists and JTable with multiple sources

I have 3 ArrayLists and a JTable. I would like to be able to add/edit/remove elements from the selected (from one of the 3) ArrayList by selecting the elements in the JTable and for example clicking on a button. I have this code for using only one ArrayList: /* ... */ EventList<MyClass> eventList = GlazedLists.eventList(myFirstArrayL...