🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8733

Re: about initializer

#8733
From: Rich Wilkman
Date: Tue, 25 Jul 2000 00:00
65 lines
3025 bytes
Randy:

Okay, as I suspected you are trying to use JFC (Swing) in an Applet.  No
browser supports that out of the box (a topic that is covered over and
over and over again here in these newsgroups).  You can look at the
Plugin if you must use JFC in the Applet.

-Rich

Randy wrote:
> 
> here's the whole trace:
> 
> java.security.AccessControlException:access denied
> (java.lang.RuntimePermission modifyThreadGroup)
> at javax.swing.TimerQueue.sharedInstance(TimerQueue.java:66)
> at javax.swing.JApplet.<init>(Japplet.java:92)
> at DeckOfCards.<init>(DeckOfCards.java:8)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:237)
> at sun.applet.AppletPanel.createApplet(AppletPanel.java:579)
> at sun.applet.AppletPanel.runLoader(AppletPanel.java:515)
> at sun.applet.AppletPanel.run(AppletPanel.java:293)
> at java.lang.Thread.run(Thread.java:484)
> 
> Rich Wilkman <richw@formlessvoid.com> wrote in message
> news:397D15F6.247C5191@formlessvoid.com...
> > Randy:
> >
> > Offhand, I'd say it means you are trying to use JFC in your Applet.
> > It's never helpful to "edit" the trace.  Post the whole thing from top
> > to bottom.  Note, if you are using IE you have to have the Java console
> > up before accessing your Applet; otherwise you won't see your trace.
> >
> > -Rich
> >
> > Randy wrote:
> > >
> > > i am getting java.security.AccessException: access denied; what does
> that
> > > mean?
> > > Rich Wilkman <richw@formlessvoid.com> wrote in message
> > > news:397C5A44.D1834B94@formlessvoid.com...
> > > > Randy:
> > > >
> > > > No.  The "not initialized" message for Applets usually means you
> haven't
> > > > set things up correctly or deployed all the classes or are trying to
> use
> > > > JFC, etc.  Look in the Java Console for the real error message and
> work
> > > > from there.
> > > >
> > > > -Rich
> > > >
> > > > Randy wrote:
> > > > >
> > > > > do all classes that are created require a no argument initializer?
> I am
> > > > > getting that an applet isn't initialized and can't find the problem.
> > > > >
> > > > > why does an applet run properly in the appletviewer but gives
> "applet
> > > isn't
> > > > > initialized" when running it thru a browser?
Technical Details
Message-ID: <397E6020.C8468A93@formlessvoid.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8lgc0n$da59@bornews.borland.com> <397C5A44.D1834B94@formlessvoid.com> <8li7hc$3be8@bornews.borland.com> <397D15F6.247C5191@formlessvoid.com> <8lks8o$16h3@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3fc094048b408106
X-Google-Attributes: gid111d45,public
From: Rich Wilkman <richw@formlessvoid.com>
Subject: Re: about initializer
Date: 2000/07/25
Message-ID: <397E6020.C8468A93@formlessvoid.com>
X-Deja-AN: 650826648
Content-Transfer-Encoding: 7bit
References: <8lgc0n$da59@bornews.borland.com> <397C5A44.D1834B94@formlessvoid.com> <8li7hc$3be8@bornews.borland.com> <397D15F6.247C5191@formlessvoid.com> <8lks8o$16h3@bornews.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 25 Jul 2000 20:41:15 -0800, 165.227.58.108
MIME-Version: 1.0
Reply-To: richw@formlessvoid.com
Newsgroups: borland.public.jbuilder.java.swing