Can i, need to?

Reply

Join Date: Aug 2004
Posts: 4
Reputation: copycat is an unknown quantity at this point 
Solved Threads: 0
copycat copycat is offline Offline
Newbie Poster

Can i, need to?

 
0
  #1
Jan 1st, 2005
Can i insert a JPEG picture into my application with out import javax.swing.*; ????? or is where a way to do that with out import javax.swing.*; ???
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 8
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: Can i, need to?

 
0
  #2
Jan 3rd, 2005
Hi everyone

The direct answer would be a no.
Why would you want to do this? Maybe you could enlighten me

Richard West
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Can i, need to?

 
0
  #3
Jan 4th, 2005
Long answer:
It all depends on what you want to do with it.
You can certainly CREATE an image object of some 3rd party library without explicitly importing Swing, and probably manipulate it as well using that same library.
You can then probably save it again as well.

You WILL however most likely have a hard time showing it on screen (unless you use some other GUI framework like SWT).
That other library may well import Swing classes itself of course.

Short answer:
Of course you can, just explicitly import all the classes you need instead of importing the entire package
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC