my dog learned polymorphism
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Swing and security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Swing and security" Watch "Swing and security" New topic

Swing and security

raphael Bereh
Ranch Hand

Joined: Jan 15, 2002
Posts: 79
Hi all,
I have something strange happening in my program that I don't understand. Hope someone can help me with that : When I try to instantiate a Swing application after installing a security manager, the application is launched by the applet viewer.
Does anybody know why and how to get around this ?


Joined: Jan 07, 2002
Posts: 28
Hi raphael,
Maby some other member can explain how to get AROUND this (I can't), but you can easily AVOID, it because for the Fligh By Night developers assignment it is not needed to install a security manager on the VM where the GUI runs.
Your GUI should run on a client proces, and your data server on a server process, and only for the data server process you need to install a security manager. When you run in non-networked mode, GUI and database in same VM, you do not need to install a security manager at all.
Hope this helps,
Henk van Jaarsveld
raphael Bereh
Ranch Hand

Joined: Jan 15, 2002
Posts: 79
You are right.
I am actually launching the fbn GUI from a class whose role is to create the Data instance, remote or local. In case of remote, my code look like this :
--> install security manager
--> lookup remote object
--> launch fbn GUI
I agree. Here's the link:
subject: Swing and security
It's not a secret anymore!