Results 1 to 5 of 5

Thread: Java Controls

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843

    Question Java Controls

    Hello....

    I was just wondering 2 things....

    first.... do the JavaControls (awt) have a whnd?

    and... can you access the API from Java? If it is possible... can you post a little simlpe example on how to?

    Thank you
    "The difference between mad and genius is the success"

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    ohhh.... ok.... and what about the API... can you access the Api with Java?
    "The difference between mad and genius is the success"

  3. #3
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332
    <sigh> no you can't <as far as i know> because Java is supposed to be portable and there fore anyone w/ a JVM should be able to run it, and thus your prog cannot depend on anything but Java files (and data files of course), being able to access anything from the system would not be in the spirit of Java, but you don't really need anything from windows as the java class library is pretty good as it is.

    PS - don't use AWT, use SWING, get w/ the times, there is a good tut for it on the sun site.
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    No API? Well.. that is kind of sad. Now I see more clear the difference s between an ActiveX and and Applet. And ActiveX is unsecure.. but you can do anything with it... and an Applet is very secure but you cant do everything with it....


    Is the AWT and SWING different concepts!?!?!?!? I thougt they were the same
    "The difference between mad and genius is the success"

  5. #5
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Posted by Andreex
    Is the AWT and SWING different concepts!?!?!?!? I thougt they were the same.
    Basicaly they are in a way. Swing is built on top of the core 1.1 & 1.2 awt libraries with each swing component extending it's awt counterpart. Swing contains nearly twice the number of graphical
    components as it's predecessor awt 1.1

    Swing depends extensively on the event handling mechanism of awt 1.1 although it does not define a comparatively large amount of events for itself. I think that there are other issues also being that swing components are lightweight compared to awt components but im not too sure about that one.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width