Vista Aero Glass Effect in Swing

Hi,
How can I make my JFrames transparent like windows media player in vista? Is it possible?

seams to work with GDIpipline and this trick:
JPanel cp = new JPanel(){
public void paint(Graphics g)
Graphics2D g2d = (Graphics2D) g;
Composite oc = g2d.getComposite();
g2d.setComposite(AlphaComposite.Clear);
g2d.fillRect(0, 0, getWidth(), getHeight());
g2d.setComposite(oc);
g2d.setComposite(AlphaComposite.Src);
super.paint(g2d);
cp.setOpaque(false);
jf.setContentPane(cp);but D3Dpipeline still draws it's gray background or a black one with the trick above

Similar Messages

  • Sql Developer compatible problem with Vista aero

    My computer is Vista Ultimate x64 en-US. I have downloaded Sql Developer from here
    http://www.oracle.com/technology/software/products/sql/index.html
    When I run it, the aero glass effect turn off automatically, When I close the sql developer, the aero turn on again.
    Why does this happen? Does Oracle offer vista compatible version of sql developer?
    Thank you for any information.

    Thank you for the response.
    But my laptop support Vista and later version of Windows only. That mean xp/2003 cannot be installed. I am a WPF supporter who need aero glass effect. So Vista or Win 7 with all effect turn on is necessary for me.
    My current solution is to change style to classic when I use sql developer, and change it back when I support WPF customer.
    Thank you for your answer and your time to response.
    Sincerely,
    Kira Qian
    Edited by: Kira Qian - MSFT on Jun 20, 2009 8:52 PM

  • How to make Tool Strip have a glass effect?

    How to make Tool Strip have a glass effect? Please Help Me As Fast As Possible . Thx .
    Note : Please write as details as Possible because I am new to vb.

    Another possibility extending the Aero Glass effect.
    ToolStrip backcolor has to be transparent.
    Option Strict On
    Imports System.Runtime.InteropServices
    Public Class Form1
    <StructLayout(LayoutKind.Sequential)> _
    Public Structure MARGINS
    Public cxLeftWidth As Integer
    ' width of left border that retains its size
    Public cxRightWidth As Integer
    ' width of right border that retains its size
    Public cyTopHeight As Integer
    ' height of top border that retains its size
    Public cyBottomHeight As Integer
    ' height of bottom border that retains its size
    End Structure
    <DllImport("DwmApi.dll")> _
    Public Shared Function DwmExtendFrameIntoClientArea(hwnd As IntPtr, ByRef pMarInset As MARGINS) As Integer
    End Function
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
    Me.TransparencyKey = Color.Silver
    Me.BackColor = Color.Silver
    Dim BordersWidth As Integer = CInt((Me.Width - Me.ClientRectangle.Width) / 2)
    ToolStrip1.BackColor = Color.Transparent
    Try
    Dim margins As New MARGINS()
    margins.cxLeftWidth = BordersWidth
    margins.cxRightWidth = BordersWidth
    margins.cyTopHeight = ToolStrip1.Height
    margins.cyBottomHeight = BordersWidth
    DwmExtendFrameIntoClientArea(Me.Handle, margins)
    Catch ex As Exception
    End Try
    End Sub
    Private Sub Form1_Resize(sender As Object, e As EventArgs) Handles Me.Resize
    Me.Refresh()
    End Sub
    Private Sub Form1_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
    Using Brush1 As New SolidBrush(SystemColors.Control)
    e.Graphics.FillRectangle(Brush1, Me.ClientRectangle.Left, Me.ClientRectangle.Top + ToolStrip1.Height, Me.ClientRectangle.Width, Me.ClientRectangle.Height)
    End Using
    End Sub
    End Class
    La vida loca

  • CS5.02 w/MPE turns off Aero Glass

    I have a new Dell Precision T5500 workstation(X5560 CPU, 12GB Ram, PNY Quadro 4000, Win7 Ultimate 64-bit) running CS5 MC.  AE looks and works great. PPro CS5.02 loads and looks correct but, once a project has loaded with the Mercury Playback Engine(MPE) enabled, all Aero Glass effects for Window Color and Appearance get switched off.  Resulting in what looks like the default Windows 7 Basic properties and color scheme(Baby Blue with no transparency).
    PPro captures,edits and outputs fine.  And once PPro is exited, the Win7 desktop, visually, returns to my "normal" saved Theme.  While PPro is running, the Win7 Personalization page shows that my saved Theme is loaded.  Clicking it's icon to reload the settings doesn't cause any visual changes.  Selecting the Window Color icon brings up the Window Color and Appearance tool which has a message stating that Windows Aero is off, etc.
    If I remove the Quadro 4000 entry from the cuda_supported_cards.txt file, essentially disabling the hardware MPE, Aero Glass stays on while PPro runs.  Except now I have to render effects since Premiere is using the software MPE.
    The NVidia driver is from 10/16/2010( 8.17.12.5993 ).  Everything else on this machine(HW/SW) is up to date and is working great.  I haven't been able to find any mention of this anomaly here or on other CS5 or NVidia related forums.  Has anyone seen/heard of this?  Is there somebody else using the Quadro 4000 with CS5?

    Thanks, I checked out the search results of the link posted.
    I grabbed and ran Microsoft's Mats_Run.aero.exe tool.  Funny thing, even with Premiere running that tool still says there are no issues with my system.  Plus I don't get a systray message saying something to the effect of "aero is turned off" like other folks report in the MS Answers forums when things like this happen.  Anyway, like I said previously, I can live with this "feature" while I'm using PPro and so far with my hardware, my AE usage hasn't been effected.
    Thanks All,

  • Enable Aero Glass in battery mode

    I am using a Thinkpad W510. At the moment I have the problem, that all Aero Glass visual effects are only working if I working on the docking station. As soon as I am not connected with the docking station (it does not matter if I am on battery mode or using the power supply) all the visual effects were switched off.
    Does anyone have a clue to where I can find setting to leave the Aero Glass effects always on. I think it is somewhere hidden in the power save settings, but I haven't found it yet.
    Thanks for your help.
    Solved!
    Go to Solution.

    Thanks everyone for your help.
    After I had gone through the settings once again, I found the cause of my problems.
    So for everyone, who has the same or a similar problem, check whether you have set the color depth to 32bit. In my case it was set at 16bit, probalbly due to a power saving setting I once used.
    If this doesn't help, check out this link:
    http://windows.microsoft.com/en-US/windows7/Why-are-some-visual-elements-being-automatically-turned-...

  • Vista glass effect in JFrame

    Hi,
    I try to get the vista glass effect working in JFrame via calling DwmExtendFrameIntoClientArea over JNI
    It basically works but the problem is, that the jrootpane draws an opaque rect over the client area.
    So I hacked the jframe a little bit to set my own jrootpane
    jf.setRootPane(new JRootPane() {
                   public void paint(Graphics g)
                        super.paint(g);
    still isn't working. disabling double buffering:
    RepaintManager.currentManager(jf).setDoubleBufferingEnabled(false);
    works. I now get a wonderful glass background :)
    but as soon as i add some other component, like an opaque JPanel to the contentpane, it draws a gray opaque rect over the entrie contentpane (even there where the added component isn't).
    I traced it and it happens where the added component draws its background (windows size e.g: 300x300, component bounds: e.g. 20,20,50x50 -> [0,0,300x300] becomes gray and component gets it background color)
    Graphics Debug output says that this happens on : D3DFillRect
    So my question is: How do I avoid that this gray background iis drawn and it would be cool if it even works with double buffering.
    My idea is, that it is maybe related to Sun2dGraphics->surfaceData->(WFramePeer)peer->eraseBackground which is set to false or Sun2dGraphics->surfaceData->(WFramePeer)peer->background which is set to this nice gray color.
    Bye,
    Thomas

    seams to work with GDIpipline and this trick:
    JPanel cp = new JPanel(){
    public void paint(Graphics g)
    Graphics2D g2d = (Graphics2D) g;
    Composite oc = g2d.getComposite();
    g2d.setComposite(AlphaComposite.Clear);
    g2d.fillRect(0, 0, getWidth(), getHeight());
    g2d.setComposite(oc);
    g2d.setComposite(AlphaComposite.Src);
    super.paint(g2d);
    cp.setOpaque(false);
    jf.setContentPane(cp);but D3Dpipeline still draws it's gray background or a black one with the trick above

  • Vista Aero Effect

    Hi, I restored my W500 back to factory content, and found out the Aero effect, which gives the windows and taskbar a transparent look, is gone.  I went to "window color and appearance," but I could not find a color scheme that says "Windows Vista Aero."  Since it worked before I restored it, It's obviously not the hardware's problem.  What is it then?  Thanks all.

    Quote from: Karst on 22-January-13, 06:58:50
    Mobo - EVGA 780i Sli Nforce
    CPU - Intel Core 2 Duo E8400 Wolfgang 3.0ghz (with aftermarket heatsink)
    Ram - 4GB DDR2 Gskill 1066
    Here is my problem, the MSI 660 Ti is performing the same, or worse, than my 260 GTX.
    GTX 660 does not fit with your 6 years old config.
    Your mainboard, processor and RAM are a bottleneck for your GPU.
    Nforce 780i - released 6 years ago
    Core 2 Duo E8400 - released 5 years ago
    Gskill DDR2-1066 - overvolted DDR2-800 modules, released 7 years ago.

  • Anybody run vista's aero glass theme on their mini?

    i'm thinking about getting a mini, but i want to be able to run vista's aero glass. i believe the video card is supported, but i wanted to hear about any personal experiences.

    I'm running Vista Premium (on a separate partition w/bootcamp) on my Mac Mini 1.83 with 2 GB of memory with no problem at all. Aero glass, no problem.
    Vista actually sees the GMA950 integrated graphics card as 256MB of DDR2 SDRAM, instead of 64.
    Mac Mini 1.83   Mac OS X (10.4.8)   Running Vista Premium w/bootcamp

  • Vista Aero Basic = Cursor Lag

    I've had a extremely annoying photoshop issue for a very long time. I was hoping CS4 would eliminate this hideous bug but it's made it marginally worst.
    My studio makes video games so we often work in 3ds Max 7 & photoshop simultaneously. 3ds Max doesn't work very well with Vista Aero enabled, so those of us with Vista run the Aero Basic scheme.
    Photoshop CS3 & CS4 actually run way SLOWER in Aero Basic. You'll see this while zoomed in using the airbush. Even the cursor jumps across the screen without any tool being in use. If i change my cursor to 'standard' or 'precise' in the preferences the lag will go away.
    There must be many others that have noticed this problem. Has it not been fixed because its not possible? No one figured out what causes it? Many users that want maximum performance out of their workstations will disable aero. I'm sure this is embarrassing for adobe because it effects very high end machines.
    Please Adobe, fix this bug.
    Running in full Aero Mode is VERY smooth but I cannot use that because i need Max running too.
    I'm running on a Nvidia 9800GTX. Same problems on other earlier Nvidia cards too. No ATIs here.

    Few games companies can afford to recompile plugins every time a new version of Max is released. Especially since in recent years Max hasn't provided significant features worth upgrading for.
    Many games studios are still using older versions of Max; admittedly most are also still using XP. PS cursor problems are one of the reasons.
    With all the bloated features added to PS over the years, this seems like a simple & important fix. It effects CS2, CS3 & CS4. Alot of our guys still use CS1 because the more recent PS versions are considered bloated & laggy.
    Maybe a 'light' power user version for the furture is something to think about. CS4 is several GBs of god knows what. The Gimp is 25meg & improving.
    I'm sure we don't need GBs of bloat & services forced upon us.

  • "Aero" glass theme

    I really love the "Aero" glass theme that is in Windows Vista and Windows 7. I was wondering if it's possible to suggest this to a Mac OS developer or Apple? I know this is a copyright issue with Microsoft owning this trademark. But, please make this theme available in Mac OS. I love both operating systems equally, but Apple softwares, such as "Messages/iMessage", Final Cut Pro, Garageband, iMovie, iDVD, iPhoto, Logic Pro, etc. make me want to switch from Windows to Mac OS. It's too bad the "Aero" is proprietary to Microsoft.
    Here is the link to the "Aero" glass theme I'm talking about: http://en.wikipedia.org/wiki/Windows_Aero
    Please make this feature for future releases of Mac OS. Otherwise, I'm sticking to Mountain Lion. Please write back. Thanks!

    I'm running Vista Premium (on a separate partition w/bootcamp) on my Mac Mini 1.83 with 2 GB of memory with no problem at all. Aero glass, no problem.
    Vista actually sees the GMA950 integrated graphics card as 256MB of DDR2 SDRAM, instead of 64.
    Mac Mini 1.83   Mac OS X (10.4.8)   Running Vista Premium w/bootcamp

  • Windows without Aero Glass?!!

    Windows without Aero Glass? its disgusting!
    You know, windows 7 was successful, this means AeroGlass+Performance accepted that time, so you can’t remove aero glass by telling everyone it’s because lack of performance!
    I remember MS-Dos text mode applications like ‘Norton Commander’, ‘Norton Utilities’, ‘Dos Navigator’ and much more, presenting solid graphics (simple solid color as background, and white text in the front, using (some times) some characters as icons and
    smooth animations for dialogs. – I remember ansi.sys as well!)
    Windows 8 and 8.1 has the same graphics, same as DOS! except the solid background, which replaced by a gradient.
    This is not satisfying, not at all specially when we have a complete set of eye-catching effects like ‘Shine’, ‘Shadow’, ‘Bevel’, etc. in windows 7.
    Even in windows 95, 98 and XP, I used to change skins and themes with skinning softwares (like Windowblinds).
    You can’t expect everybody to like windows 10 UI no matter its on Tablet, Desktop or some gadget…

    Windows without Aero Glass? its disgusting!
    You know, windows 7 was successful, this means AeroGlass+Performance accepted that time, so you can’t remove aero glass by telling everyone it’s because lack of performance!
    I remember MS-Dos text mode applications like ‘Norton Commander’, ‘Norton Utilities’, ‘Dos Navigator’ and much more, presenting solid graphics (simple solid color as background, and white text in the front, using (some times) some characters as icons and
    smooth animations for dialogs. – I remember ansi.sys as well!)
    Windows 8 and 8.1 has the same graphics, same as DOS! except the solid background, which replaced by a gradient.
    This is not satisfying, not at all specially when we have a complete set of eye-catching effects like ‘Shine’, ‘Shadow’, ‘Bevel’, etc. in windows 7.
    Even in windows 95, 98 and XP, I used to change skins and themes with skinning softwares (like Windowblinds).
    You can’t expect everybody to like windows 10 UI no matter its on Tablet, Desktop or some gadget…
    Knock, Knock

  • Windows Vista Aero theme - incompatible with iTunes?

    Whenever I boot up my laptop I get an error saying iTunes is stopping my Vista Aero theme from showing. When I go to task manager and end the ituneshelper.exe module process, the Aero theme is then accessible.
    I know the ituneshelper.exe is an important module to allow to run, but I really don't want it interfering with my Vista theme. Does anyone know of a fix for this? Help would be so much appreciated.

    OK I figured out the problem:
    I had installed Quicktime Alternative which screwed up iTunes since it requires the very newest version of Quicktime to be installed.
    Moral of this story: Don't install Quicktime Alternative

  • HELP! Illustrator CC Stained Glass effect issue

    Hello. I'm relatively new to Illustrator. I'm designing a pair of shorts and have come across a problem. I'm using the stained glass effect to give the shorts a reptile look over a gradient green to black 90 degrees. When I select the stained glass effect, the edges are white and black while the rest of the shorts are the green to black gradient. It's very frustrating why the color gradient does not run to the bleed lines. Can someone please help me? I have created this look in the past using Photoshop and had a bunch of uniforms made up for my customer. I need to make more, but my new supplier cannot use the photoshop file as he needs an editable file in vector. I'm trying to upload the image, but it's not working. The file is 3.6mb. Please help if you can, this is urgent.
    Thank you!
    Anthony

    Stained Glass is a pixel effect, so what's the point of using AI? And even if it wasn't, if there was gradation of some sort your supplier would have to use a printing process based on creating discrete halftones to capture all tones, not sharp contours. Really doesn't make much sense. Either way, make the object with the effect larger and constrain it with a clipping mask. The same would apply for importing a pre-made texture from PS. What you see are simply the edges of the object as AI processes them with all their appearance attributes and then you get all sorts of issues with overprint and such stuff, which is one more reason why using raster effects in AI not necessarily makes sense....
    Mylenium

  • Vista Aero on N500

    does n500 support vista aero theme?
    if support ... how to adjusted.
    I use Vista Ultimate.
    Sorry on my bad English.

    If you can find aero option in the themes menu your system will support it.unlike other operating systems vista hides certain features like aero and flip 3d if they are not supported.
    you may want to run the vista upgrade advisor and find out the results as well fo much more indepth information  
    Cheers and regards,
    • » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
    ●๋•کáŕádhí'ک díáŕý ツ
    I am a volunteer here. I don't work for Lenovo

  • "Glass" Effect Lettering Created In Photoshop Does Not Appear Correctly.

    I have made some "glass" effect transparent titles in Photoshop by putting a normal title over a transparent background, adding an inner glow and bevel and then reducing the Fill Opacity to zero.
    This is how it should look:-
    However, when I import it into FCE/FCP and superimpose it over video the title usually looks solid black - as it did originally before I reduced the Fill Opacity.
    I have tried every combination of Composite mode I can find in FCE/FCP to no avail.
    Is it possible to show it the way it is intended and if so, can anyone suggest where I am going wrong?
    Ian.

    Hi(Bonour)!
    Start with a transparent background in photoshop. Compose your title document (yopu can put a reference layer at bottom of the stack to see how title will appears on your image clip- if so, pay attention to make this backgroud inactive upon exporting) and save in PNG format (this format save the alpha channel-transparency- with your graphic elements).
    Import in FCE, and compose your title over your video clip.
    Use normal composite mode.
    You can also use Boris title or livetype to achieve the same result.
    Michel Boissonneault

Maybe you are looking for

  • Disallow comma use in pdf form

    I am having trouble exporting forms via workspaces. The form I have developed allows for the entry of commas, these commas interfere with the csv export of the file. I have searched the field properties and was not able to find a simple way to disall

  • Security of Tape Backups

    Michael beat me to it; the first question that I would ask is if you should still be using tape.Tape was popular primarily because you could get a lot on a tape, much more than on a disk; one tape was often sufficient to backup several drives. That c

  • Publicly accessible bug reporting & serious UI updates

    If Adobe want to make Livecycle a serious platform for developers, then why not open up the bug reporting database the same as has been done with Flash Builder / SDK, Coldfusion, etc? http://bugs.adobe.com/. Most Livecycle devs can navigate themselve

  • Spotlight's "Show All In Finder" Error

    When clicking "Show all in Finder" from Spotlight search, I continually end up with a blank Finder window showing up. Solutions?

  • Final Cut won't play sped up video

    I'm trying to speed up the video to match audio, but whenever I do Final Cut plays it for about a second and then stops playing?