Solved

Binding problem with JGoodies and Java 7

Posted on 2014-04-18
11
495 Views
Last Modified: 2014-04-28
Hello!

I am working for my customer in a Java EE project, where we use JGoodies for binding JTable rows to text fields below the table. This works fine, but in one dialog, there are filtering check boxes. When all the check boxes - three in number - are clicked, all items become visible. If non are checked, the table remains empty. It is possible to filter out some rows, but JGoodies, which uses the table model, is not aware of this filtering. When clicking the first row in the filtered table, the first row elements of the unfiltered table are displayed in the text fields below. Is there a way to circumvent this problem?

Best regards!
0
Comment
Question by:sae1962at
  • 6
  • 5
11 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 40008519
Isn't the correct place to ask about 3rd party Java gui components at that 3rd party? afaicr those things are largely undocumented
0
 
LVL 1

Author Comment

by:sae1962at
ID: 40011091
I think that the problem is by no means a JGoodies problem, where the code is documented fine. The problem is in my code, as I filter the JTable and somehow, the model is not informed about it.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40011228
It's difficult to say, as you've posted no code at all
0
 
LVL 1

Author Comment

by:sae1962at
ID: 40012347
Here is a first try, where I couldn't manage to bind the text field with the Bindings.bind method, but it shows the problem. I adopted some code found on the Internet for my purposes.

The table is filtered according to the combo box contents. If the GENERAL type of eating is selected, the binding of the text field below is fine. If, however, the combo box selects parts of the table contents, the text field below still gets the information from the (unfiltered) table model. Here, I need information how can I do this in the proper way.
Improved-table-filter-binding-de.zip
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 40015325
I can only imagine that filtering is not supported together with binding, but of course the people who will be able to tell you definitely are the maintainers/authors
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:sae1962at
ID: 40015416
Yes, that's what I think also. What I need is an JGoodies expert who can tell me whether or not binding could work in such a case. That's why I asked for further attention of JGoodies experts - if any.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40015483
There almost certainly won't be any. The JGoodies 'experts' are ... the authors
0
 
LVL 1

Author Comment

by:sae1962at
ID: 40016917
I mean beside the authors, who are not necessarily programmers, there could be some programmers that encountered already such a problem & solved it in one way or another...
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40016963
I mean beside the authors, who are not necessarily programmers
Well i certainly hope they are programmers

It's possible that someone here might know, but not probable imo
0
 
LVL 1

Author Comment

by:sae1962at
ID: 40020115
I found the "answer" of the question by asking a rarely-found JGoodies expert - expert, because he knows the answer to this question. He told me that he knows since a long time what Karsten Lentsch, the main author of JGoodies, wrote about this issue. The reason for this behaviour is that currently, SelectionInList does not support a filtered JTable. So, to me, there is a "missing" feature to be programmed by myself or by our team...
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 40020213
So, what i (we) said earlier then ...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
eclipse java  build path 6 44
diffSum example 4 24
Windows and other UI names - The Proper names for the Various elements! 1 58
Regular Expression Calculator Tester 2 54
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now