public void temp(){
size = this.manage().window().getSize();
}
public static HashMap<String, Integer> getMap() {
map = new HashMap<String, Integer>();
size = this.manage().window().getSize(); // ¿©±â¼ Cannot use this in a static context ¿¡·¯ ¹ß»ý
map.put("½ºÅ©·Ñ ½ÃÀÛ xÁÂÇ¥", size.width / 2);
return map;
}
static¿¡¼ this »ç¿ë ºÒ°¡¶ó´Âµ¥ ±×·³ ¾î¶»°Ô ÇØÁà¾ß Çϳª¿ä??
À§¿¡ void¿¡¼´Â Àß ½áÁö´Âµ¥ ¿À·£¸¸¿¡ ´Ù½Ã °øºÎÇÏ·Á´Ï ¸Ó¸®°¡ ¶Ç ¾Èµ¹¾Æ°¡³×¿ä ..
Á¶¾ð ºÎŹµå·Áµµ µÉ±î¿ä? |
this¶ó´Â °´Ã¼´Â ½ÇÇàµÉ¶§ ¸¸µé¾îÁö´Â °´Ã¼À̹ǷΠÂüÁ¶¸¦ ÇÒ ¼ö ¾ø½À´Ï´Ù.
staticÇÔ¼ö¿¡¼ ¸É¹ö º¯¼ö¸¦ ÂüÁ¶ÇÒ·Á¸é ÇØ´ç °´Ã¼µµ staticÀÌ¿©¾ß ÇÕ´Ï´Ù