translucency

How to set transparent background of JDialog

女生的网名这么多〃 提交于 2019-12-01 00:32:02
问题 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

To have a transluscent background for an android activity?

落花浮王杯 提交于 2019-11-30 16:13:12
I wish to have a transluscent background for an activity, so that the previous activity can be seen beneath this activity. Something like a transluscent menu that pops up over a videa being played in the background. Is this possible? Can you tell me how? Note:I cannot use the default transluscent theme from android, since I am using my own customised background and theme for my application. Pls help. Below is my style.xml wherein my_btn and my_list are selectors : <?xml version="1.0" encoding="utf-8"?> <resources> <style name="btnstyle" parent="@android:style/Widget.Button"> <item name=

Translucent JPopupMenu inside a Translucent Window - alternative?

Deadly 提交于 2019-11-29 14:53:43
I'm not sure if this is possible, but is there a way to safely allow popups to be translucent even when the parent container is also translucent? If not, what would be wise alternative to use or extend instead of JPopupMenu ? Note: Translucent refers to a component not 'having a background', similar to the effect of setOpaque(false); . Thanks. From a forum answer by user camickr in 2009: I don't know if transparency painting has changed in 1.6.0_10. Prior to that I believe transparency can only be achieved in lightweight components (ie. Swing does all the painting). JFrame, JWindow and JDialog

Change color of translucent black UINavigationBar

我与影子孤独终老i 提交于 2019-11-28 19:47:55
问题 I stumbled upon this many times, never found a solution. A UINavigationController's navigationBar can be set to black translucent like: self.navigationController.navigationBar.barStyle=UIBarStyleBlackTranslucent; Also, there is a translucent property in UINavigationBar, the docs say: When YES, the navigation bar is drawn with partial opacity, regardless of the bar style. The amount of opacity is fixed and cannot be changed. It is permissible to set the value of this property when the

Java / Swing -> Creating a notification JFrame, and the error “The frame is displayable”

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 13:59:08
Ok, I am not that versed in Java / Swing, and I am running into a problem. My application is throwing this error: "Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: The frame is displayable." Google isn't turning up much information on this error, and a quick search of StackOverflow is not showing anything yet. What I am trying to do: just implement translucent windows using the code from the tutorials. That's it. I plan to use this as a general window for displaying notifications, such as "This program has not been run in 30 days" down near the system tray. Are

Translucent JPopupMenu inside a Translucent Window - alternative?

。_饼干妹妹 提交于 2019-11-28 09:00:59
问题 I'm not sure if this is possible, but is there a way to safely allow popups to be translucent even when the parent container is also translucent? If not, what would be wise alternative to use or extend instead of JPopupMenu ? Note: Translucent refers to a component not 'having a background', similar to the effect of setOpaque(false); . Thanks. From a forum answer by user camickr in 2009: I don't know if transparency painting has changed in 1.6.0_10. Prior to that I believe transparency can

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

早过忘川 提交于 2019-11-27 15:33:29
Here's the example . If you build and run TranslucentWindow in let's say, NetBeans IDE 7.0, which supports jdk7, you'll get the following exception: Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: The frame is decorated at java.awt.Frame.setOpacity(Frame.java:960) at main.TranslucentWindow.<init>(TranslucentWindow.java:23) at main.TranslucentWindow$1.run(TranslucentWindow.java:47) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705) at java.awt.EventQueue.access$000(EventQueue.java:101

Java / Swing -> Creating a notification JFrame, and the error “The frame is displayable”

风格不统一 提交于 2019-11-27 08:10:11
问题 Ok, I am not that versed in Java / Swing, and I am running into a problem. My application is throwing this error: "Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: The frame is displayable." Google isn't turning up much information on this error, and a quick search of StackOverflow is not showing anything yet. What I am trying to do: just implement translucent windows using the code from the tutorials. That's it. I plan to use this as a general window for

How to make completely transparent navigation bar in iOS 7

陌路散爱 提交于 2019-11-27 02:23:05
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? Alan From this answer [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; self.navigationController.navigationBar.shadowImage = [UIImage new]; self.navigationController.navigationBar.translucent = YES; self

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

只愿长相守 提交于 2019-11-26 17:13:10
问题 Here's the example. If you build and run TranslucentWindow in let's say, NetBeans IDE 7.0, which supports jdk7, you'll get the following exception: Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: The frame is decorated at java.awt.Frame.setOpacity(Frame.java:960) at main.TranslucentWindow.<init>(TranslucentWindow.java:23) at main.TranslucentWindow$1.run(TranslucentWindow.java:47) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt