Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-14-2004, 06:09 PM   PM User | #1
warhammerdude20
Regular Coder

 
Join Date: Dec 2003
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
warhammerdude20 is an unknown quantity at this point
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...
warhammerdude20 is offline   Reply With Quote
Old 04-14-2004, 09:20 PM   PM User | #2
sad69
Senior Coder

 
Join Date: Feb 2004
Posts: 1,206
Thanks: 0
Thanked 0 Times in 0 Posts
sad69 is an unknown quantity at this point
It's been a little while, but...

Quote:
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.

Quote:
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.
sad69 is offline   Reply With Quote
Old 04-14-2004, 09:56 PM   PM User | #3
warhammerdude20
Regular Coder

 
Join Date: Dec 2003
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
warhammerdude20 is an unknown quantity at this point
definitly helps, thank you very much!
warhammerdude20 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:06 PM.


Advertisement
Log in to turn off these ads.