简体   繁体   中英

Using JMF, How can I add a video to the background of a JPanel?

I am working on a GUI. It is strictly for Sign-in. I have it working perfectly, but I would like to add a video to the background of the Panel. Is there any way of doing this without having to make two separate JPanels? And if I had to use two, what would be the best way to do this?

I don't see why you would have to use two JPanels. It seems like whatever JPanel contains your login that you want a video in the background you could just modify. However, from a layout standpoint you might want the video as a separate component just to have more control and simpler code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM