change netbeans look and feel
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的更多相关文章
- 转载:NetBeans中如何运行GUI
这篇入门教程将教会您怎样创建一个简单的人机交互界面以及向其中添加简单 的后台功能. 特别地,我们将向您展示如何按 Swing 规范编写控制按钮和域代 码. 我们将会使用到布局管理.设计简单 GUI 界 ...
- "Hello World!" for the NetBeans IDE
"Hello World!" for the NetBeans IDE It's time to write your first application! These detai ...
- netbeans php安装、调试
文件清单 jdk-8u45-windows-i586_8.0.450.14.1429092020.exe netbeans-8.0.2-php-windows.exe wampserver2.5-Ap ...
- 【转】使用NetBeans和Eclipse开发PHP应用程序
[51CTO独家特稿]各位用户如果单独看NetBeans和Eclipse的市场占有率,你可能会认为使用其中任何一种IDE开发PHP应用程序都没有 问题,例如: 1.NetBeans:一款开源的集成开发 ...
- netbeans 将项目打包生成单个可执行的 jar
原文:netbeans 打包生成 jar 文件页里找到build.xml文件,打开在</project>前 加入以下代码保存之 <target name="package- ...
- NetBeans工具学习之道:NetBeans IDE Java 高速新手教程
欢迎使用 NetBeans IDE! 本教程通过指导您创建一个简单的 "Hello World" Java 控制台应用程序,简要介绍 NetBeans IDE 工作流.学习完本教程 ...
- 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 ...
- Customize Netbeans Platform Splash Screen and About Dialog
原帖一直打不开,通过谷歌翻译找到的 http://blogs.kiyut.com/tonny/2007/10/18/customize-netbeans-platform-splash-screen- ...
- JavaFX入门:简单Demo-学习NetBeans开发平台
零. 最终目标 通过两种方式(纯代码控制.FXML),实现一个简单的登录界面: Paste_Image.png 涉及到的控件: 文本(Text,动态显示内容).标签(Label,显示文本).文本域 ...
随机推荐
- ASP.NET MVC3细嚼慢咽---(1)网站创建与发布
这一节我们演示下怎样使用VS2010创建与发布MVC3建立的网站.使用VS2010创建MVC3.0网站,需要下载MVC3.0的安装包,这个大家可以去网络上下载. 1.项目创建 ...
- 【转】Linux Page Cache的工作原理
1 .前言 自从诞生以来,Linux 就被不断完善和普及,目前它已经成为主流通用操作系统之一,使用得非常广泛,它与Windows.UNIX 一起占据了操作系统领域几乎所有的市场份额.特别是在高性能计算 ...
- SVN的搭建和使用总结
Subversion是优秀的版本控制工具,其具体的的优点和详细介绍就不多做介绍,主要说一下SVN的服务端搭建.客户端安装.使用及出现的问题的解决办法. 首先来下载和搭建SVN服务器. 现在Subver ...
- SpringMVC + Spring + MyBatis 学习笔记:遭遇order by 排序问题
系统:WIN8.1 数据库:Oracle 11GR2 开发工具:MyEclipse 8.6 框架:Spring3.2.9.SpringMVC3.2.9.MyBatis3.2.8 用MyBatis写排序 ...
- 55个高质量的Magento主题,助你构建电子商务站点
Magento是一个功能丰富的开源电子商务平台(译者注:基于PHP的Zend Framework开发),在网店的外观.商品管理以及其它功能上,它给商家提供了前所未有的灵活和易用性.通过挑选一个合适的M ...
- 【转】内网yum源搭建
我们内网yum要玩的话,先加hosts,然后找运维要CentOS_base.repo这个文件,然后yum clean all && yum makecache ========== ...
- T-SQL 批处理
批处理简介 批处理是作为一个逻辑单元的T-SQL语句.如果一条语句不能通过语法分析,那么不会运行任何语句.如果一条语句在运行时失败,那么产生错误的语句之前的语句都已经运行了. 为了将一个脚本分为多个批 ...
- lambda表达式和ef的语句转化
这两者转化可以用linqpad进行转化, 首先推荐一个网站可以了解一下orderby的排序方式 http://www.csharpwin.com/csharpspace/614.shtml 然后下面有 ...
- CSS元素水平居中和垂直居中的方法大全
水平居方法: 1.最熟悉的是给元素定义一个宽度,然后使用margin: body{ width:960px; margin:0 auto;}这个是当我们的定义元素的宽度时显现的,如果我们不能定义宽度时 ...
- POJ 1947 Rebuilding Roads (树dp + 背包思想)
题目链接:http://poj.org/problem?id=1947 一共有n个节点,要求减去最少的边,行号剩下p个节点.问你去掉的最少边数. dp[u][j]表示u为子树根,且得到j个节点最少减去 ...