0

I am trying to make my frame transparent using AWTUtilities class as suggested on my previous question: How to make JFrame transparent?. But getting exception as Can not access restricted API. How can I solve that?

Community
  • 1
  • 1
Harry Joy
  • 58,650
  • 30
  • 162
  • 207
  • If you are looking for an alternative to make frame transparent try [JNI Wrapper WinPack](http://www.teamdev.com/jniwrapper/winpack). – Harry Joy Jul 15 '11 at 05:08

1 Answers1

0

Not sure if its IDE like eclipse throwing this error. You can look at http://java.globinch.com/tag/restricted-api/strong text to see how to get around it.

If you can find an alternative to use of sun API, its better as this is subject to change

Fazal
  • 2,991
  • 7
  • 29
  • 37