thanassis.com
home
blog
Online Games
Sudoku
Ivory Tower
Web Hangman
Software
Java
Object Oriented
Mobiles / J2ME
Research
C.S. Resources
Galleries
Greece
Music
Photography
Art
Personal
About me
Useful Links
Contact
Site
Downloads
My other sites
Thanassis.gr
Djangopedia
Kilogames
Xoocle
TrainJava
GameAnatomy
Latest News
Accessing classes in other packages
There are three ways to access classes in other packages:
1. Write the full name of the class.
class ExitFrame extends java.awt.Frame { ... }
2. Import a specific class
import java.awt.Frame;
class ExitFrame extends Frame { ... }
3. Import all exported classes from a package
import java.awt.*;
class ExitFrame extends Frame { ... }
Previous slide
Next slide
Back to first slide
View graphic version
Web
this site
Thanassis Blog News
In the News
Deep impact smashes comet
3 Florida shark attacks in a week
Mad Cow
summit in Scotland
Search the Archives