简体   繁体   中英

Java Drag drop and netbeans

我使用netbeans创建GUI,我需要在项目中添加拖放组件。但是我厌倦了这样做。netbeans在运行程序时不支持(或不正确拖动)拖放。所以我需要你的帮助?

Does Netbeans bring up any kind of error (like the component can't be initialized or something??).

If so you can find the logs in {user}/.netbeans/{version}/var/log/messages.log

On Windows 7, that would be /users/{user}/.netbeans/{version}/var/log/messages.log

Netbeans 7.2 moved it to .AppData/local (I think - check roam if it's not there)

This will give you an idea of what the error is (includes a nice stack trace)

Also remember that components in the palette require a empty constructor

Drag and Drop features have been lessened/removed from NetBeans' current version.

Try using NetBeans version 6.1 to 6.8, which support full Drag and Drop functionality.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM