Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 netbeans 中,可以将画布添加到您的应用程序中,但似乎无法在画布上绘制,因为您需要重载 paint(Graphics) 方法。做这个的最好方式是什么?谢谢!
您只需编写一个扩展 Canvas / JCanvas 的类,然后将其从导航窗格拖放到 GUI 设计器上。