开发者

Make a copy of JPanel Using Netbeans 6.9

开发者 https://www.devze.com 2023-02-16 04:14 出处:网络
Alright I am using the Desktop Application for making a swing program and I have a JPanel in a TabbedPane that I would like to copy the JPanel to another tab. Just using the = makes it so when I chang

Alright I am using the Desktop Application for making a swing program and I have a JPanel in a TabbedPane that I would like to copy the JPanel to another tab. Just using the = makes it so when I change one I change both. Is there a way to make a copy of the JPanel and be able to customize the second one 开发者_如何学编程without actually changing the first one


1) Open the form containing the panel in design mode 2) Open the inspector Window (Window > Navigating > Inspector) 3) Select the panel in the inspector window 4) Right-click copy, then paste where you want the copy

0

精彩评论

暂无评论...
验证码 换一张
取 消