发信人: doublefish (开心每一天), 信区: Java 标 题: jb6运行也可以像vc一样快(转) 发信站: 饮水思源 (2002年04月23日22:05:27 星期二), 站内信件javaunion.com automan --------------------- 环境: 256m内存/赛扬533 将jb6启动环境换成jdk1.4,这样你就可以获得想vc一样的响应速度.同时jdk1.4支持鼠标 滚轮咯.刷屏也好多了. 具体做法: 将jb6/bin下面的jdk.conf,jbuild.conf [jdk.conf] # +-----------------------------------------------------+ # | | # | This is the shared configuration file for the | # | Win32 JDK | # | | # | Do NOT make modifications without maintaining a | # | backup copy. See config_readme.html for a | # | description of the recognized directives. | # | | # +-----------------------------------------------------+ # Use the embedded JDK provided with JBuilder and # override the default heap growth / shrinkage rates #请指到你的jdk1.4的目录,这是我jdk1.4的相对目录 javapath ../../jdk/bin/java vmparam -Xminf0.2 vmparam -Xmaxf0.2 # Add the "tools" JAR to the path since the JDK doesn't # do so automatically #请指到你的jdk1.4的目录,这是我jdk1.4的相对目录 addpath ../../jdk/lib/tools.jar # Force standard VM settings for all applications vmparam -Xverify:none # +-----------------------------------------------------+ # | | # | Uncomment the following line if you are seeing | # | screen glitches while running JBuilder. This | # | problem is especially common under Windows 95/98. | # | | # +-----------------------------------------------------+ #vmparam -Dsun.java2d.noddraw # +-----------------------------------------------------+ # | | # | Uncomment the following line if you are having | # | problems with your default file encoding. This | # | problem is evident in some locales. | # | | # +-----------------------------------------------------+ #vmparam -Dfile.encoding=ISO8859_1 [jbuild.conf] # +-----------------------------------------------------+ # | | # | This is the configuration file for the JBuilder IDE | # | | # | Do NOT make modifications without maintaining a | # | backup copy. See config_readme.html for a | # | description of the recognized directives. | # | | # +-----------------------------------------------------+ # Read the shared JDK definition include jdk.config # Tune this VM to provide enough headroom to work on large # applications vmparam -Xms8m vmparam -Xmx128m #此参数一定要加上,表示以客户端运行java程序. vmparam -client # Put the Lightweight AWT wrapper on the boot path #轻量级的awt组件 addbootpath ../lib/lawt.jar #jdk1.4的awt组件,不知道有什么改善.感觉很慢.请大家试试看 #addbootpath ../../jdk/jre/lib/jawt.jar # Add all JAR files located in the patch, lib and lib/ext directory addjars ../patch addjars ../lib addjars ../lib/ext # Activate the shell integration socket 8888 # Add all the configuration files located in the lib/ext directory includedir ../lib/ext # JBuilder needs to have access to the environment exportenv # Start JBuilder using the its main class mainclass com.borland.jbuilder.JBuilder =============================================== 我改了,界面有些变化,字体变怪了!感觉怪怪的!速度好像比以前慢了!(别打我, 这是真的) 好像jbuilder6按你的配置可以,但是jbuilder5就不行了 有大问题!!!jdk1.4好像不支持中文啊,换了之后中文都变成方框了 而且字体也不太好了,在输入代码的时候又是那种错位的现象 不过速度真的快了不少 兼容性有问题,特别是在做Swing界面的时候 气死我了!new project 时光标乱跑!Borland的东西还是要多测试才行! ============================================================== [这个贴子最后由automan在 2002/04/11 04:36pm 编辑] ::::FAQ:::: 对于一些按钮的中文问题可以这样解决: 在:[jbuild.conf]加上 vmparam -Dswing.useSystemFontSettings=false 可以解决问题.另外建议使用meta风格.而不是用windows风格. 对于编辑文件时候出现的方框,可以在用dialoginput字体,或者宋体. 中文问题就完美解决了. 启动速度的确不是很快.你觉得vc启动的快么?! 但是你编辑文件的时候非常快.窗口弹出快多了.键盘响应也快乐.把两个版本比较一下就 知道了. 对于字体错位的问题请把highlight 里面的style一些关键字的bold属性去掉就可以完美 解决了. 启动速度不是很快.但是你编辑文件的时候非常快.窗口弹出快多了.键盘响应也快乐. 对于字体错位的问题请把highlight 里面的style一些关键字的bold属性去掉就可以完美 解决了. 启动速度不是很快.但是你编辑文件的时候非常快.窗口弹出快多了.键盘响应也快乐. 对于字体错位的问题请把highlight 里面的style一些关键字的bold属性去掉就可以完美 解决了. ============================================================== ------------------------------- 爱从一个微笑开始, 在热吻中得以延伸, 却随眼泪逝去...... ※ 来源:·饮水思源 bbs.sjtu.edu.cn·[FROM: 211.96.233.1] 但是运行出来的程序还是显示乱吗。
http://www.csdn.net/expert/topic/671/671910.xml?temp=.7501947//设置 public static void main(String[] args) { try { UIManager.setLookAndFeel (UIManager.getSystemLookAndFeelClassName()); // Font f = new Font("宋体",Font.PLAIN,12); UIManager.put("Label.font",f); UIManager.put("Label.foreground",Color.black); UIManager.put("Button.font",f); UIManager.put("Menu.font",f); UIManager.put("MenuItem.font",f); UIManager.put("List.font",f); UIManager.put("CheckBox.font",f); UIManager.put("RadioButton.font",f); UIManager.put("ComboBox.font",f); UIManager.put("TextArea.font",f); } catch(Exception e) { e.printStackTrace(); } 应该完全解决了吧,不知道有没有不用在程序里设置的方法。 看看上面的帖子。
font 文件是不是错了
不是吧。我用jcreater编译运行后能正确显示。
标 题: jb6运行也可以像vc一样快(转)
发信站: 饮水思源 (2002年04月23日22:05:27 星期二), 站内信件javaunion.com automan
---------------------
环境:
256m内存/赛扬533
将jb6启动环境换成jdk1.4,这样你就可以获得想vc一样的响应速度.同时jdk1.4支持鼠标
滚轮咯.刷屏也好多了.
具体做法:
将jb6/bin下面的jdk.conf,jbuild.conf
[jdk.conf]
# +-----------------------------------------------------+
# | |
# | This is the shared configuration file for the |
# | Win32 JDK |
# | |
# | Do NOT make modifications without maintaining a |
# | backup copy. See config_readme.html for a |
# | description of the recognized directives. |
# | |
# +-----------------------------------------------------+
# Use the embedded JDK provided with JBuilder and
# override the default heap growth / shrinkage rates
#请指到你的jdk1.4的目录,这是我jdk1.4的相对目录
javapath ../../jdk/bin/java
vmparam -Xminf0.2
vmparam -Xmaxf0.2
# Add the "tools" JAR to the path since the JDK doesn't
# do so automatically
#请指到你的jdk1.4的目录,这是我jdk1.4的相对目录
addpath ../../jdk/lib/tools.jar
# Force standard VM settings for all applications
vmparam -Xverify:none
# +-----------------------------------------------------+
# | |
# | Uncomment the following line if you are seeing |
# | screen glitches while running JBuilder. This |
# | problem is especially common under Windows 95/98. |
# | |
# +-----------------------------------------------------+
#vmparam -Dsun.java2d.noddraw
# +-----------------------------------------------------+
# | |
# | Uncomment the following line if you are having |
# | problems with your default file encoding. This |
# | problem is evident in some locales. |
# | |
# +-----------------------------------------------------+
#vmparam -Dfile.encoding=ISO8859_1
[jbuild.conf]
# +-----------------------------------------------------+
# | |
# | This is the configuration file for the JBuilder IDE |
# | |
# | Do NOT make modifications without maintaining a |
# | backup copy. See config_readme.html for a |
# | description of the recognized directives. |
# | |
# +-----------------------------------------------------+
# Read the shared JDK definition
include jdk.config
# Tune this VM to provide enough headroom to work on large
# applications
vmparam -Xms8m
vmparam -Xmx128m
#此参数一定要加上,表示以客户端运行java程序.
vmparam -client
# Put the Lightweight AWT wrapper on the boot path
#轻量级的awt组件
addbootpath ../lib/lawt.jar
#jdk1.4的awt组件,不知道有什么改善.感觉很慢.请大家试试看
#addbootpath ../../jdk/jre/lib/jawt.jar
# Add all JAR files located in the patch, lib and lib/ext directory
addjars ../patch
addjars ../lib
addjars ../lib/ext
# Activate the shell integration
socket 8888
# Add all the configuration files located in the lib/ext directory
includedir ../lib/ext
# JBuilder needs to have access to the environment
exportenv
# Start JBuilder using the its main class
mainclass com.borland.jbuilder.JBuilder
===============================================
我改了,界面有些变化,字体变怪了!感觉怪怪的!速度好像比以前慢了!(别打我,
这是真的)
好像jbuilder6按你的配置可以,但是jbuilder5就不行了
有大问题!!!jdk1.4好像不支持中文啊,换了之后中文都变成方框了
而且字体也不太好了,在输入代码的时候又是那种错位的现象 不过速度真的快了不少 兼容性有问题,特别是在做Swing界面的时候
气死我了!new project 时光标乱跑!Borland的东西还是要多测试才行!
==============================================================
[这个贴子最后由automan在 2002/04/11 04:36pm 编辑]
::::FAQ::::
对于一些按钮的中文问题可以这样解决:
在:[jbuild.conf]加上
vmparam -Dswing.useSystemFontSettings=false
可以解决问题.另外建议使用meta风格.而不是用windows风格.
对于编辑文件时候出现的方框,可以在用dialoginput字体,或者宋体.
中文问题就完美解决了.
启动速度的确不是很快.你觉得vc启动的快么?!
但是你编辑文件的时候非常快.窗口弹出快多了.键盘响应也快乐.把两个版本比较一下就
知道了.
对于字体错位的问题请把highlight 里面的style一些关键字的bold属性去掉就可以完美
解决了.
启动速度不是很快.但是你编辑文件的时候非常快.窗口弹出快多了.键盘响应也快乐.
对于字体错位的问题请把highlight 里面的style一些关键字的bold属性去掉就可以完美
解决了.
启动速度不是很快.但是你编辑文件的时候非常快.窗口弹出快多了.键盘响应也快乐.
对于字体错位的问题请把highlight 里面的style一些关键字的bold属性去掉就可以完美
解决了.
==============================================================
-------------------------------
爱从一个微笑开始,
在热吻中得以延伸,
却随眼泪逝去......
※ 来源:·饮水思源 bbs.sjtu.edu.cn·[FROM: 211.96.233.1]
但是运行出来的程序还是显示乱吗。
public static void main(String[] args)
{
try
{
UIManager.setLookAndFeel (UIManager.getSystemLookAndFeelClassName());
//
Font f = new Font("宋体",Font.PLAIN,12);
UIManager.put("Label.font",f);
UIManager.put("Label.foreground",Color.black);
UIManager.put("Button.font",f);
UIManager.put("Menu.font",f);
UIManager.put("MenuItem.font",f);
UIManager.put("List.font",f);
UIManager.put("CheckBox.font",f);
UIManager.put("RadioButton.font",f);
UIManager.put("ComboBox.font",f);
UIManager.put("TextArea.font",f); }
catch(Exception e)
{
e.printStackTrace();
}
应该完全解决了吧,不知道有没有不用在程序里设置的方法。
看看上面的帖子。