Event Listeners in Java

后端 未结 5 568
陌清茗
陌清茗 2021-02-06 03:44

I\'ve been working with event listeners in AS3, but seems like there is none in java (except for graphics components). It\'s surprising.

The question is, how could i imp

5条回答
  •  猫巷女王i
    2021-02-06 03:52

    You don't need frameworks or Observer class. It's all built into the Java Beans spec since version 1.0 in 1995. It was supposed to be Java's answer to VB properties.

    Here's a tutorial:

    http://docs.oracle.com/javase/tutorial/uiswing/events/propertychangelistener.html

提交回复
热议问题