• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPanel sandbox  RSS feed

 
Vincent Cole
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm loading some external/untrusted code at runtime using URLClassLoader. This class returns some UI components that I want to add to my main window (JFrame). How can I sandbox these untrusted components so as to make sure they don't interfere with my main program (for example by calling .getParent())?

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!