javax.swing.plaf.metal


1. Creating a Metal Look and Feel

UIManager.setLookAndFeel(new MetalLookAndFeel());

2. Setting the Font

UIManager.put("swing.plaf.metal.controlFont", new Font("Dialog", Font.PLAIN, 12));

3. Setting the Background Color

UIManager.put("swing.plaf.metal.control", new Color(238, 238, 238));

4. Setting the Foreground Color

UIManager.put("swing.plaf.metal.controlText", new Color(0, 0, 0));

5. Setting the Border

UIManager.put("swing.plaf.metal.controlBorder",BorderFactory.createLineBorder(Color.GRAY, 1));

6. Setting the Icon

UIManager.put("swing.plaf.metal.controlIcon", new ImageIcon("icon.png"));

7. Setting the Rollover Icon

UIManager.put("swing.plaf.metal.controlRolloverIcon", new ImageIcon("rolloverIcon.png"));

8. Setting the Pressed Icon

UIManager.put("swing.plaf.metal.controlPressedIcon", new ImageIcon("pressedIcon.png"));

9. Setting the Disabled Icon

UIManager.put("swing.plaf.metal.controlDisabledIcon", new ImageIcon("disabledIcon.png"));

10. Setting the Selected Icon

11. Setting the Check Icon

12. Setting the Radio Button Icon

13. Setting the Arrow Icon

14. Setting the Down Arrow Icon

15. Setting the Up Arrow Icon

16. Setting the Left Arrow Icon

17. Setting the Right Arrow Icon

18. Setting the Triangle Icon

19. Setting the Inverse Triangle Icon

20. Setting the Plus Icon

21. Setting the Minus Icon

22. Setting the Multiply Icon

23. Setting the Divide Icon

24. Setting the Equal Icon

25. Setting the Not Equal Icon

26. Setting the Greater Than Icon

27. Setting the Less Than Icon

28. Setting the Greater Than or Equal Icon

29. Setting the Less Than or Equal Icon

30. Setting the And Icon

31. Setting the Or Icon

32. Setting the Xor Icon

33. Setting the Not Icon

34. Setting the Component

35. Setting the Label

36. Setting the Button

37. Setting the Toggle Button

38. Setting the Check Box

39. Setting the Radio Button

40. Setting the Text Field

41. Setting the Password Field

42. Setting the Text Area

43. Setting the List

44. Setting the Combo Box

45. Setting the Scroll Bar

46. Setting the Slider

47. Setting the Progress Bar

48. Setting the Spinner

49. Setting the Table

50. Setting the Tree