javax.swing.text
Ŭ·¡½º StyledEditorKit.ForegroundAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.text.StyledEditorKit.StyledTextAction
javax.swing.text.StyledEditorKit.ForegroundAction
- ¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
- ActionListener,
Serializable,
Cloneable,
EventListener,
Action
- Æ÷ÇԵǾî Àִ Ŭ·¡½º:
- StyledEditorKit
public static class StyledEditorKit.ForegroundAction
- extends StyledEditorKit.StyledTextAction
foreground Ä÷¯¸¦ ¼³Á¤ÇÏ´Â ¾×¼ÇÀÔ´Ï´Ù. À̰Ϳ¡ ÀÇÇØ
Ÿ°Ù JEditorPane
ÇöÀç ¼±Åõǰí ÀÖ´Â ¹üÀ§¿¡ ÀÖ¾î¼ÀÇ StyleConstants.Foreground
¼Ó¼ºÀÌ ¼³Á¤µË´Ï´Ù. ÀÌ Ã³¸®´Â Ÿ°Ù JEditorPane¿¡ °ü·ÃµÈ
¼½Ä ÷ºÎ ¹®¼»ó¿¡¼ StyledDocument.setCharacterAttributes
¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î ½ÇÇàµË´Ï´Ù.
Ÿ°ÙÀÇ ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®°¡ ActionEvent
¼Ò½º·Î¼ ÁöÁ¤µÇ¾î ¶Ç Ä¿¸àµå ij¸¯ÅÍ ¶óÀÎÀÌ Á¸ÀçÇÏ´Â °æ¿ì, ±× Ä¿¸àµå ij¸¯ÅÍ ¶óÀÎÀº foreground Ä÷¯·Î¼ ÇØ¼®µË´Ï´Ù. Ä¿¸àµå ij¸¯ÅÍ ¶óÀÎÀº ºÒ·Á °£ Color.decode
¿¡ ÀÇÇØ ÇØ¼®µÇ±â ¶§¹®¿¡
Color.decode
¸Þ¼µåÀÇ ÀûÁ¤ÇÑ ÀԷ°ªÀÌ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í
ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ Áö¿øÀº
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÀü
1.4 ÀÌÈÄ, ¸ðµç JavaBeans™
Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº
java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder
¸¦
ÂüÁ¶ÇϽʽÿÀ.
StyledEditorKit.ForegroundAction
public StyledEditorKit.ForegroundAction(String nm,
Color fg)
- »õ·Î¿î ForegroundAction¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
nm
- ¾×¼Ç¸ífg
- foreground Ä÷¯
actionPerformed
public void actionPerformed(ActionEvent e)
- foreground Ä÷¯¸¦ ¼³Á¤ÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
e
- ¾×¼Ç À̺¥Æ®
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ
ÂüÁ¶ÇϽʽÿÀ.