Simple Question: ValueChanged Event in Java

前端 未结 3 1049
南旧
南旧 2021-01-26 01:53

Is there an event in Java that fires when a value changes? Like in this example

public class Example{
    public String var1 = \"Something\";
    public Int var2         


        
3条回答
  •  Happy的楠姐
    2021-01-26 02:31

    Check out the PropertyChangeListener http://download.oracle.com/javase/tutorial/uiswing/events/propertychangelistener.html

提交回复
热议问题