|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Æ®¸® ³ëµå¸¦ Ç¥½ÃÇÏ´Â ¿ÀºêÁ§Æ®ÀÇ ¿ä°ÇÀ» Á¤ÀÇÇÕ´Ï´Ù. Ä¿½ºÅÒ ¾ÆÀÌÄÜÀ» Ç¥½ÃÇÏ´Â Æ®¸® ¼¿ ·»´õ¸µÀÇ ±¸Çö¿¹´Â ¡¸The Java Tutorial¡¹ÀÇ¡¸How to Use Trees¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
¸Þ¼ÒµåÀÇ °³¿ä | |
Component |
getTreeCellRendererComponent (JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
ÇöÀçÀÇ Æ®¸® ¼¿ÀÇ °ªÀ» value ·Î ¼³Á¤ÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ »ó¼¼ |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
value
·Î ¼³Á¤ÇÕ´Ï´Ù. selected
°¡ true ÀÇ °æ¿ì´Â ¼¿Àº ¼±Åõǰí ÀÖ´Â °ÍÀ¸·Î¼ Ç¥Çö µË´Ï´Ù. expanded
°¡ true À̸é, ³ëµå´Â ÇöÀç Àü°³µÇ°í ÀÖ½À´Ï´Ù. leaf
°¡ true À̸é, ³ëµå´Â ÀÙÀ» ³ªÅ¸³À´Ï´Ù. hasFocus
°¡ true À̸é, ³ëµå¿¡ ÇöÀç Æ÷Ä¿½º°¡ ÀÖ½À´Ï´Ù. tree
°¡ JTree
ÀÇ °æ¿ì, ¸®½Ã¹ö´Â ¼³Á¤ÁßÀÔ´Ï´Ù. ·»´õ¸µÀÌ °ªÀ» Ç¥Çö Çϴµ¥ »ç¿ëÇÏ´Â Component
¸¦ µ¹·ÁÁÝ´Ï´Ù.
Component
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.