Set JFrame background transparent but show contents
问题 I'm looking for some solution to turn an opaque, null JFrame background to transparent (no Translucent) but showing swing components like buttons containers etc... here a example. Default JFrame Something like, HERE disable the background 回答1: This is a simple two step process... First, you need to make a transparent frame... JFrame frame = new JFrame("Testing"); frame.setUndecorated(true); frame.setBackground(new Color(0, 0, 0, 0)); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame