Re: overridde system function

From: nos (nos_at_nospam.com)
Date: 12/31/03


Date: Wed, 31 Dec 2003 20:05:08 GMT


"E.Otter" <no-email@given.com> wrote in message
news:j1sIb.1813$6B.27@newsread1.news.atl.earthlink.net...
> If you are referring to changing the computer's environment variable (like
> PATH), you *might* be able to do this with System.setProperty(). Its a
> *might* because it depends on what security permissions your code has.
> To read about setting security permissions check the Java SDK
documentation
> on the Policy File Creation and Management Tool.
>
> FYI: System.getEnv is deprecated. Use System.getProperty().
>
> "nos" <nos@nospam.com> wrote in message
> news:Qe9Hb.471700$Dw6.1385622@attbi_s02...
> Just curious about how I would specify
> the location of a system file like this one
>
> public static String getenv(String name) {}
>
> if I wanted to override it in my file
> C:\eclipse\workspace\newdraw\MyClass.java
>
Sorry, that's not it. I was not clear. What I was
thinking of is how to override a method that is
in the SDK. The part I don't understand is that
the SDK method would be in a different directory.
I think for "Applet" I would just do
public class myClass extends Applet() {}
since there is only one "Applet" there is no problem,
but what about "Date" since there are two (maybe more)
"Date"s
java.util.Date and java.sql.Date



Relevant Pages

  • Re: Where do I download AppletViewer.EXE ?
    ... I know I download from sun. ... I am a Win XP user, applet user and applet developer, ... AFAIU, the '.exe' is available with the SDK, whereas ...
    (comp.lang.java.programmer)
  • Java console
    ... Every time I browse to a page that has a applet the java ... console launches. ... I have SDK 1.4 on my system. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: inheritance question
    ... > He does want it to be overridden, and if you override it your overridden ... Actually i m overwriding default Eventhandler provided with my Platform SDK ... basic functionality of what the basic code does, ... and also maintaining the dafault functionality of the SDK methods :-) ...
    (comp.lang.cpp)
  • Re: overridde system function
    ... >> To read about setting security permissions check the Java SDK ... > the SDK method would be in a different directory. ... public class myClass extends java.util.Date ...
    (comp.lang.java)
  • Re: PrintWindow
    ... Since PrintWindow is not present in all versions of windows, ... U must override the default version of the SDK if ...
    (microsoft.public.win32.programmer.gdi)