JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.plaf.metal
Ŭ·¡½º MetalLookAndFeel

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.LookAndFeel 
      »óÀ§¸¦ È®Àå javax.swing.plaf.basic.BasicLookAndFeel 
          »óÀ§¸¦ È®Àå javax.swing.plaf.metal.MetalLookAndFeel
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable

public class MetalLookAndFeel
extends BasicLookAndFeel

Java Look & Feel (ÄÚµå¸íÀº Metal)¸¦ ±¸ÇöÇÕ´Ï´Ù.

¸¹Àº ÄÁÆ®·Ñ·Î metal´Â µðÆúÆ®·Î º¼µå ÆùÆ®¸¦ »ç¿ëÇÕ´Ï´Ù. ¸ðµç ÄÁÆ®·Ñ (³»ºÎ ÇÁ·¹ÀÓÀÇ Å¸ÀÌƲÀ̳ª Ŭ¶óÀ̾ðÆ®·Î Àå½ÄÇÑ ÇÁ·¹ÀÓÀÇ Å¸ÀÌƲ ¹Ù¸¦ Á¦¿ÜÇÏ´Ù)ÀÌ ÇÁ·¹ÀÎ ÆùÆ®¸¦ »ç¿ëÇϵµ·Ï ÇÏ·Á¸é, ¾Æ·¡ÀÇ ¾î´ÀÂÊÀ̵çÀ» ½Ç½ÃÇÕ´Ï´Ù.

µðÆúÆ® ÇÁ·ÎÆÛƼ swing.boldMetal¸¦ ¼³Á¤Çϸé, °°Àº À̸§ÀÇ ½Ã½ºÅÛ ÇÁ·ÎÆÛƼº¸´Ù ¿ì¼±ÇØ »ç¿ëµË´Ï´Ù. µðÆúÆ® ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÑ ÈÄ´Â MetalLookAndFeel¸¦ ÀçÀνºÅç ÇØ, ÀÌÀü¿¡ ÀÛ¼ºÇÑ À§Á¦Æ®ÀÇ UI¸¦ ¸ðµÎ °»½ÅÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ±×·¸°Ô ÇÏÁö ¾Ê´Â °æ¿ì´Â °á°ú¸¦ Á¤ÀÇÇÒ ¼ö ¾ø½À´Ï´Ù. Äڵ忹¸¦ ÀÌÇÏ¿¡ ³ªÅ¸³À´Ï´Ù.
   // turn off bold fonts
   UIManager.put("swing.boldMetal", Boolean.FALSE);

   // re-install the Metal Look and Feel
   UIManager.setLookAndFeel(new MetalLookAndFeel());

   // only needed to update existing widgets
   SwingUtilities.updateComponentTreeUI(rootComponent);
 

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ Áö¿øÀº ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. JDK ¹öÀü 1.4 ÀÌÈÄ, ¸ðµç JavaBeans Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº java.beans ÆÐÅ°Áö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦ ÂüÁ¶ÇϽʽÿÀ.


»ý¼ºÀÚ °³¿ä
MetalLookAndFeel ()
           
 
¸Þ¼­µå °³¿ä
protected  void createDefaultTheme ()
           
static ColorUIResource getAcceleratorForeground ()
           
static ColorUIResource getAcceleratorSelectedForeground ()
           
static ColorUIResource getBlack ()
           
static ColorUIResource getControl ()
           
static ColorUIResource getControlDarkShadow ()
           
static ColorUIResource getControlDisabled ()
           
static ColorUIResource getControlHighlight ()
           
static ColorUIResource getControlInfo ()
           
static ColorUIResource getControlShadow ()
           
static ColorUIResource getControlTextColor ()
           
static FontUIResource getControlTextFont ()
           
static MetalTheme getCurrentTheme ()
          MetalLookAndFeel·Î ÇöÀç »ç¿ëµÇ°í ÀÖ´Â Å׸¶¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 UIDefaults getDefaults ()
          Look & Feel °íÀ¯ÀÇ µðÆúÆ® Å×À̺íÀ» ÀÛ¼ºÇϱâ À§Çؼ­ UIManager.setLookAndFeel¿¡ ÀÇÇØ 1ȸ È£ÃâÇÕ´Ï´Ù.
 String getDescription ()
           ¡¸The CDE/Motif Look and Feel¡¹ µî, ÀÌ Look & Feel ±¸Çö¿¡ ´ëÇÑ 1 ÇàÀÇ ¼³¸íÀ» ¸®ÅÏÇÕ´Ï´Ù.
static ColorUIResource getDesktopColor ()
           
 Icon getDisabledIcon (JComponent  component, Icon  icon)
          »ç¿ë ºÒ°¡ÀÎ ¿Ü°üÀÇ IconÀ» ¸®ÅÏÇÕ´Ï´Ù.
 Icon getDisabledSelectedIcon (JComponent  component, Icon  icon)
          ¼±ÅÃµÈ »ç¿ë ºÒ°¡ÀÎ ÄÄÆÛ³ÍÆ®°¡ »ç¿ëÇÏ´Â IconÀ» ¸®ÅÏÇÕ´Ï´Ù.
static ColorUIResource getFocusColor ()
           
static ColorUIResource getHighlightedTextColor ()
           
 String getID ()
          ÀÌ Look & Feel¸¦ ½Äº°Çϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.
static ColorUIResource getInactiveControlTextColor ()
           
static ColorUIResource getInactiveSystemTextColor ()
           
static ColorUIResource getMenuBackground ()
           
static ColorUIResource getMenuDisabledForeground ()
           
static ColorUIResource getMenuForeground ()
           
static ColorUIResource getMenuSelectedBackground ()
           
static ColorUIResource getMenuSelectedForeground ()
           
static FontUIResource getMenuTextFont ()
           
 String getName ()
           ¡¸CDE/Motif¡¹ µî, ÀÌ Look & Feel¸¦ ½Äº°Çϴ ªÀº ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.
static ColorUIResource getPrimaryControl ()
           
static ColorUIResource getPrimaryControlDarkShadow ()
           
static ColorUIResource getPrimaryControlHighlight ()
           
static ColorUIResource getPrimaryControlInfo ()
           
static ColorUIResource getPrimaryControlShadow ()
           
static ColorUIResource getSeparatorBackground ()
           
static ColorUIResource getSeparatorForeground ()
           
static FontUIResource getSubTextFont ()
           
 boolean getSupportsWindowDecorations ()
          LookAndFeel°¡ µ¹·ÁÁÖ´Â RootPaneUIÀνºÅϽº°¡ JRootPane¿¡ ¼­ÀÇ À©µµ¿ì Àå½ÄÀÇ Á¦°øÀ» Áö¿øÇÏ´ÂÀÎ °æ¿ì, true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
static ColorUIResource getSystemTextColor ()
           
static FontUIResource getSystemTextFont ()
           
static ColorUIResource getTextHighlightColor ()
           
static ColorUIResource getUserTextColor ()
           
static FontUIResource getUserTextFont ()
           
static ColorUIResource getWhite ()
           
static ColorUIResource getWindowBackground ()
           
static ColorUIResource getWindowTitleBackground ()
           
static FontUIResource getWindowTitleFont ()
           
static ColorUIResource getWindowTitleForeground ()
           
static ColorUIResource getWindowTitleInactiveBackground ()
           
static ColorUIResource getWindowTitleInactiveForeground ()
           
protected  void initClassDefaults (UIDefaults  table)
          ID¿Í ComponentUI Æä¾î¸¦ °Ç³×¹ÞÀº µðÆúÆ® Å×ÀÌºí¿¡ ¹èÄ¡ÇØ, UI Ŭ·¡½ºÀÇ ID ·ÎºÎÅÍ ComponentUI Ŭ·¡½º¿¡ÀÇ ¸ÅÇÎÀ» ÀÛ¼ºÇÕ´Ï´Ù.
protected  void initComponentDefaults (UIDefaults  table)
           
protected  void initSystemColorDefaults (UIDefaults  table)
          µðÆúÆ®ÀÇ Å×ÀÌºí¿¡ SystemColor¸¦ ·ÎµåÇÕ´Ï´Ù.
 boolean isNativeLookAndFeel ()
          ±âº»ÀÇ Ç÷§Æû¿¡ ¡¸³×ÀÌƼºêÀΡ¹Look & Feel°¡ ÀÖ¾î, ÇöÀçÀÇ Look & Feel°¡ ±× ±¸ÇöÀÎ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 boolean isSupportedLookAndFeel ()
          ±âº»ÀÇ Ç÷§ÆûÀÌ ÀÌ Look & Feel¸¦ Áö¿ø Çϰųª Çã¿ë Çϰųª ÇÏ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 void provideErrorFeedback (Component  component)
           Æ÷Ä¿½º¸¦ °¡Áö´Â ÆíÁý ºÒ°¡´ÉÇÑ JTextField¿¡ ºÙÀ̱⸦ ½Ç½ÃÇÏ´Â µî, »ç¿ëÀÚ°¡ ¹«È¿ÀÎ Á¶ÀÛÀ» ÇÏ·Á°í ÇßÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù.
static void setCurrentTheme (MetalTheme  theme)
          MetalLookAndFeel·Î »ç¿ëÇÏ´Â Å׸¶¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 
Ŭ·¡½º javax.swing.plaf.basic. BasicLookAndFeel ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
createAudioAction, getAudioActionMap, initialize, loadSystemColors, playSound, uninitialize
 
Ŭ·¡½º javax.swing. LookAndFeel ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

MetalLookAndFeel

public MetalLookAndFeel()
¸Þ¼­µåÀÇ »ó¼¼

getName

public String  getName()
Ŭ·¡½º LookAndFeel ±â¼ú:
¡¸CDE/Motif¡¹ µî, ÀÌ Look & Feel¸¦ ½Äº°Çϴ ªÀº ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ Ä³¸¯ÅÍ ¶óÀÎÀº ¸Þ´º Ç׸ñ¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. Look & Feel´Â °¢°¢ ´Ù¸¥ À̸§À» °¡Áö°í ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î ¸î°³ÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ·»´õ¸µ ¹æ¹ýÀ» º¯°æÇÏ´Â MotifLookAndFeel ¼­ºê Ŭ·¡½º´Â ¡¸CDE/Motif My Way¡¹ µîÀ¸·Î ºÒ¸³´Ï´Ù. ÀÌ·¯ÇÑ À̸§Àº »ç¿ëÀÚ°¡ À̸§ÀÇ ¸®½ºÆ®·ÎºÎÅÍ L&F¸¦ ¼±ÅÃÇÒ °æ¿ì¿¡ Æí¸®ÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º LookAndFeel ³»ÀÇ getName

getID

public String  getID()
Ŭ·¡½º LookAndFeel ±â¼ú:
ÀÌ Look & Feel¸¦ ½Äº°Çϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ Ä³¸¯ÅÍ ¶óÀÎÀº À¯¸íÇÑ Look & Feel ±¸ÇöÀ» ÀνÄÇÏ´Â ¾îÇø®ÄÉÀ̼Ç/¼­ºñ½º·Î »ç¿ëµË´Ï´Ù. ÇöÀç, À¯¸íÇÑ °ÍÀ¸·ÎÀÇÇØ ¡¸Motif¡¹, ¡¸Windows¡¹, ¡¸Mac¡¹, ¡¸Metal¡¹ µîÀÔ´Ï´Ù. Look & Feel ·Î ±âº»ÀûÀÎ º¯°æÀ» ´õÇÏÁö ¾Ê´Â À¯¸íÇÑ ½´ÆÛ Å¬·¡½º·ÎºÎÅÍ ÆÄ»ýÇÑ LookAndFeel´Â ÀÌ ¸Þ¼­µå¸¦ ¿À¹ö¶óÀ̵å(override) Çؼ­´Â ¾ÈµÇ´Â °Í¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä.

Á¤ÀÇ:
Ŭ·¡½º LookAndFeel ³»ÀÇ getID

getDescription

public String  getDescription()
Ŭ·¡½º LookAndFeel ±â¼ú:
¡¸The CDE/Motif Look and Feel¡¹ µî, ÀÌ Look & Feel ±¸Çö¿¡ ´ëÇÑ 1 ÇàÀÇ ¼³¸íÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ°ÍÀº »ç¿ëÀÚ Àü¿ëÀÇ Ä³¸¯ÅÍ ¶óÀÎÀ¸·Î À©µµ¿ìÀÇ Å¸ÀÌƲÀ̳ª Åø ÈùÆ® ¸Þ¼¼Áö µî¿¡ »ç¿ëµË´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º LookAndFeel ³»ÀÇ getDescription

isNativeLookAndFeel

public boolean isNativeLookAndFeel()
Ŭ·¡½º LookAndFeel ±â¼ú:
±âº»ÀÇ Ç÷§Æû¿¡ ¡¸³×ÀÌƼºêÀΡ¹Look & Feel°¡ ÀÖ¾î, ÇöÀçÀÇ Look & Feel°¡ ±× ±¸ÇöÀÎ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¿¹¸¦ µé¾î CDE/Motif ¿ÜÇü°ú ±¸Çö¿¡¼­´Â ±âº»ÀÇ Ç÷§ÆûÀÌ Solaris ¿´À» °æ¿ì¿¡ true°¡ ¸®Åϵ˴ϴ٠.

Á¤ÀÇ:
Ŭ·¡½º LookAndFeel ³»ÀÇ isNativeLookAndFeel

isSupportedLookAndFeel

public boolean isSupportedLookAndFeel()
Ŭ·¡½º LookAndFeel ±â¼ú:
±âº»ÀÇ Ç÷§ÆûÀÌ ÀÌ Look & Feel¸¦ Áö¿ø Çϰųª Çã¿ë Çϰųª ÇÏ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. Look & Feel°¡ Ư¼öÇÑ ÀÚ¿øÀ̳ª, ÇöÀçÀÇ Ç÷§Æû¿¡ ´ëÇؼ­ Á¤ÀǵǾî ÀÖÁö ¾ÊÀº ¹ýÀû °è¾à¿¡ ÀÇÁ¸µÈ °æ¿ì, ÀÌ ¸Þ¼­µå´Â false¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º LookAndFeel ³»ÀÇ isSupportedLookAndFeel
°ü·Ã Ç׸ñ:
UIManager.setLookAndFeel(javax.swing.LookAndFeel)

getSupportsWindowDecorations

public boolean getSupportsWindowDecorations()
LookAndFeel°¡ µ¹·ÁÁÖ´Â RootPaneUIÀνºÅϽº°¡ JRootPane¿¡ ¼­ÀÇ À©µµ¿ì Àå½ÄÀÇ Á¦°øÀ» Áö¿øÇÏ´ÂÀÎ °æ¿ì, true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

º¸´õ¿Í À©µµ¿ìÀÇ Å¸ÀÌƲ ±¸È¹ÀÇ Àå½ÄÀÇ Á¦°øÀ» Áö¿ø Çϱâ À§ÇØ, ÀÌ ±¸ÇöÀº true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º LookAndFeel ³»ÀÇ getSupportsWindowDecorations
¹Ýȯ°ª:
ÀÛ¼ºµÈ RootPaneUI ÀνºÅϽº°¡ Ŭ¶óÀ̾ðÆ®ÃøÀÇ Àå½ÄÀ» Áö¿øÇÏ´ÂÀÎ °æ¿ì, true
µµÀÔµÈ ¹öÀü :
1.4
°ü·Ã Ç׸ñ:
JDialog.setDefaultLookAndFeelDecorated(boolean), JFrame.setDefaultLookAndFeelDecorated(boolean), JRootPane.setWindowDecorationStyle(int)

initClassDefaults

protected void initClassDefaults(UIDefaults  table)
ID¿Í ComponentUI Æä¾î¸¦ °Ç³×¹ÞÀº µðÆúÆ® Å×ÀÌºí¿¡ ¹èÄ¡ÇØ, UI Ŭ·¡½ºÀÇ ID ·ÎºÎÅÍ ComponentUI Ŭ·¡½º¿¡ÀÇ ¸ÅÇÎÀ» ÀÛ¼ºÇÕ´Ï´Ù. °¢ JComponent Ŭ·¡½º´Â ±× ÀÚüÀÇ UI Ŭ·¡½ºÀÇ ID ij¸¯ÅÍ ¶óÀÎÀ» ÁöÁ¤ÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, JButton´Â UI Ŭ·¡½ºÀÇ ID ¡¸ButtonUI¡¹¸¦ °¡Á®, ÀÌ ¸Þ¼­µå´Â ¡¸javax.swing.plaf.metal.MetalButtonUI¡¹¿¡ ¸ÅÇÎ ÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º BasicLookAndFeel ³»ÀÇ initClassDefaults
°ü·Ã Ç׸ñ:
BasicLookAndFeel.getDefaults(), JComponent.getUIClassID()

initSystemColorDefaults

protected void initSystemColorDefaults(UIDefaults  table)
µðÆúÆ®ÀÇ Å×ÀÌºí¿¡ SystemColor¸¦ ·ÎµåÇÕ´Ï´Ù. SystemColor °¢ Å°´Â µðÆúÆ®¿¡¼­´Â SystemColor public ÇʵåÀÇ À̸§°ú °°°Ô µË´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º BasicLookAndFeel ³»ÀÇ initSystemColorDefaults

initComponentDefaults

protected void initComponentDefaults(UIDefaults  table)
¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º BasicLookAndFeel ³»ÀÇ initComponentDefaults

createDefaultTheme

protected void createDefaultTheme()

getDefaults

public UIDefaults  getDefaults()
Ŭ·¡½º LookAndFeel ±â¼ú:
Look & Feel °íÀ¯ÀÇ µðÆúÆ® Å×À̺íÀ» ÀÛ¼ºÇϱâ À§Çؼ­ UIManager.setLookAndFeel¿¡ ÀÇÇØ 1ȸ È£ÃâÇÕ´Ï´Ù. ¾ÆÇÁ¸®ÄÉÀ̼Ǻô´õ µî, ´Ù¸¥ ¾îÇø®ÄÉÀ̼ǵµ ÀÌ ¸Þ¼­µå¸¦ È£ÃâÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º BasicLookAndFeel ³»ÀÇ getDefaults
°ü·Ã Ç׸ñ:
LookAndFeel.initialize(), LookAndFeel.uninitialize(), UIManager.setLookAndFeel(javax.swing.LookAndFeel)

provideErrorFeedback

public void provideErrorFeedback(Component  component)

Æ÷Ä¿½º¸¦ °¡Áö´Â ÆíÁý ºÒ°¡´ÉÇÑ JTextField¿¡ ºÙÀ̱⸦ ½Ç½ÃÇÏ´Â µî, »ç¿ëÀÚ°¡ ¹«È¿ÀÎ Á¶ÀÛÀ» ÇÏ·Á°í ÇßÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù.

µ¥½ºÅ©Å¾¿¡ °¡½ÃÀûÀÎ ¿¡·¯ Ç¥½Ã¸¦ ½Ç½ÃÇÒ ¼ö ÀÖµµ·Ï ÇßÀ» °æ¿ì, ÀÌ ¸Þ¼­µå´Â ¾×Ƽºê À©µµ¿ìÀÇ Ä¸¼Ç ¹Ù¸¦ Ç÷¡½Ã ÇÕ´Ï´Ù. ÇÁ·ÎÆÛƼ awt.visualbell¸¦ true ·Î ¼³Á¤Çصµ, °°Àº °á°ú¸¦ ¾òÀ» ¼ö ÀÖ½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º LookAndFeel ³»ÀÇ provideErrorFeedback
ÆĶó¹ÌÅÍ:
component - ¿¡·¯°¡ ¹ß»ýÇÑ ÄÄÆÛ³ÍÆ®. nullÀº ¿¡·¯ Á¶°ÇÀ» Component¿¡ Á÷Á¢ °ü·ÃÁþÁö ¾Ê´Â °ÍÀ» ³ªÅ¸³»´Â
°ü·Ã Ç׸ñ:
LookAndFeel.provideErrorFeedback(java.awt.Component)

setCurrentTheme

public static void setCurrentTheme(MetalTheme  theme)
MetalLookAndFeel·Î »ç¿ëÇÏ´Â Å׸¶¸¦ ¼³Á¤ÇÕ´Ï´Ù. null ¿¡¼­µµ »ó°üÇÏÁö ¾Ê½À´Ï´Ù.
Å׸¶¸¦ ¼³Á¤Çϸé, After setting the theme, you need to re-install the MetalLookAndFeel¸¦ ÀçÀνºÅç ÇØ, ÀÌÀü¿¡ ÀÛ¼ºÇÑ À§Á¦Æ®ÀÇ UI¸¦ ¸ðµÎ °»½ÅÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ±×·¸°Ô ÇÏÁö ¾Ê´Â °æ¿ì´Â °á°ú¸¦ Á¤ÀÇÇÒ ¼ö ¾ø½À´Ï´Ù. ÀÌÇÏ¿¡ Äڵ忹¸¦ ³ªÅ¸³À´Ï´Ù.
   // turn off bold fonts
   MetalLookAndFeel.setCurrentTheme(theme);

   // re-install the Metal Look and Feel
   UIManager.setLookAndFeel(new MetalLookAndFeel());

   // only needed to update existing widgets
   SwingUtilities.updateComponentTreeUI(rootComponent);
 

ÆĶó¹ÌÅÍ:
theme - »ç¿ëÇÏ´Â Å׸¶. null ÀÌ¿Ü.
¿¹¿Ü:
NullPointerException - null ÆĶó¹ÌÅÍ°¡ °Ç³×¹Þ¾ÒÀ» °æ¿ì
°ü·Ã Ç׸ñ:
getCurrentTheme()

getCurrentTheme

public static MetalTheme  getCurrentTheme()
MetalLookAndFeel·Î ÇöÀç »ç¿ëµÇ°í ÀÖ´Â Å׸¶¸¦ ¸®ÅÏÇÕ´Ï´Ù. Å׸¶°¡ ¼³Á¤µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â ÇöÀçÀÇ Å׸¶¸¦ ¼³Á¤Çϱâ À§ÇØ, nullÀÌ µÉ °ÍÀº ¾ø½À´Ï´Ù.

¹Ýȯ°ª:
ÇöÀçÀÇ Å׸¶
µµÀÔµÈ ¹öÀü :
1.5
°ü·Ã Ç׸ñ:
setCurrentTheme(javax.swing.plaf.metal.MetalTheme)

getDisabledIcon

public Icon  getDisabledIcon(JComponent  component,
                            Icon  icon)
»ç¿ë ºÒ°¡ÀÎ ¿Ü°üÀÇ IconÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ÁöÁ¤µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì¿¡ »ç¿ë ºÒ°¡ÀÎ IconÀ» »ý¼ºÇϱâ À§Çؼ­ »ç¿ëµË´Ï´Ù. ¿¹¸¦ µé¾î JButtonÀ» ÀÛ¼ºÇØ setIcon °æÀ¯¿¡¼­¸¸ IconÀ» ÁöÁ¤Çϸé, ÀÌ ¸Þ¼­µå´Â »ç¿ë ºÒ°¡ÀÎ IconÀ» »ý¼ºÇϱâ À§Çؼ­ È£ÃâÇÕ´Ï´Ù. nullÀÌ °Ç³×¹Þ´Â °÷ÀÇ ¸Þ¼­µå´Â nullÀ» ¸®ÅÏÇÕ´Ï´Ù.

Look & Feel¿¡ µû¶ó¼­´Â »ç¿ë ºÒ°¡ÀÎ Icon¸¦ ·»´õ¸µ ÇÏÁö ¾ÊÀ»Áöµµ ¸ð¸¨´Ï´Ù. ±× °æ¿ì´Â ¹«½ÃµË´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º LookAndFeel ³»ÀÇ getDisabledIcon
ÆĶó¹ÌÅÍ:
component - Icon¸¦ Ç¥½ÃÇÏ´Â JComponent. null ¿¡¼­µµ °¡´É.
icon - »ç¿ë ºÒ°¡ÀÎÀÚ½Ä ¾ÆÀÌÄÜÀ» »ý¼ºÇÏ´Â Icon
¹Ýȯ°ª:
»ç¿ë ºÒ°¡ÀÎÀڽľÆÀÌÄÜ. ÀûÀýÇÑ Icon°¡ »ý¼ºµÇÁö ¾Ê¾Ò´ø °æ¿ì´Â null
µµÀÔµÈ ¹öÀü :
1.5

getDisabledSelectedIcon

public Icon  getDisabledSelectedIcon(JComponent  component,
                                    Icon  icon)
¼±ÅÃµÈ »ç¿ë ºÒ°¡ÀÎ ÄÄÆÛ³ÍÆ®°¡ »ç¿ëÇÏ´Â IconÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â »ç¿ë ºÒ°¡ ¶ÇÇÑ ¼±Åõǰí ÀÖÁö¸¸ ±× »óÅ¿¡ ´ëÇÑ Æ¯Á¤ÀÇ IconÀ» °¡ÁöÁö ¾Ê´Â ÄÄÆÛ³ÍÆ®ÀÇ IconÀ» »ý¼ºÇϱâ À§Çؼ­ »ç¿ëµË´Ï´Ù. ¿¹¸¦ µé¾î JButtonÀ» ÀÛ¼ºÇØ setIcon °æÀ¯¿¡¼­¸¸ IconÀ» ÁöÁ¤Çϸé, ÀÌ ¸Þ¼­µå´Â »ç¿ë ºÒ°¡ ¶ÇÇÑ ¼±ÅÃµÈ IconÀ» »ý¼ºÇϱâ À§Çؼ­ È£ÃâÇÕ´Ï´Ù. nullÀÌ °Ç³×¹Þ´Â °÷ÀÇ ¸Þ¼­µå´Â nullÀ» ¸®ÅÏÇÕ´Ï´Ù.

Look & Feel¿¡ µû¶ó¼­´Â »ç¿ë ºÒ°¡ ¶ÇÇÑ ¼±ÅÃµÈ Icon¸¦ ·»´õ¸µ ÇÏÁö ¾ÊÀ»Áöµµ ¸ð¸¨´Ï´Ù. ±× °æ¿ì´Â ¹«½ÃµË´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º LookAndFeel ³»ÀÇ getDisabledSelectedIcon
ÆĶó¹ÌÅÍ:
component - Icon¸¦ Ç¥½ÃÇÏ´Â JComponent. null ¿¡¼­µµ °¡´É.
icon - »ç¿ë ºÒ°¡ ¶ÇÇÑ ¼±ÅõÈÀÚ½Ä ¾ÆÀÌÄÜÀ» »ý¼ºÇÏ´Â Icon
¹Ýȯ°ª:
»ç¿ë ºÒ°¡ ¶ÇÇÑ ¼±ÅõÈÀڽľÆÀÌÄÜ. ÀûÀýÇÑ Icon°¡ »ý¼ºµÇÁö ¾Ê¾Ò´ø °æ¿ì´Â null
µµÀÔµÈ ¹öÀü :
1.5

getControlTextFont

public static FontUIResource  getControlTextFont()

getSystemTextFont

public static FontUIResource  getSystemTextFont()

getUserTextFont

public static FontUIResource  getUserTextFont()

getMenuTextFont

public static FontUIResource  getMenuTextFont()

getWindowTitleFont

public static FontUIResource  getWindowTitleFont()

getSubTextFont

public static FontUIResource  getSubTextFont()

getDesktopColor

public static ColorUIResource  getDesktopColor()

getFocusColor

public static ColorUIResource  getFocusColor()

getWhite

public static ColorUIResource  getWhite()

getBlack

public static ColorUIResource  getBlack()

getControl

public static ColorUIResource  getControl()

getControlShadow

public static ColorUIResource  getControlShadow()

getControlDarkShadow

public static ColorUIResource  getControlDarkShadow()

getControlInfo

public static ColorUIResource  getControlInfo()

getControlHighlight

public static ColorUIResource  getControlHighlight()

getControlDisabled

public static ColorUIResource  getControlDisabled()

getPrimaryControl

public static ColorUIResource  getPrimaryControl()

getPrimaryControlShadow

public static ColorUIResource  getPrimaryControlShadow()

getPrimaryControlDarkShadow

public static ColorUIResource  getPrimaryControlDarkShadow()

getPrimaryControlInfo

public static ColorUIResource  getPrimaryControlInfo()

getPrimaryControlHighlight

public static ColorUIResource  getPrimaryControlHighlight()

getSystemTextColor

public static ColorUIResource  getSystemTextColor()

getControlTextColor

public static ColorUIResource  getControlTextColor()

getInactiveControlTextColor

public static ColorUIResource  getInactiveControlTextColor()

getInactiveSystemTextColor

public static ColorUIResource  getInactiveSystemTextColor()

getUserTextColor

public static ColorUIResource  getUserTextColor()

getTextHighlightColor

public static ColorUIResource  getTextHighlightColor()

getHighlightedTextColor

public static ColorUIResource  getHighlightedTextColor()

getWindowBackground

public static ColorUIResource  getWindowBackground()

getWindowTitleBackground

public static ColorUIResource  getWindowTitleBackground()

getWindowTitleForeground

public static ColorUIResource  getWindowTitleForeground()

getWindowTitleInactiveBackground

public static ColorUIResource  getWindowTitleInactiveBackground()

getWindowTitleInactiveForeground

public static ColorUIResource  getWindowTitleInactiveForeground()

getMenuBackground

public static ColorUIResource  getMenuBackground()

getMenuForeground

public static ColorUIResource  getMenuForeground()

getMenuSelectedBackground

public static ColorUIResource  getMenuSelectedBackground()

getMenuSelectedForeground

public static ColorUIResource  getMenuSelectedForeground()

getMenuDisabledForeground

public static ColorUIResource  getMenuDisabledForeground()

getSeparatorBackground

public static ColorUIResource  getSeparatorBackground()

getSeparatorForeground

public static ColorUIResource  getSeparatorForeground()

getAcceleratorForeground

public static ColorUIResource  getAcceleratorForeground()

getAcceleratorSelectedForeground

public static ColorUIResource  getAcceleratorSelectedForeground()

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.