This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes security manager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "security manager" Watch "security manager" New topic
Author

security manager

serge rousseff
Greenhorn

Joined: Apr 15, 2002
Posts: 5
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

Joined: Apr 20, 2000
Posts: 3252
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
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
     
    subject: security manager
     
    Similar Threads
    Hiding URL in pop-up window
    regarding the status bar
    "Java Applet window" message
    regarding the status bar
    Status display