translucency

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

*爱你&永不变心* 提交于 2019-11-26 15:28:00
Look at this picture : here is the code that transparent's the frame: GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); if (!gd.isWindowTranslucencySupported(TRANSLUCENT)) { System.err.println( "Translucency is not supported"); System.exit(0); } JFrame.setDefaultLookAndFeelDecorated(true); this works good but when trying to enable LookAndFeel by adding try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager

How to make completely transparent navigation bar in iOS 7

試著忘記壹切 提交于 2019-11-26 10:06:36
问题 I want the UINavigationBar in my app to be completely transparent and flush with the viewcontroller directly under it. However, the only code I could find makes it translucent but not transparent. I know this can be done in iOS 7 because it is used in the notes app. My question is, what is the code they used to do it? 回答1: From this answer [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; self.navigationController.navigationBar

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 04:26:26
问题 Look at this picture : here is the code that transparent\'s the frame: GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); if (!gd.isWindowTranslucencySupported(TRANSLUCENT)) { System.err.println( \"Translucency is not supported\"); System.exit(0); } JFrame.setDefaultLookAndFeelDecorated(true); this works good but when trying to enable LookAndFeel by adding try { for (javax.swing.UIManager.LookAndFeelInfo info : javax