Domanda

I am working on a small Java application and I'd like to use transparent windows. However when I use AWTUtilities.<any method> I get this:

'AWTUtilities cannot be resolved'

I've looked for solutions but I'm unable to understand them. Could you please explain to me in simpler terms how I can deal with this? I'm on Java Version 6u23

È stato utile?

Soluzione

Have a look at this paper it mentions that you should use this class using reflection since it's not part of the official Java API. Look in the middle of the paper.

Altri suggerimenti

AWTUtilities is a "undocumented" API put into java around version 6.12, hence the reason you are suggested to use reflection, this allows you application to run on JVMs that don't support it yet

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top