This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Proposed patch provides support for selection of mouse button used in PanAction in Visual Library API. The proposed implementation provides default MouseEvent.BUTTON2, i.e. mouse wheel, which is compatible with current feature. Usage example: ============= scene.getActions().addAction(ActionFactory.createPanAction()); scene.getInputBindings().setPanActionButton(MouseEvent.BUTTON1); The above peace of code creates an action to pan scene inside a scroll pane with left mouse button pressed instead of the default, i.e. mouse wheel pressed. Use case: ======== Many GIS and similar applications (at least for Windows) use left mouse button for pan action. Proposed change provides simple means for creation of applications with similar user experience without a need of rewriting the pan action.
Created attachment 137677 [details] Proposed changes in the Visual API module
Created attachment 137678 [details] Proposed changes in the Visual API module (corrected)
The patch looks fine to me. Thank you very much for providing it. If there are no objections, I'll integrate it tomorrow.
Integrated as http://hg.netbeans.org/core-main/rev/74736186d55d Thank you for reviewing.