原帖一直打不开,通过谷歌翻译找到的

http://blogs.kiyut.com/tonny/2007/10/18/customize-netbeans-platform-splash-screen-and-about-dialog/

http://translate.google.com.hk/translate?hl=zh-CN&sl=en&tl=zh-CN&u=http%3A%2F%2Fblogs.kiyut.com%2Ftonny%2F2007%2F10%2F18%2Fcustomize-netbeans-platform-splash-screen-and-about-dialog%2F&anno=2

————————————————————————————————————————————————————————————————————

Inspiration and Expression

KIYUT Developer Blog

Customize Netbeans Platform Splash Screen and About Dialog

October 18th, 2007 | by Tonny Kohar |

During development of our product Sketsa SVG Editor , we need to customize the default Netbeans Platform About Dialog and splash screen as part our product branding.

Note: this is tested on Netbeans IDE 6-beta1

Customize the Splash Screen

Create the image using any image editor application to suit your particular branding. If you want to have single image for both splash and about dialog, please make sure the image have dimension 259×252 px, so it will fit nicely with the available image space in the about dialog.

Note: the about dialog will automatically use the splash screen image, if it is not supplied with its own image to use.

Update: On Netbeans 6 beta2, it no longer share the splash and about image, so you need to have two files ready: splash.gif and about.png

Now on the project suite node right click and choose properties, and go to Build-Splash Screen section. Click the browse and select your desired image for the splash screen.

In this dialog you may also customize the progress bar and running text color, size, and position

Customize the About Dialog

On the about dialog you may customize the copyright info using the following methods. In the project suite (under File, not project) expand the branding folder as show in the image

Add the following in the Bundle.properties

  LBL_Copyright =< div style\ = "font-size \: 12pt; font-family \: Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; " >
Copyright & copy ; - KIYUT. Please visit < a style\ = "color \: \# 1E2A60;" href\ = "http \: //www.kiyut.com" > http\ : //www.kiyut.com</a>.<br>
Warning\ : This computer program is protected by copyright law and international treaties. Unauthorized reproduction or distribution may result in severe civil and criminal penalties, and will be prosecuted to the maximum extend possible under the law. </ div >

Customize the About Dialog Image (Optional)

If you need to have different image for splash and about dialog, you need to supply the about image file.
The image must be named about.png (not gif) with dimension 259×252 px.

The file about.png must be placed under

Tags: Branding , Java , Netbeans Platform , Sketsa , Trick

  1. 41 Responses to “Customize Netbeans Platform Splash Screen and About Dialog”

  2. By Azlan Aziz on Dec 17, 2007 | Reply

    Dear Tony,

    Thanks for the article.

    I have managed to customize the About dialog box in NB6. However, how do I change the link (www.netbeans.org) when the top image is double clicked?

    Thanks

  3. By Tonny Kohar on Dec 18, 2007 | Reply

    To customize the link for the About image, you need to add the
    following into the org-netbeans-core.jar bundle.properties (the
    bundle.properties where you set LBL_Copyright)

      URL_ON_IMG = http : //www.kiyut.com/ 
  4. By Tom Wheeler on Feb 14, 2008 | Reply

    Hi Tonny: I just wanted to drop a quick note to say that this blog entry really helped me today when I was trying to remember where the URL_ON_IMG property gets set. Nice work!

  5. By Jaideep Ganguli on Feb 24, 2008 | Reply

    Hi Tonny: I tried this with NetBeans IDE 6.0 (Build 200711261600) and it doesn't seem to be picking up my branding. It does pick up the Branding image but not the URL_ON_IMG and LBL_Copyright. Any ideas if this changed since the Beta version.

    Thanks very much.

  6. By Tonny Kohar on Feb 25, 2008 | Reply

    @Jaideep

    As far as I know, it is working up to Netbeans 6.0.1, because we use it. Please make sure you put your branding in the correct bundle.properties and folder (core and module folder is different).

    Also note that since Netbeans 6-beta2, it no longer share splash and about image, so you need both of them

  7. By Emmanuel on Mar 12, 2008 | Reply

    Nice tutorial, I've been trying to know how to do this for the past 6 months!!!

    THANKS!

  8. By Steve Nelson on Mar 26, 2008 | Reply

    Thanks Tonny.

    By the way, if the folder org-netbeans-core.jar is not there, you can create it along with the other folders org, netbeans, core and ui then create a Bundle.properties file and add the information in you have supplied.

  9. By Isak on Jun 10, 2008 | Reply

    Thanks

    But beware: not only will you maybe have to make the correct directories, but also make sure the org/netbeans/etc. is within the org-netbeans-core.jar file.

    Still works with NB6.1

  10. By John on Jul 29, 2008 | Reply

    I cannot get this to work. I am using the netbeans platform but not the IDE. I've been using Netbeans since 5.0 and have had branding working fine. However, with the upgrade to 6, my picture is no longer being used. Do I have to rename my branding jar to org-netbeans-core.jar? If not, where do I need to install it so netbeans uses it?

  11. By Tonny Kohar on Jul 30, 2008 | Reply

    @John

    It is very important to use the correct folder structure and the naming of jar is very important as well.

  12. By ufak on Feb 25, 2009 | Reply

    Is the size 259×252 right?
    It is a rectangle, not square.
    I have my splash 432×266. It was made according to some splash image in NB 6.1.

  13. By Tonny Kohar on Feb 25, 2009 | Reply

    @ufak

    As far as I know Netbeans does not put a constraint for the image size. So you could use any reasonable size for the image.

  14. By Tonny Kohar on Feb 25, 2009 | Reply

    @ufak

    Ahh almost forget. The important things is the folder structure, not the image size

  15. By Ouaibsky on Mar 28, 2009 | Reply

    Hi,

    I have a question about splash image. I try to put an image with a blurred border. To do that my image has transparency color.

    When i configure this image with netbeans wizard (project properties) ,
    i can see that i have a splash.gif file (and when i open it into
    netbeans, display it correct) but when i start my application, there is a
    background color (blank) which is applied and my splash is so … ugly.

    Somebody has try this (a basic example is to make a splash with round corner) ?

    can we use another image format ?

    Thx
    Christophe

  16. By Olivier on Apr 2, 2009 | Reply

    Hi,

    We have been trying to change the Application Icon. There is an option under Properties/Build but it does nothing. If you look at the help it says:

    “Note that this icon does not set the executable's icon.
    If you want to customize the executable's icon, you need to make use of
    an external resource editor, many of which are freely available
    on-line.”

    but they don't say what needs to be edited in the first place. Any help will be greatly appreciated.

  17. By Tonny Kohar on Apr 2, 2009 | Reply

    @Olivier

    For Application icon, please see this blog entry
    http://blogs.kiyut.com/tonny/2007/08/06/netbeans-platform-branding-and-version-info/ and add the following to the build-brand ant target

     

    Please make sure it is gif file not png file. And this is the icon for the window frame. it is not executable icon (Java is cross platform), so it does not depend on any executable (exe, sh, etc)

  18. By Philip Joslin on Jun 3, 2009 | Reply

    Thanks for this post on branding.
    Can you tell me where to look to change the start page as well in
    NetBeans or provide my own start page (when I run a module based on the
    NetBeans IDE)? I see it in their “welcome” project in the NetBeans build, but I want to incorporate this into my own module (app). Thanks again.

  19. By Tonny Kohar on Jun 3, 2009 | Reply

    @Philip

    Although I never tried it, but by looking at the Netbeans source code,
    the welcome screen/start page is easily customizable by the resource
    branding and layer.xml

    So based on the above, I guess you can easily branding the welcome screen by branding the resource bundle as described in
    http://blogs.kiyut.com/tonny/2008/02/13/netbeans-platform-localization-and-branding-trick/

    Another way, is to create you own welcome screen (it is just a TopComponent). But if you create your own you must implement your own url fetching.

    note: I haven't tried branding welcome screen, so it might or might not works.

  20. By Susan Montgomery on Jul 15, 2009 | Reply

    I've got almost everything going for the about dialog. I have one problem with resizing the About dialog. I am using a different image for the splash and about because the splash image is too large for the About dialog. Is it possible to set the height and width of the About dialog in this situation?

    Thanks for your branding posting. It was a huge help.

  21. By Tonny Kohar on Jul 15, 2009 | Reply

    @Susan

    Unfortunately, as far as I know, there is no way to specify the width * height for the About Dialog explicitly.

    However, you can influence the width (not height) by using the about.gif (width of the image) as the width of the About Dialog.

    note: it is the width of the image plus some few pixel margin.

  22. By Stevy on Aug 4, 2009 | Reply

    How can I disable the link?

  23. By Tonny Kohar on Aug 5, 2009 | Reply

    @Stevy

    If you mean disable the link on the About Dialog. then just leave url empty eg:

      URL_ON_IMG = 
  24. By Sarah Kho on Aug 27, 2009 | Reply

    Very good blog.
    I though I should add that the branding folder which contains code and modules should be right inside the suite folder.

    Thanks for your blog.

  25. By Savin on Oct 7, 2009 | Reply

    Thanks for this post. I am starting with NetBeans Platform development using NB 6.7.
    Created a platform application, was able to brand the splash screen but
    for some reason the about dialog text does not seem to change. The image on the about dialog has changed. I tried as described above by adding LBL_Copyright in Bundle.properties under Branding/Modules…
    Any help is greatly appreciated.

  26. By Tonny Kohar on Oct 7, 2009 | Reply

    @Savin

    The LBL_Copyright must be located under Branding/Modules/… in the suite
    project (not in the module project) and make sure the path is correct.

  27. By Doug on Nov 19, 2009 | Reply

    I recently upgraded my custom branded project from 6.5 to 6.7.1. If I run the application from NB, or if I run in debug mode, the images show as expected.
    However, after building the distribution package, the images and all
    other branding are no longer there, and the default values are used. Any ideas? Thank you.

  28. By Tonny Kohar on Nov 23, 2009 | Reply

    @Doug,

    Please try to clean and rebuild.

  29. By Veronica Moreno on Feb 8, 2010 | Reply

    Hello, I've been trying to change the about image. I did set the image.png in the startup folder, clean the project but it doesn't change it. Do I need to do something else?

  30. By Tonny Kohar on Feb 9, 2010 | Reply

    @Veronica

    make sure the path is correct and it must be under project suite

  31. By Veronica Moreno on Feb 9, 2010 | Reply

    @Tonny

    Thank you very much Tonny, I checked it and you were right! Thanks a lot

  32. By Roxie on Mar 27, 2010 | Reply

    Using NetBeans 6.8:
    The project must include the platform11 / Core-UI Platform Module or the About menu item will not show up. The automatic resolver didn't include this module.

    Also, the Feedreader sample's About screen worked with just the
    splash.gif (no about.png) so apparently they've resolved that problem
    too.
    Thanks for all the hints here!

  33. By Tushar Joshi on Oct 4, 2010 | Reply

    The latest NetBeans IDE version 6.9.1 has a good resource editor for Branding Platform applications.
    We can change icons, splash screen, and even the resource text from
    this dialog box and the related Bundle.properties files are
    automatically written by that dialog box.

    IMO branding platform application in NetBeans has become a piece of cake. I am loving it.

    with regards
    Tushar Joshi, Nagpur

  34. By Magesh kumar on Oct 7, 2010 | Reply

    HI,

    Can you help me to create customized Start Page in Netbeans through Help->Start page.

    Thanks,
    Magesh kumar J

  35. By Pankaj on Jan 10, 2011 | Reply

    Hi,

    I want to add some more information in the About Dialog for my product.
    The default information displayed is :

    Product Version: NetBeans IDE 6.5 (Build 200811100001)
    Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16
    System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
    Userdir: C:\Documents and Settings\user1\.netbeans\6.5

    I have seen the bundle.properties where you can specify the copyright information. But I also need to add some other information, the values of which will be populated dynamically.
    EG: The Session start time or the user logged in.

    Can you please provide some help on this.

    Thanks in advance.
    -Pankaj

  36. By Tonny Kohar on Jan 11, 2011 | Reply

    @Pankaj

    As far as I know, currently the About Dialog is not very customizable. You can only change a little bit through properties file.

    So if you want to customize it, IMHO the best way is to hide the
    original About Box through layer.xml, and create your own About Box and
    put it into the layer.xml.

  37. By Pankaj on Jan 13, 2011 | Reply

    @Tonny:
    Thanks for your reply. Can you please let me know where I can find this layer.xml?

  38. By Tonny Kohar on Jan 14, 2011 | Reply

    @Pankaj

    For more info regarding layer.xml, please read the following

    - http://wiki.netbeans.org/DevFaqSystemFilesystem
    - http://wiki.netbeans.org/DevFaqModulesLayerFile

    and
    - http://wiki.netbeans.org/DevFaqActionAddMenuBar

    One of the simple ways, is to add action to the menu bar for displaying your own created About Dialog

  39. By Darren on Jun 2, 2011 | Reply

    hi,Tonny

    after branding.click the image,netbeans will open the internal browser.I want to open a system default browser.how can I do.

    Thanks

  40. By Tonny Kohar on Jun 3, 2011 | Reply

    @darren,

    To enable external (system default browser), please include external html broswer under ide cluster.

    To enable it:
    - On the suite project, right click choose properties
    - Go to Library section
    - Under ide section, tick the external html browser
    - As usual just rebuild and done

  41. By Dave on Jun 19, 2012 | Reply

    I have a similar issue to Darren.
    I have managed to change the url that is launched when clicking on the
    about box image, but want it to open in the external (system default)
    browser. My project is a maven project. Do I need to include an external html browser dependency?

  42. By Tonny Kohar on Jun 19, 2012 | Reply

    @dave,

    yes you need to include external html browser

Customize Netbeans Platform Splash Screen and About Dialog的更多相关文章

  1. Flutter - 给App增加启动屏幕(Splash Screen)并且设置背景颜色

    先看一下效果图,启动图最好设置为png格式的透明图,以防图片填充不满的时候背景图会非常的煞白(Flutter 默认背景色是白色). 打开android\app\src\main\res\drawabl ...

  2. [PWA] Customize the Splash Screen of a PWA built with create-react-app

    Android displays a splash screen for PWAs based on the icons and names you provide, but iOS just dis ...

  3. Xamarin Android -创建Splash Screen (一)

    ......(空话少说) Xamarin 开发的技术资料很少,通过学习,把自己的学习过程及其中碰到的问题与大家分享. Splash Screen 就是在应用程序启动时,出现的一张图片,一般App的Sp ...

  4. CREATE A LOADING SCENE / SPLASH SCREEN - UNITY

    In the first scene or maybe the Main Menu scene of your game Create an Empty Gameobject. Call it wha ...

  5. iphone dev 入门实例7:How to Add Splash Screen in Your iOS App

    http://www.appcoda.com/how-to-add-splash-screen-in-your-ios-app/ What’s Splash Screen? For those who ...

  6. Splash Screen开场屏在Android中的实现

    很多网友可能发现近期Tencent推出的手机QQ Android版包含了一个开场屏Splash Screen载入效果,通常游戏或大型软件打开时可能需要一个释放解析资源的过程,需要一个前台的动画播放和后 ...

  7. 实现在Android开发中的Splash Screen开场屏的效果

    很多网友可能发现近期Tencent推出的手机QQ Android版包含了一个开场屏Splash Screen载入效果,通常游戏或大型软件打开时可能需要一个释放解析资源的过程,需要一个前台的动画播放和后 ...

  8. Netbeans Platform 工程,免安装JDK

    使用Netbeans 6.8 创建了一个Netbeans Platform 工程,以Zip形式发布后, 按照以下操作,可 以在客户端免安装JDK: 1. 从已安装JDK的计算机中,提取JDK:eg. ...

  9. Windows Phone Splash Screen

    Why to use splash screen? Typically, you should use a splash screen in your app only if your app is ...

随机推荐

  1. Oracle TRCA 工具 说明 10046

    本篇文章主要介绍了"Oracle TRCA 工具 说明 ",主要涉及到Oracle TRCA 工具 说明 方面的内容,对于Oracle TRCA 工具 说明 感兴趣的同学可以参考一 ...

  2. spring集成redis,集成redis集群

    原文:http://chentian114.iteye.com/blog/2292323 1.通过spring-data-redis集成redis pom.xml依赖包 <project xml ...

  3. TSQLDBServerHttpApi使用工作线程池

    TSQLDBServerHttpApi使用工作线程池 TSQLDBServerHttpApi创建时,默认是使用单线程模式,且只使用一个数据库连接,服务端要应对众多的客户端只靠一个工作线程(主线程)和一 ...

  4. linux导入so文件

    在linux系统中,有时候会遇到so文件丢失的问题. 此时一个常用的操作是将缺失的so文件拷贝到主机上.然后设置以下环境变量来进行导入 export LD_LIBRARY_PATH=/usr/lib/ ...

  5. Python 自用代码(调整日期格式)

    2017年6月28日 to 2017-06-282017年10月27日 to 2017-10-272017年12月1日 to 2017-12-012017年7月1日 to 2017-07-01 #co ...

  6. REOBJECT structure

    REOBJECT structure   包含丰富编辑控件中的OLE或图像对象的信息. Syntax 语法 typedef struct _reobject { DWORD cbStruct; LON ...

  7. 万字总结:学习MySQL优化原理(转)

    本文转自:https://www.tuicool.com/wx/2eMBfmq 前言 说起MySQL的查询优化,相信大家收藏了一堆奇技淫巧:不能使用SELECT *.不使用NULL字段.合理创建索引. ...

  8. Python——学好Python必读的几篇文章

    作为脚本语言Python上手容易,但要学好Python能写出一手漂亮的.Pythonic的Python代码并非一日之功,本文的目的在于推荐 一些优秀的Python相关的文章(至于书大家可以看dip.l ...

  9. js apply和call区别

    <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8&quo ...

  10. NSDate 问题

    类型 比特数 有效数字 数值范围 float 32 6-7 -3.4*10(-38)-3.4*10(38) double 64 15-16 -1.7*10(-308)-1.7*10(308) long ...