¿¹Á¦

public class ClassA {

private Pattern pattern;

public void makePattern( Device device, Image image ) {

pattern = new Pattern( device, image );

if ( !pattern.isDisposed() ) {
//do something...
}
}
}



¼Ö·ç¼Ç
ÀÚ¿ø ´©¼ö¸¦ ÇÇÇÏ·Á¸é ¸ðµç org.eclipse.swt.graphics.Pattern¿¡¼­ dispose()°¡ È£ÃâµÇ´ÂÁö È®ÀÎÇϽʽÿÀ.
Âü°í: ÀÌ ±ÔÄ¢Àº ¸ðµç Pattern »ý¼ºÀÚ Çü½Ä¿¡ Àû¿ëµË´Ï´Ù.


public class ClassA {

private Pattern pattern;

public void makePattern( Device device, Image image ) {

pattern = new Pattern( device, image );

if ( !pattern.isDisposed() ) {
//do something...
}
pattern.dispose();
}
}