swing-app-framework

Why can't I find Java desktop application in Netbeans 7.1

怎甘沉沦 提交于 2019-12-28 03:04:50
问题 I downloaded Netbeans 7.1 with all bundle from http://netbeans.org/downloads and installed it successfully on Windows 7. But I can't find Java Desktop Application which should be under Java category when add new project as 7.0 does. Where is it? Or what is the substitute one in 7.1? I need something to create GUI by dragging components. Thanks. 回答1: Look here: http://netbeans.org/bugzilla/show_bug.cgi?id=204661 Support for [B]SAF (JSR 296, basically the framework that was behind your "Java

Want javax.swing hook that tells me WHICH component in the hierarchy is executing an action

ε祈祈猫儿з 提交于 2019-12-12 08:59:42
问题 How with minimum code uglification can I write a debugging hook in a Swing program that would tell me which component in the hierarchy is actually handling each KeyStroke or mouse click and performing the action mapped to it in the component's action map? We are writing a complicated GUI and it would be very useful to know this information. 回答1: Put in a custom event dispatcher: http://tips4java.wordpress.com/2009/09/06/global-event-dispatching/ Also look up AWTEvent.getID(), MouseEvent,

How should manage Database transactions using Entity Manager in a relatively large application?

走远了吗. 提交于 2019-12-05 02:43:16
问题 I have developed a fairly large CRUD application, using a MYSQL Database and Swing Application framework and javax.persistence. My question is how should I best manage my transactions given the javax.persistence.Entitymanager? Currently, I have one instance of Entity manager held by the Application class. It is passed to all requesting pages, which in turn use it to persist and merge entities. I start a transaction on application start-up, and commit (and restart) each time a change is made.

Want javax.swing hook that tells me WHICH component in the hierarchy is executing an action

ぐ巨炮叔叔 提交于 2019-12-04 17:59:48
How with minimum code uglification can I write a debugging hook in a Swing program that would tell me which component in the hierarchy is actually handling each KeyStroke or mouse click and performing the action mapped to it in the component's action map? We are writing a complicated GUI and it would be very useful to know this information. Put in a custom event dispatcher: http://tips4java.wordpress.com/2009/09/06/global-event-dispatching/ Also look up AWTEvent.getID(), MouseEvent, KeyEvent in the API docs. This is how the software I work on monitors mouse and keyboard to see if the user is