简体   繁体   中英

How to make dock-able plugins for NetBeans IDE in Java?

I have created one analogue clock with Java. But i want to make it dock-able in NetBeans IDE (like shown in the screen shot).

  • like the left side navigator, files, bottom tasks are hidden, once i press it it shows in left or bottom

Any help on this, how can i tell my NetBeans plugin to act like dock-able? After making it working i would like to publish it to the community plugin.

在此处输入图片说明

This is not too complicated using the NetBeans Rich Client Platform. Follow this tutorial - http://platform.netbeans.org/tutorials/nbm-paintapp.html#impMod

Basically, you'll create a ClockTopComponent using the wizard. TopComponents automatically get nice windowing features for free, like docking, hiding, tiling, etc.

FAQs about TopComponent

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