问题
Is there a Java library that enables gathering UI usage statistics?
Something that feels like log4j?
回答1:
If you are working with the Eclipse plateform you might have a look on the Usage Data Collector project:
http://www.eclipse.org/epp/usagedata/
回答2:
I answered this question before I saw yours.
Specifically, I would point you at the NetBeans Platform Gesture Collection Infrastructure.
Although planning to use it, I have not yet, but it is much more mature than the Eclipse Usage Data Collector project listed here.
Porting a generic Swing project to the NetBeans Platform is not too hard, can be done piecemeal, and there are a number of examples (just google "porting swing project to netbeans"). If you decide to go this route, see this tutorial. Geertjan has some other blog entries on porting (and just about every other topic).
来源:https://stackoverflow.com/questions/3262868/is-there-a-java-library-that-enables-gathering-ui-usage-statistics