| | |
Can i, need to?
![]() |
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
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
![]() |
Other Threads in the Java Forum
- Previous Thread: How can i prepare a histogram
- Next Thread: Error while executing
| Thread Tools | Search this Thread |
2dgraphics 3d @param affinetransform android api applet application arc arguments array arrays automation banking binary bluetooth byte chat chatprogramusingobjects class client code color compare component count database design detection eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui guitesting helpwithhomework html ide if_statement image input integer interface j2me java java.xls javadesktopapplications javaprojects jni jpanel julia keytool keyword linux list loop macintosh map method methods mobile netbeans newbie object os pong print problem producer program programming project projectideas read recursion reference replaysolutions rim scanner server set size sms sort sql string swing terminal threads transforms tree ui unicode web windows






