Java JInternalFrame to JPanel

微信扫一扫,分享到朋友圈

Java JInternalFrame to JPanel

I have got a JFrame A und 2 JInternalFrame B und C. I want to show these two Frames B and C in a JPanel, rather than a JInternalFrame. Then i will put the jpanel to another Frame. So B and C both will be shown as own JFrame. So my question is: How can i move JInternalFrame components to JPanel?

Thanks

It should be quite simple since both JInternalFrame
and JPanel
are subclasses of JComponent
.

You could rename the extends JInternalFrame
to extends JPanel
at the beginning of your frame, change the constructor (since IIRC the ones of JInternalFrame
require title, resizable and so on) and check if there are compilation errors (maybe yes, but small things) then you are done..

微信扫一扫,分享到朋友圈

Java JInternalFrame to JPanel

京东借区块链实施最严供应链监管

上一篇

没有美工功底能学UI设计吗?

下一篇

你也可能喜欢

Java JInternalFrame to JPanel

长按储存图像,分享给朋友