Guest User

Untitled

a guest
Aug 14th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. What steps do I need to take in order to change the 'look and feel' of java swing GUI?
  2. UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
  3.  
  4. public static void main(String[] args) {
  5. try {
  6. UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
  7. }
  8. // Probably want to break this into handling the various exceptions that can be thrown.
  9. catch (Exception e) {
  10. // handle exception
  11. }
  12.  
  13. // Create Swing GUI and so forth
  14. }
  15.  
  16. import org.jvnet.substance.SubstanceLookAndFeel;
  17.  
  18. public class Main {
  19.  
  20. public static void main(String[] args) {
  21. /*Si no se tiene instalado la libreria Substance*/
  22. //formpadre fp= new formpadre();
  23. //fp.show();
  24.  
  25. /*si la libreria substance esta instalada y configurada*/
  26. EventQueue.invokeLater(new Runnable(){
  27. public void run(){
  28. try{
  29. JFrame.setDefaultLookAndFeelDecorated(true);
  30. SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.BusinessBlueSteelSkin"); //SubstanceLookAndFeel.setCurrentTheme("org.jvnet.substance.theme.SubstanceAquaTheme");
  31. }
  32. catch(Exception e){
  33. }
  34. new formpadre().setVisible(true);
  35. }
  36. });
  37. }
  38. }
Add Comment
Please, Sign In to add comment