Questions tagged [beans-binding]

Process of binding the GUI interface component with the data source component (like example a database) so that the data is automatically kept synchronized when changes are made both on the GUI and on the data source component.

35 questions
6
votes
1 answer

How to bind a JList to a Bean class property

I tried to bind a JList to a binding class property, Vector. In the binding class, the Vector is updated when a JTextField in UI is updated. public void setName(String name) { String oldName = this.name; this.name = name; Vector…
Débora
  • 5,816
  • 28
  • 99
  • 171
5
votes
1 answer

Beans Binding for JTrees

Is beans binding for JTrees currently supported? I've found this forum post from 2008, but I didn't know if there was any development. If it does exist does anyone know where i might find some documentation on it?
Intern87
  • 469
  • 1
  • 6
  • 18
4
votes
1 answer

Saving data when using JPA and BeansBinding

I am currently experimenting with JPA in a desktop application, while using BeansBinding to make the GUI development easier. So far the results are quite good. As an example application I have a small DB with only one table. I successfully created…
exhuma
  • 20,071
  • 12
  • 90
  • 123
3
votes
1 answer

Swing DataBinding Rollback changes when cancel button is pressed

I have a simple JFrame with several jtextfields inside, the text property of each jtextfield is bound with a field of an object through databinding (i used window builder to setup the binding), when the user change something on the JTextField the…
aleroot
  • 71,077
  • 30
  • 176
  • 213
3
votes
1 answer

JTable: how to get selected object from table binded to datasource

I have JTable which "elements" property binded to List of objects, this is master table. There is also details table, which "elements" property binded to selectedElement in master table. I did it with help of NetBeans GUI builder. Now I try to get…
Artyom Chernetsov
  • 1,394
  • 4
  • 17
  • 34
2
votes
1 answer

How to bind a JProgressbar to a Bean class's property

Any one can give a sample code or a link how to bind a JProgressbar to a bean class'property in Swing applications?
Débora
  • 5,816
  • 28
  • 99
  • 171
2
votes
2 answers

What is the state of Java Beans Binding?

I found an old article http://www.artima.com/lejava/articles/beans_binding.html And a deserted project page http://java.net/projects/beansbinding Is it still alive? Can I download something? Is there a tutorial?
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
2
votes
2 answers

What will replace Beans Binding in Java 7?

I read somewhere - the link escapes me - that Beans Binding will not be a part of Java 7. Does anybody know what will replace it? Also, are there any alternatives to beans binding in the current release of Java?
Leonard H. Martin
  • 2,734
  • 4
  • 23
  • 26
2
votes
1 answer

Composite value in BindingBeans not updating

I have a simple POJO like so: class A{ private int a; private int b; public int getC(){ return a + b; } //getters and setters for a and b } This entity is bound using BindingBeans to a JTable. Any changes made to a and…
user489041
  • 27,916
  • 55
  • 135
  • 204
2
votes
4 answers

Refresh JTable after Update

Here is a simple example of the problem I am running into. I have a simple class: public class Test{ Integer a; Integer b; //getters and setters public void getC() { return a + b; } } Note that it has a property…
user489041
  • 27,916
  • 55
  • 135
  • 204
2
votes
1 answer

ClassCastException Beansbinding Java

Can you tell me why I get ClassCastException exception here? protected void initDataBindings() { BeanProperty apprenticeBeanProperty = BeanProperty.create("vorname"); ObjectProperty jTextFieldObjectProperty =…
1
vote
1 answer

Binding Swing components to Java objects

I'm currently working on a Desktop Application in Java using Swing. I’m using the beansbinding framework by jdesktop.org to synchronize the state of GUI components and data objects. However I’m running into troubles with the framework, forcing me to…
scravy
  • 11,904
  • 14
  • 72
  • 127
1
vote
1 answer

How to call Bean classes not in default package

Netbeans IDE supports beansbinding and we can call easily a bean in the default package (without instantiating beans can be seen in the Inspector). But if our UI components (swing) is in another package, and beans are in another package, we have to…
Débora
  • 5,816
  • 28
  • 99
  • 171
1
vote
1 answer

Swing Bean Binding for tables in NetBeans

I want to know how to filter data in a database table and insert into a swing table with bean binding in NetBeans. I read NetBeans beanbinding tutorial.But is not much helpful.(It shows how to load data directly from a database table)I want to know…
Débora
  • 5,816
  • 28
  • 99
  • 171
1
vote
0 answers

Why is the BeansBinding jar still not updated?

Why is the widely distributed BeansBinding jar version still beansbinding-1.2.1.jar? It can be downloaded from Maven Central, or with Netbeans distributions, or installed by the JFormDesigner plugin. Why doesn't it contain the latest changes made…
oshatrk
  • 499
  • 3
  • 14
1
2 3