change netbeans look and feel:

方法一:
下载地址:https://kenai.com/projects/nbsubstance/downloads/directory/updates
下载文件:org-sepix-substance.nbm; org-jvnet-lafwidget.nbm;    org-jvnet-substance.nbm;
修改方法:http://softkube.com/blog/changing-the-default-look-and-feel-of-netbeans/

8 Steps to change the default NetBeans Look and Feel
 1.Download the three .nbm files from NetBeans substance look and feel plugin
 2.Open NetBeans. Go to Tools -> Plugins -> Downloaded
 3.Click on Add Plugins and add the three downloaded .nbm files (You have to add them one by one)
 4.Make sure the three files are selected, click Install, and follow through
 5.Restart NetBeans
 6.Go to Tools -> Options -> Miscellaneous -> Look and Feel
 7.Choose your preferred Look and Feel and Restart NetBeans again
 8.Enjoy
 
 方法二:
 根绝jar包来修改netbeans的.conf文件中的设置,具体如下:
 
 A:JTattoo-1.6.9.jar
 准备 JTattoo-1.6.9.jar
 下载地址,改变方法:http://www.jtattoo.net/howto_netbeans.html
 1、Copy the JTattoo.jar file into the XXX/netbeans/platform/lib folder.
 eg: C:\Program Files\NetBeans 7.2.1\platform\lib
 
 2、To change the look of NetBeans you have to edit the netbeans.conf file. You can find this file in
the XXX/netbeans/etc folder where XXX stands for the relative path of your NetBeans installation.
Open this file in a text editor and change the following line:

netbeans_default_options=
"-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none“
to:
netbeans_default_options=
"-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none  -laf com.jtattoo.plaf.smart.SmartLookAndFeel"
关于lookAndFeel的选择可以有多种,还例如:com.jtattoo.plaf.texture.TextureLookAndFeel

注:可从该网站上(http://www.jtattoo.net/)下载JTattooDemo.jar包,双击运行,是默认的界面设置。
修改jar包的默认选择界面,如com.jtattoo.plaf.texture.TextureLookAndFeel 中的rock 选择,
下载源代码(JTattoo-1.6.9-sources.zip),只需改变:
class JTattooDemo :
  (第207行)public void updateLookAndFeel(String lf):
     com.jtattoo.plaf.texture.TextureLookAndFeel.setTheme("Rock");
  (末尾)public static void main(String args[]):
     com.jtattoo.plaf.texture.TextureLookAndFeel.setTheme("Rock");
     UIManager.setLookAndFeel("com.jtattoo.plaf.texture.TextureLookAndFeel");
class GUIProperties:
  (第43行) private String lookAndFeel = PLAF_TEXTURE;
然后利用eclipse 插件进行打包jar包,再生成的jar包,运行(双击)即使所需的设置界面。

---------------------------------
在该JTattooDemo.jar例中的TextureLookAndFeel中的Rock Theme中的TextureInternalFrameTitlePane
点击和未点击效果一样,为实现点击后的区别于点击前,可做如下修改:
下载JTattoo-1.6.9-sources.zip,重写源代码,再打包。
修改class TextureInternalFrameTitlePane:
 //public void paintPalette(Graphics g)
 public void paintBackground(Graphics g):
  if (isActive()) {
   TextureUtils.fillComponent(g, this,
     TextureUtils.MENUBAR_TEXTURE_TYPE);
  } else {
   TextureUtils.fillComponent(g, this,
     TextureUtils.WINDOW_TEXTURE_TYPE);
  }
 
可以更换效果:TextureUtils.MENUBAR_TEXTURE_TYPE也可更换为其他的icon纹理图片等。
在Eclipse下打包生成jar包:JTattooSource_fat_changed.jar,放入XXX/netbeans/platform/lib folder.
最后netbeans中的etc文件还是做如下修改即可,--laf com.jtattoo.plaf.texture.TextureLookAndFeel

------------------------
注:
如果想要选择不同的LookAndFeel中的不同主题,如com.jtattoo.plaf.texture.TextureLookAndFeel
如果想设置netbeans成com.jtattoo.plaf.texture.TextureLookAndFeel中的rock主题(默认为default)
则修改package com.jtattoo.plaf.texture;中的class TextureUtils:
 public static void setUpTextures():
    String textureSet = "Rock";
//        if (AbstractLookAndFeel.getTheme() != null) {
//            textureSet = AbstractLookAndFeel.getTheme().getTextureSet();
//        }
再在Eclipse下打包生成jar包:放入XXX/netbeans/platform/lib folder.
netbeans中的etc文件修改,--laf com.jtattoo.plaf.texture.TextureLookAndFeel 
(已验证)
-------------------------------

B:nimrodlf-1.2.jar
参考网址:  http://personales.ya.com/nimrod/download-en.html
准备nimrodlf-1.2.jar
NimROD Look And Feel也是netbeans的一种look and feel
所设置方法和上面一样,首先是添加jar包到netbeans的安装目录(XXX/netbeans/platform/lib)下,
然后修改.conf文件,添加语句为:
-J-Dnimrodlf.themeFile=../DarkTabaco.theme -cp:p nimrodlf.jar --laf com.nilo.plaf.nimrod.NimRODLookAndFeel
重新打开netbeans即可看到界面的改变。

---------------------------------------------
注:
1、Eclipse打包工程成jar包方法:
利用Eclipse的一个第三方插件fatjar生成jar文件,简单方便。
先从网上下载插件(net.sf.fjep.fatjar_0.0.31.jar),网址是:
解压后将它copy到Eclipse plugins文件夹下,此插件就安装成功了。如:D:\Eclipse\eclipse-standard-kepler-SR1-win32\eclipse\plugins
重启Eclipse在项目上右击就会看到多出一个“Build Fat Jar”,在前面有个绿色的“+”号,这时你就可以用此插件打包项目了。
进去后第一个界面Jar-Name里增入要生成的jar文件名,我的是“CAMP_fat.jar”。在Main-Class后点Browse像Export一样它也会列出你项目中的主类,选择后其它默认即可。
Next后会列出你要打包的所有内容,这个插件的优势就是可以将你项目中的外部jar也打进来。
有三个选项,其中Export ANT是生成build.xml脚本文件,方便用户以后修改脚本。
其它两个按钮没用。在这里什么都不点,直接点Finish就可以生成jar文件。

2、修改JRE System Library
如果JRE System Library中存在了不想要的jar包
即需要修改JRE System Library时
如果是直接在C:\Program Files\Java\jdk1.7.0_25\jre\lib\ext
或C:\Program Files\Java\jdk1.7.0_25\jre\lib删除该jar包时,
会出现工程感叹号标志。
此时解决方法是:http://www.cnblogs.com/maoruilin/archive/2012/04/02/eclipsejre.html
Elipse 菜单: Windows | Preferences | Java | Installed JREs
这个界面可以新增或修改可用的JRE(主要是填写JRE name和JRE home):
1)修改JRE
列表中选中要修改的JRE,如Java\jre6,点击Edit...按钮,在弹出的"Edit JRE"对话框重新选择JRE home即可。
2)新增JRE
点击Add...按钮,在弹出的对话框选择Standard VM => Next => 选择JRE home
在选择JRE home的时候,Eclipse会自动填写JRE name,建议不要修改此name(不要出现name和home不匹配,例如name叫jre,但home却是jdk/jre的情况,这样会混淆)!
例:我自己是手动完成引入的:C:\Program Files\Java\jdk1.7.0_25
当Installed JREs列表中存在多个JRE时,可以选中左边的checkbox,使之作为Workspace default JRE(本例为jre6)。
注意:勾选中的JRE只是Workspace default JRE,但实际Project是否选择默认JRE,则取决于Project本身的设置!

剩下的工作就是修改工程的properties中的java bulid path -> libraries

change netbeans look and feel的更多相关文章

  1. 转载:NetBeans中如何运行GUI

    这篇入门教程将教会您怎样创建一个简单的人机交互界面以及向其中添加简单 的后台功能. 特别地,我们将向您展示如何按 Swing 规范编写控制按钮和域代 码. 我们将会使用到布局管理.设计简单 GUI 界 ...

  2. "Hello World!" for the NetBeans IDE

    "Hello World!" for the NetBeans IDE It's time to write your first application! These detai ...

  3. netbeans php安装、调试

    文件清单 jdk-8u45-windows-i586_8.0.450.14.1429092020.exe netbeans-8.0.2-php-windows.exe wampserver2.5-Ap ...

  4. 【转】使用NetBeans和Eclipse开发PHP应用程序

    [51CTO独家特稿]各位用户如果单独看NetBeans和Eclipse的市场占有率,你可能会认为使用其中任何一种IDE开发PHP应用程序都没有 问题,例如: 1.NetBeans:一款开源的集成开发 ...

  5. netbeans 将项目打包生成单个可执行的 jar

    原文:netbeans 打包生成 jar 文件页里找到build.xml文件,打开在</project>前 加入以下代码保存之 <target name="package- ...

  6. NetBeans工具学习之道:NetBeans IDE Java 高速新手教程

    欢迎使用 NetBeans IDE! 本教程通过指导您创建一个简单的 "Hello World" Java 控制台应用程序,简要介绍 NetBeans IDE 工作流.学习完本教程 ...

  7. NetBeans issues and solutions.(build.xml and debug multiple projects)

    Copy a directory to another directory when building the .jar in NetBeans in the build.xml file. Solu ...

  8. Customize Netbeans Platform Splash Screen and About Dialog

    原帖一直打不开,通过谷歌翻译找到的 http://blogs.kiyut.com/tonny/2007/10/18/customize-netbeans-platform-splash-screen- ...

  9. JavaFX入门:简单Demo-学习NetBeans开发平台

    零. 最终目标 通过两种方式(纯代码控制.FXML),实现一个简单的登录界面:   Paste_Image.png 涉及到的控件: 文本(Text,动态显示内容).标签(Label,显示文本).文本域 ...

随机推荐

  1. win7 共享的问题,"您可能没有权限使用网络资源"的解决办法

    重点来了,如果以上方法都不行的话,下面这个绝对有效,本人屡试不爽.1 打开受访者的guest权限2 开始--运行--gpedit.msc3 windows设置---安全设置--本地策略--用户权利指派 ...

  2. ren

  3. python在linux上的GUI无法弹出界面

    在进行python写GUI程序的时候,使用Tkinter,发现无法执行程序,报错如下: X connection to localhost:10.0 broken(explicit kill or s ...

  4. 【LeetCode】189 - Rotate Array

    Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array  ...

  5. jsp页面元素和内置对象

    java server pages其根本是一个简化的servlet设计.实现了在java当中使用html标签.javaEE标准 一.页面元素 1.静态内容 html.js.css相关标签元素. 2.指 ...

  6. Android问题-XE5提示"[DCC Fatal Error] Project1.dpr(1): F1027 Unit not found: 'System.pas' or binary equivalents (.dcu/.o)"

    问题现象:Checking project dependencies...Compiling Project1.dproj (Debug, Android)dcc command line for & ...

  7. POJ 2653 Pick-up sticks(判断线段相交)

    Pick-up sticks Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 7699   Accepted: 2843 De ...

  8. <<海闻电子发票接口 ESB 封装文档>>

    <<海闻电子发票接口 ESB 封装文档>> 章节目录结构: 发票验证接口 发票开具接口 ESB请求地址: 发票验证接口: http://10.15.22.120:8866/42 ...

  9. LightOJ 1282 Leading and Trailing (快数幂 + 数学)

    http://lightoj.com/volume_showproblem.php?problem=1282 Leading and Trailing Time Limit:2000MS     Me ...

  10. POJ 2774 Long Long Message (后缀数组模板)

    借用罗大神的模板,开始搞后缀数组 #include <cstdio> #include <iostream> #include <cstring> #include ...