Thread: [Galkon's]Adding style to the Jframe (like Bluurs)

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 50
  1. #1 [Galkon's]Adding style to the Jframe (like Bluurs) 
    Registered Member
    Xero's Avatar
    Join Date
    Apr 2009
    Posts
    408
    Thanks given
    11
    Thanks received
    4
    Rep Power
    152
    This adds a colorful theme to the Jframe if you didn't like the default style.

    First of all download this file.

    [Only registered and activated users can see links. ]

    Add that to your main directory.

    Next open up Jframe.java
    find
    Code:
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    replace it with this
    Code:
    			UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceChallengerDeepLookAndFeel");
    Now lets look at the code.
    skin = sets the skin
    SubstanceChallengerDeepLookAndFeel = thats the style of the skin. If you want bluurs style as your default change "ChallengerDeep" to "Magma". All you need to change is the stuff after substance but not lookandfeel because every style has that.

    Themes and Skins Changing
    Open your client and click on the java icon in the jframe. That gives you the option to change the styles and watermarks, etc. This is very useful. If you like a theme very well and want it as the default, change it in the code.

    Code:
    UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceTHEMENAMEHERELookAndFeel");
    Heres a pic of the Jframe. This is the ChallengerDeep theme.


    EDIT:
    You may need to change your run.bat to this.
    Code:
    @echo off
    TITLE Client
    
    java -Xmx1000m -cp .;Theme.jar client 0 0 lowmem members 32
    pause
    Stewie
    Spoiler for Whiteboy Fail:


     

  2. #2  
    Registered Member
    Join Date
    Aug 2009
    Posts
    3,094
    Thanks given
    0
    Thanks received
    512
    Rep Power
    675
    Wont use >_>
     

  3. #3  
    Registered Member DestriX's Avatar
    Join Date
    Nov 2008
    Posts
    1,330
    Thanks given
    491
    Thanks received
    153
    Rep Power
    257
    >.> wasn't this posted before?
    [Only registered and activated users can see links. ]
     

  4. #4  
    Registered Member

    Join Date
    Dec 2009
    Posts
    1,142
    Thanks given
    275
    Thanks received
    169
    Rep Power
    164
    Very basic. Not really a tutorial.
    You should teach them how to change the themes, watermarks, button shapers, border painters, gradient painters and title painters as well.
     

  5. #5  
    Registered Member
    Xero's Avatar
    Join Date
    Apr 2009
    Posts
    408
    Thanks given
    11
    Thanks received
    4
    Rep Power
    152
    Quote Originally Posted by Sadistic View Post
    Very basic. Not really a tutorial.
    You should teach them how to change the themes, watermarks, button shapers, border painters, gradient painters and title painters as well.
    Actually that is in the jframe itself. Ill update the thread. And yea ill have it moved to snippets.

    Quote Originally Posted by K4rn4ge View Post
    Wont use >_>
    Stewie
    Spoiler for Whiteboy Fail:


     

  6. #6  
    Registered Member

    Join Date
    Dec 2009
    Posts
    1,142
    Thanks given
    275
    Thanks received
    169
    Rep Power
    164
    Yeah, but since just about everyone uses theme.jar you should do it.
     

  7. #7  
    Registered Member
    Xero's Avatar
    Join Date
    Apr 2009
    Posts
    408
    Thanks given
    11
    Thanks received
    4
    Rep Power
    152
    Quote Originally Posted by Sadistic View Post
    Yeah, but since just about everyone uses theme.jar you should do it.
    Yup

    Added a pic.
    Stewie
    Spoiler for Whiteboy Fail:


     

  8. #8  
    #extreme

    +Deus Ex's Avatar
    Join Date
    Nov 2009
    Posts
    2,964
    Thanks given
    236
    Thanks received
    213
    Rep Power
    411
    I need a jframe tutorial for non-rename lol
    Best regards,
    +Deus Ex
     

  9. #9  
    Registered Member
    Xero's Avatar
    Join Date
    Apr 2009
    Posts
    408
    Thanks given
    11
    Thanks received
    4
    Rep Power
    152
    Quote Originally Posted by Condition Zero View Post
    I need a jframe tutorial for non-rename lol
    idk non anymore lol. but umm switch to renamed its easier to understand. but umm im sure someone will help you with a non rename tut. ill try to figure it out.
    Stewie
    Spoiler for Whiteboy Fail:


     

  10. #10  
    Registered Member
    Join Date
    Jun 2007
    Posts
    276
    Thanks given
    0
    Thanks received
    2
    Rep Power
    14
    I'm not sure why, but I can't get this to work.

    Code:
    
    java.lang.ClassNotFoundException: org.jvnet.substance.skin.SubstanceLookAndFeel
    	at java.net.URLClassLoader$1.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at javax.swing.SwingUtilities.loadSystemClass(Unknown Source)
    	at javax.swing.UIManager.setLookAndFeel(Unknown Source)
    	at rs.graphics.jFrame.initUI(jFrame.java:47)
    	at rs.graphics.jFrame.<init>(jFrame.java:36)
    	at rs.client.main(client.java:2793)
    The theme.jar is in the default directory AND in the package RS
     

Page 1 of 5 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •