After the article "Let your JBuilder dazzling", he received many friends' letters, and one of them is: Is there any other look? Alloy provides four appearance options and can also customize the desired look. These methods have detailed descriptions in the documentation provided by Alloy, interested friends can go to study themselves, only discuss here: How to make JBuilder's IDE uses these appearances.
One: Ready to work. Download alloy 1.3 and generate the required alloy.jar, please refer to "Let your JBuilder dazzle" (mainly adding an alloy.properties file).
Establish a directory E: / fels / lib (put alloy.jar) / src (save source file) 2: Write the desired class file. 1. Use the appearance provided by alloy. Here is an AcidTheMe as an example:
File: //acidthemealloylookandfeel.java
Package Soft.wes.Feels;
Import com.incors.plaf.alloy. *; import com.incors.plaf.alloy.themes.acid. *;
Public Class AcidthemeAlloyLookandFeel Extends AlloyLookandfeel {Public AcidThemeLOKAndfeel () {Super (New AcidTheme ());}}} // End of File Save the above file, pay attention to package! ! Here, AcidThemeAlloyLookandFeel.java should be placed in the E: / Feels / Src / Soft / Wes / Feels / Directory. DefaultThemeAlloyLookandFeel.java, BedouinthemeLOylookandfeel.java, GlassThemeAlloyLookandFeel.java is the same as the class structure above, I believe you can write it yourself. 2. Use custom appearance. File: //customAlloyLookandFeel.java
Package Soft.wes.Feels;
Import java.awt. *; import com.incors.plaf.alloy. *; import com.incors.plaf.alloy.themes.custom. *;
public class CustomOneAlloyLookAndFeel extends AlloyLookAndFeel {public CustomOneAlloyLookAndFeel () {super (CustomThemeFactory.createTheme (new Color (171, 177, 128), new Color (242, 242, 235), new Color (100, 103, 92), new Color ( 112, 142, 148), New Color (182, 204, 216), New Color (180, 208, 213)));}}} // end of file Save the above file in E: / Feels / SRC / SOFT / WES / Feels directory, please refer to Alloy's API documentation for the specific meaning of each parameter in the program. Three: Generate the desired .jar file. Here is compiled and packaged here using ANT. 1. Create build.xml and build.properties files. Build.properties --------------------------------------- # common attribute setting
Src.dir = srcbuild.dir = buildlib.dir = libbuild.dir.classes = $ {build.dir} /classesclasses.page = fels.jarsrc.page = Feels_src.jar ------------ --------------------------------------------------------- ------------------------- XML Version = "1.0" Encoding = "GB2312"?>
Run: E: / Feels> Ant Output is as follows: BuildFile: build.xmlpreprepare: [MKDIR] Created Dir: E: / Feels / Build [MKDir] Created Dir: E: / Feels / Build / Classes
Compile: [Javac] Compiling 5 Source Files to E: / Feels / Build / Classes
Package: [jar] building jar: E: /FEELS/Feels.jar [jar] building jar: E: /FEELS/Feels_src.jar
Build SuccessFultotal Time: 12 SECONDS 4: Using the appearance in JBuilder: If your JBuilder uses the default look, go to Tools / IDE Options / Look and Feel: Choose Metal, switch (without switching, can not be found After the line), close the JBuilder (must be turned off first). Copy alloy.jar and fels.jar to jBuilder installation directory / lib / ext, modify C: / documents and settings / wes / .jbuilder7 / user_zh.properties (WES is the current username), find eight lines, modified to: Browser; look_and_feel = Soft.wes.Feels.customoneAlloyLOOKANDEEL (Of course, you can freely choose any one), and exit after saving. Restart JBUILDER, you can enjoy your own beautiful appearance.
Five: Description. 1. The above method is also applicable in the Linux platform, and the configuration file that needs to be modified is /Root/.jbuilder7/user_zh.properties (assuming the current user root). 2. The fonts, background, border, and other properties can be modified. These will leave it to everyone. If you have designed a cool look, don't forget to share with you. 3. If you feel too much, Tools / Editor Options / Color / Editor Color Scheme: Select Classic, this solution is the most eye-catching. 4. Note: The most obvious "negative effect" after the revision is the use of centered love, and work efficiency is significantly improved. Cheap Your BOSS :)
Pixabay: The latest plugin version (1.0), support multiple LookandFeel, you can download at http://www.www1.shaReware-software.com/soft.htm.