Is The Java Tutorials Translucent Window example giving trouble to those playing with jdk7?

Right from the JavaDocs for java.awt.frame.setOpacity() in JDK7: The following conditions must be met in order to set the opacity value less than 1.0f: The TRANSLUCENT translucency must be supported by the underlying system The window must be undecorated (see setUndecorated(boolean) and Dialog.setUndecorated(boolean)) The window must not be in full-screen mode (see GraphicsDevice.setFullScreenWindow(Window)) If the … Read more

How to make completely transparent navigation bar in iOS 7

From this answer [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; self.navigationController.navigationBar.shadowImage = [UIImage new]; self.navigationController.navigationBar.translucent = YES; self.navigationController.view.backgroundColor = [UIColor clearColor]; self.navigationController.navigationBar.backgroundColor = [UIColor clearColor]; Also, as suggested by Josh in the comments, to put the bar back to default: [self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];

How to make a transparent JFrame but keep everything else the same?

Basically, you need to make a transparent window and a translucent content pane. This will mean anything added to the content pane will continue to be rendered without additional alphering… public class TranscluentWindow { public static void main(String[] args) { new TranscluentWindow(); } public TranscluentWindow() { EventQueue.invokeLater(new Runnable() { @Override public void run() { try … Read more

Can’t transparent and undecorated JFrame in JDK7 when enabling nimbus

Change the laf in the main method before ui is created by @Sri Harsha Chilakapati and @Sri Harsha Chilakapati I am sorry but I didn’t get you I’ll be appreciated if you describe more by @Azad Omer more in Oracle tutorial Modifying the Look and Feel, issue is caused code line JFrame.setDefaultLookAndFeelDecorated(true);, required to disable/comment … Read more