File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

security manager

 
serge rousseff
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a security manager is added to a Swing program :
"System.setSecurityManager(new SecurityManager());"
and the program is run again a "status bar" appears at the bottom of the frame mentioning
"Java Applet Window".
Even when displaying dialogs, tooltips, ... that status bar is added.
This makes a mess of the GUI
Can this be suppressed (and how) ? (I am working in JDK 1.4)
Any tip greatly appreciated
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Grant permission java.awt.AWTPermission "showWindowWithoutWarningBanner". I supplied the following policy for my client:The permissions are needed, respectively,
  • To suppress the applet window warning banner;
  • To allow the client to connect to the server;
  • To allow it to open a local database file;
  • To get Swing working reliably on Windows NT -- not sure why, I had to figure this out the hard way.
  • In my documentation I pointed out that the policy can be tightened up considerably when more is known about the production environment.
    Note that unless you download RMI stubs from the server, you don't strictly need a policy file for either client or server.
    - Peter
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic