当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Stacking over input panels in Netbeans WYSIWYG editor?

问题描述:

I'm trying to put a JButton in the WYSIWYG GUI editor in Netbeans at the center of a wheel of buttons I made around an input panel. The input panel is hidden in the program (specified by a user in an XML file) and the JButton should just be at the center of the wheel. I can't figure out how to do that because actually putting it in on top of the input panel in the WYSIWYG editor just puts it in the input panel and it is therefore hidden when when the code is executed. Is it possible to view the "layers" in the editor and put the button in "under" the input panel so that it won't be hidden along with the panel?

网友答案:

The only effective solution I could find was to modify a gridbag constraints object and manually insert the button in the code after the panel was hidden at runtime.

分享给朋友:
您可能感兴趣的文章:
随机阅读: