How to set transparent background of JDialog
问题 Hy,.. how can i set the background transparent and "remove" the closeoperation (marked red) ? I only want to show the card :-) Thanks..! 回答1: yourDialog.setUndecorated(true) should do the trick for the title bar. For having the Frame transparent. You'll have to work on the root panel with yourDialog.getRootPane().setOpaque(false) on it. 回答2: Although there is no problem with UNDECORATED JFrame transparency (myJFrame.setBackground (new Color (0,0,0,0)); is pretty enough), the same with JDialog