Hi,
So i tried the TestAwtPanels.java and it works. I changed my code and added the AWTPanel to the ContentPane of the frame and it works also. You can see it in the picture. It’s behind my other gui stuff:
But when i try to add it to a JPanel nothing will be drawn. But the application still runs only that nothing is drawn(or maybe behind something). So my question is if it’s even possible to add an AWTPanel to a JPanel and except something to be drawn or if it’s something else. I should be able to provide a testcase but maybe someone got a quick answer/solution.
Its a normal panel, so yes. Make sure the layout of the parent panel is a box layout maybe. Also look at TestAwtPanels
1 Like
@normen said:
Make sure the layout of the parent panel is a box layout maybe.
Not only maybe ;). Thanks! It works now.