In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "how to make JBuilder's ide look and feel". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to make JBuilder's ide look and feel.
One: prepare for the work.
Download Alloy 1.3 and generate the required Alloy.jar (mainly by adding an alloy.properties file).
Create a directory E:feelslib (put Alloy.jar in it)
Src (store source files)
Second: write the required class files.
1. Use the look and feel provided by Alloy.
Take AcidTheme as an example:
Java "> 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 AcidThemeAlloyLookAndFeel () {
Super (new AcidTheme ())
}
} / / end of file
Save the above files and pay attention to packageboxes! Here the AcidThemeAlloyLookAndFeel.java should be placed in the E:feelssrcsoftwesfeels directory.
DefaultThemeAlloyLookAndFeel.java, BedouinThemeAlloyLookAndFeel.java, GlassThemeAlloyLookAndFeel.java are the same as the above class structure. I believe they can be written by themselves with a little JAVA foundation.
two。 Use a custom appearance.
File://CustomOneAlloyLookAndFeel.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 the E:feelssrcsoftwesfeels directory. For the specific meaning of each parameter in the program, please refer to the api document of Alloy.
Third: generate the required .jar files.
ANT is used here to compile and package.
1. Create build.XML and build.properties files.
Build.properties
-
# Common attribute settings
Src.dir=src
Build.dir=build
Lib.dir=lib
Build.dir.classes=$ {build.dir} / classes
Classes.package = feels.jar
Src.package = feels_src.jar
-
Build.xml
-
-
About the use of ANT, please refer to the relevant articles.
two。 Compile and package.
First, notice that the directory structure is as follows:
E:feels
Build.properties
Build.xml
LibAlloy.jar
Srcsoftwesfeels
DefaultThemeAlloyLookAndFeel.java
BedouinThemeAlloyLookAndFeel.java
GlassThemeAlloyLookAndFeel.java
AcidThemeAlloyLookAndFeel.java
Run the command: E:feels > ant
The output is as follows:
Buildfile: build.xml
Prepare:
[mkdir] Created dir: E:feelsbuild
[mkdir] Created dir: E:feelsbuildclasses
Compile:
[javac] Compiling 5 source files to E:feelsbuildclasses
Package:
[jar] Building jar: E:feelsfeels.jar
[jar] Building jar: E:feelsfeels_src.jar
BUILD SUCCESsfUL
Total time: 12 seconds
Four: use appearance in JBuilder:
If your JBuilder uses the default appearance, go to Tools/IDE Options/Look and feel: select Metal, switch (if you don't switch, you won't find the lines described below), and turn off JBuilder (be sure to close it first). Copy Alloy.jar and feels.jar to the JBuilder installation directory libext, modify C:Documents and Settingswes.jbuilder7user_zh.properties (wes is the current user name), find line 8, change it to: browser;look_and_feel=soft.wes.feels.CustomOneAlloyLookAndFeel (of course, you can choose either), save and exit.
Restart JBuilder and you can enjoy your own customized look and feel.
Five: explanation.
1. The above method also applies to the Linux platform, and the configuration file that needs to be modified is / root/.jbuilder7/user_zh.properties (assuming the current user is root).
two。 The font, background, border and other properties can be modified, these are left to everyone to study, if you design a cool appearance, don't forget to share it with you.
3. If you think it is too beautiful, Tools/Editor Options/Color/Editor color scheme: choose Classic, this plan is the most pleasing to the eye.
4. Note: the most obvious "negative effect" after the revision is the pleasant mood in use and the obvious improvement in work efficiency.
At this point, I believe you have a deeper understanding of "how to make JBuilder's ide look and feel". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 205
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.