±Û¾´ÀÌ :Á¶½ÅÁ¦ 1999³â 9¿ù 07ÀÏ 09:49:52
In Reply to: Look&Feel posted by ¹ÚÇöÁ¦ on 1999³â 9¿ù 06ÀÏ 14:55:36:
Ȥ½Ã ¹ÚÇü?
¸Â´Ù¸é ¿¬¶ô¹Ù¶÷...(ÇÚµåÆùÀ» ÀÒ¾î¹ö·Á¼ ¾ÈµÇ´Ï±î ȸ»çÀüÈ·Î 02-3775-3609)
¾Æ´Ï¸é ¸»±¸¿ä.. ^^
L&FÀº ¸» ±×´ë·Î º¸°í ´À³¢´Â °ÍÀÌÁÒ...(ȸé ÀÎÅÍÆäÀ̽ºÀÇ ¸ð¾ç°ú Áú°¨À» ¼³Á¤ÇÏ´Â °Í)
À©µµ¿ìÀÇ ¸ð¾ç ¹× À©µµ¿ìÀÇ Áú°¨ °°Àº °ÍµéÀ» ¼³Á¤Çؼ »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇØÁÖ´Â °ÍÀÌÁö¿ä..
Áï, MS-À©µµ¿ì Çü½Ä, Motif(À¯´Ð½º, ¸®´ª½ºÀÇ X-WindowsÀÇ Çü½Ä), Metal(SwingÀÇ µ¶ÀÚÀû Çü½Ä)·Î
ȸé ÀÎÅÍÆäÀ̽º¸¦ ¼³Á¤ÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.
¾Æ·¡ÀÇ ÇÁ·Î±×·¥ÀÇ ÀϺθ¦ ÇÁ·Î±×·¥ÀÇ ½ÃÀÛ ·çƾ¿¡ ³Ö¾î¼ Å×½ºÆ® Çغ¸½Ã±â ¹Ù¶ø´Ï´Ù.
À§ÀÇ °ÍµéÀº L&FÀ» ¼³Á¤ÇÏ´Â ºÎºÐÀÌ°í
¸¶Áö¸· for ·çÇÁ´Â ÇöÀç ½Ã½ºÅÛ¿¡ ¼³Ä¡µÈ L&FÀÇ Á¾·ù¸¦ ¸ðµÎ Ãâ·ÂÇØÁÝ´Ï´Ù.
try {
/* system L&FÀ» »ç¿ëÇÏ°í ½ÍÀ¸¸é. */
// UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
/* Motif L&FÀ» »ç¿ëÇÏ°í ½ÍÀ¸¸é */
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
/* Window L&FÀ» »ç¿ëÇÏ°í ½ÍÀ¸¸é */
// UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
/* Metal L&F */
// UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
// UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
/*
* ½Ã½ºÅÛ¿¡ ÀνºÅçµÈ Look&FeelÀÇ Å¬·¡½º¸íÀ» ¾Ë¾Æ³½´Ù.
UIManager.LookAndFeelInfo[] _lfs = UIManager.getInstalledLookAndFeels();
for(int i = 0 ; i < _lfs.length ; i++) {
System.out.println("LookAndFeel : " + _lfs[i].getClassName());
}
*/
} catch (Exception e) {
System.out.println("Error loading L&F: " + e);
}