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 µµ ÂüÁ¶ÇϽʽÿÀ.