Tuesday Sep 04, 2007

Embedding WebClient into Netbeans

I am not exactly sure how this will be useful yet since WebClient is built on top of Native code which brings to surface the issue between heavy-weight and light-weight components. Until that is figured out, it does look really cool.



Does anyone else think that youtube.com running in Netbeans looks really cool? And yes, the video really is playing.

Much of the code was borrowed from the WebClient sample Netbeans project, but it has been modified slightly to work in Netbeans 6.0 and open within a TopComponent. Unfortunately, this project will only work in Windows and there a little bit of work to do. This project can be modified to work on Mac, but the appropriate changes would have to be made.

  1. Download and unzip XULRunner
  2. Modify the windows environment Path to include the top level XULRunner directory.
  3. Download and unzip WebClient 2.0a9rc3
  4. Download and unzip the WebClientSuite Netbeans Suite that I created
  5. Open Netbeans (make sure to do this after setting the environment variable
  6. Open WebClientSuite and more specifically project webclient.
  7. Modify your project.properties run.args.extra property to point respectively to the unzipped zulrunner and webclient_2_0 files
Hopefully there will be more to come in this area.

Wednesday Feb 08, 2006

Building Netbeans 5.0 NBMs for an entire suite

Creating NBMs (or Netbeans 5.0 Pluggins) for a large number of modules can be quite annoying. I decided to write my own ant task so that it will build all the modules in a suite and put the subsequent nbms into a local nbm directory. I figured others might be interested in these codes lines that can be added to your build.xml in your suite.
Make sure to add the following taskdef. You can get the foreach task as defined in nbbuild of the netbeans src. The following clip was taken from nbbuild/build.xml <taskdef name="for-each" classname="org.netbeans.nbbuild.ForEach" classpath="nbantext.jar"/>

Here is the build-nbm-pack:
<target name="build-nbm-pack" depends="init" description="Builds all modules into nbms">
        <delete dir="nbms"/>
        <mkdir dir="nbms" />

        <loadproperties srcFile="../mysuite/nbproject/project.properties">
           <filterchain>
                 <tokenfilter>
                   <deletecharacters chars=".."/>
                 </tokenfilter>
             </filterchain>
        </loadproperties>
       <for-each startdir=".." target="nbm" locations="${modules}" propertyna
me="nbm.target.dir" propertyvalue="${basedir}/nbms"/>
    </target>


Tuesday Feb 07, 2006

Netbeans 5.0 Pluggin Development

I just started working with the new Netbeans 5.0 release. Wow!! Some great changes have been made especially in the area of pluggin's. Watch out Eclipse! Within minutes you can use Netbeans to create a huge variety of applications. I am not just talking about development environments. Netbeans can provide any Rich Client Application Framework.

Here are some tutorials that I started with:
http://platform.netbeans.org/tutorials/quickstart-nbm.html

Thereis lots of additional documents to help you get started on almost anything.
http://platform.netbeans.org/index.html
http://platform.netbeans.org/tutorials/index.html


Even writing a simple paint application is easy.
http://platform.netbeans.org/tutorials/nbm-paintapp.html

You can download Netbeans 5.0 here:
http://www.netbeans.info/downloads/download.php?type=5.0

Side note: Netbeans 5.0 also has a mobility pack for those doing things like Palm development.

-Joelle
About

joellelam

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today