Controls added to "JRootPane" cannot be designed #1540
Unanswered
WolfgangHG
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have old code that adds controls directly to the
JRootPane.WindowBuilder cannot handle this and just displays a blank form.
Is this something that should be supported and that might be worth a bug report? Or is this code a "don't" approach and I should better use a "ContentPane" panel?
It works if I do it like this:
Attached is a sample project - "MainFrame2.java" is the broken approach, "MainFrame3.java" the working solution.
WindowBuilderSample.zip
Beta Was this translation helpful? Give feedback.
All reactions