标签: java swing jpanel
我有JPanels的问题。我有两层JPanel。第一层是带有图像的JPanel,第二层是显示JComponents。它看起来像这样:
JFrame - JPanel1 (Image) - JPanel2 (JComponents)
如果JPanel2上有多个组件,则JPanel2不透明,但背景为灰色,我看不到JPanel1(image)。如何将JPanel2设置为父级为JPanel1时的玻璃窗格?
JPanel2
JPanel1(image)
JPanel1