Wont use >_>
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
replace it with thisCode:
Now lets look at the code.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.
Heres a pic of the Jframe. This is the ChallengerDeep theme.Code:
You may need to change your run.bat to this.
@echo off TITLE Client java -Xmx1000m -cp .;Theme.jar client 0 0 lowmem members 32 pause
Wont use >_>
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.
Yeah, but since just about everyone uses theme.jar you should do it.
I need a jframe tutorial for non-rename lol
I'm not sure why, but I can't get this to work.
The theme.jar is in the default directory AND in the package RSCode:
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)
|« 667+ Shop interface? Project Insanity! | [TUT]Know all items models by one click[TUT] »|
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
|Tags for this Thread|