java.lang.Object
java.awt.MediaTracker
- All Implemented Interfaces:
- Serializable
- See Also:
- Top Examples, Source Code,
Image.flush()
public static final int ABORTED
- See Also:
statusID(int, boolean)
, statusAll(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void addImage(Image image,
int id)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1911]Load an Image from a JAR file
By Anonymous on 2007/08/05 21:13:02 Rate
String imgName = "image.jpg";
URL imgURL = getClass ( ) .getResource ( imgName ) ;
Toolkit tk = Toolkit.getDefaultToolkit ( ) ;
Image img = null;
try {
MediaTracker m = new MediaTracker ( this ) ;
img = tk.getImage ( imgURL ) ;
m.addImage ( img, 0 ) ;
m.waitForAll ( ) ;
}
catch ( Exception e ) {
e.printStackTrace ( ) ;
}
public void addImage(Image image,
int id,
int w,
int h)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean checkAll()
- See Also:
isErrorID(int)
, isErrorAny()
, checkID(int)
, checkAll(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean checkAll(boolean load)
- See Also:
isErrorID(int)
, isErrorAny()
, checkAll()
, checkID(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean checkID(int id)
- See Also:
isErrorID(int)
, isErrorAny()
, checkAll()
, checkID(int, boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean checkID(int id,
boolean load)
- See Also:
isErrorID(int)
, isErrorAny()
, checkAll()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int COMPLETE
- See Also:
statusID(int, boolean)
, statusAll(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int ERRORED
- See Also:
statusID(int, boolean)
, statusAll(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object[] getErrorsAny()
- See Also:
getErrorsID(int)
, isErrorAny()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object[] getErrorsID(int id)
- See Also:
getErrorsAny()
, isErrorAny()
, isErrorID(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isErrorAny()
- See Also:
getErrorsAny()
, isErrorID(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isErrorID(int id)
- See Also:
getErrorsID(int)
, isErrorAny()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOADING
- See Also:
statusID(int, boolean)
, statusAll(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public MediaTracker(Component comp)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeImage(Image image)
- See Also:
removeImage(java.awt.Image, int, int, int)
, removeImage(java.awt.Image, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeImage(Image image,
int id)
- See Also:
removeImage(java.awt.Image, int, int, int)
, removeImage(java.awt.Image)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeImage(Image image,
int id,
int width,
int height)
- See Also:
removeImage(java.awt.Image, int)
, removeImage(java.awt.Image)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int statusAll(boolean load)
- See Also:
COMPLETE
, ERRORED
, ABORTED
, LOADING
, statusID(int, boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int statusID(int id,
boolean load)
- See Also:
COMPLETE
, ERRORED
, ABORTED
, LOADING
, statusAll(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void waitForAll()
throws InterruptedException
- See Also:
isErrorID(int)
, isErrorAny()
, waitForAll(long)
, waitForID(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean waitForAll(long ms)
throws InterruptedException
- See Also:
isErrorID(int)
, isErrorAny()
, waitForID(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void waitForID(int id)
throws InterruptedException
- See Also:
isErrorID(int)
, isErrorAny()
, waitForAll()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean waitForID(int id,
long ms)
throws InterruptedException
- See Also:
isErrorID(int)
, isErrorAny()
, statusID(int, boolean)
, waitForID(int)
, waitForAll()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples