Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Dec 2003
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 2 questions... java

    first question:

    is it possible to get an applet into an application frame? if so, how???

    second question:

    what is the difference between the JButton and Button objects???

    thanks...

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's been a little while, but...

    is it possible to get an applet into an application frame? if so, how???
    An Applet and an Application are two different things. An Applet can't just run on its own, it needs a viewer of some kind; whereas, an Application can run on its own just fine (using the Java interpreter of course...).

    I think what you might be asking is how do you turn an Applet into an Application with a GUI. You should be aware that an Application can have a GUI. I don't think it's quite as easy as converting it directly, but the logic of the Applet -- depending on how nicely you've coded it -- should transpose easily. Try this link for more information.

    what is the difference between the JButton and Button objects???
    JButton is a Swing object whereas Button is an AWT object. Swing and AWT are two different GUI libraries within Java -- AWT is starting to get phased out and Swing is the way to go. Both accomplish the same task, it's just that Swing is supposed to be more supported in the future and will look nicer -- look&feel stuff -- etc.. Try this link for more information.

    Hope that helps,
    Sadiq.

  • #3
    Regular Coder
    Join Date
    Dec 2003
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts
    definitly helps, thank you very much!


  •  

    Posting Permissions

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