(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) IDE/Editor :
How to add Pluggable Look and Feels (PLAFs) to JBuilder 4
Adding a PLAF (Pluggable Look and Feel) to JBuilder is easy and you don't
need to create an Opentool at all.  You just need to know how to manipulate 
Swing and the PLAF architecture.  For this example, I'm going to show you 
how to install a MacOS LAF that's available at:

http://www.ing.unitn.it/%7Eluttero/javaonMac/

[DISCLAIMER] Borland cannot support what I am going to show you, and I can't
help you if it doesn't work.  All I can do is show you what worked for me.
No other TeamB person has tried this AFAIK, so asking any of them won't help
either.  Also, please only post responses to the borland.public.jbuilder.ide
newsgroup.  Finally, since the Mac UI is copyrighted I'm not sure how or why 
Apple sanctions the development of this PLAF from this group in Italy, but 
using the MacOS LAF is supposed to be a copyright violation on non-Mac machines.
You have been warned..  :-)

So here we go.

- First download the MACOS PLAF at:

http://www.ing.unitn.it/%7Eluttero/javaonMac/archives/MacOSL&F.zip

Open it and put the macos.jar file in your \JBuilder4\jdk1.3\jre\lib

Create a file in your \JBuilder4\jdk1.3\jre\lib called swing.properties.
Make it look like this:

###
# @(#)swing.properties 1.0 99/05/23 1.0, 23 May 1999 by Luca
# modifications for non-MRJ support April 2001 by David Orriss Jr.
#
# SWING-specific propertiesBR
# this file must go in the lib folder of the JVM installation
# e.g. in System Folder:Extensions:MRJ Libraries:lib  for the MacOS
# in the directory lib of the jre or jdk for the others.
#

# L&Fs names
swing.installedlafs=macos,metal,motif,windows

# L&Fs properties
swing.installedlaf.macos.name=MacOS
swing.installedlaf.macos.class=it.unitn.ing.swing.plaf.macos.MacOSLookAndFeel
swing.installedlaf.metal.name=Metal
swing.installedlaf.metal.class=javax.swing.plaf.metal.MetalLookAndFeel
swing.installedlaf.motif.name=CDE/Motif
swing.installedlaf.motif.class=com.sun.java.swing.plaf.motif.MotifLookAndFeel
swing.installedlaf.windows.name=Windows
swing.installedlaf.windows.class=com.sun.java.swing.plaf.windows.WindowsLookAndFeel

###

Now add this line to your \JBuilder4\bin\jdk.config file:

addpath ../jdk1.3/jre/lib/macos.jar

Mine looks like this:

# Add the "tools" JAR to the path since the JDK doesn'tBR
# do so automatically
addpath ../jdk1.3/lib/tools.jar
addpath ../jdk1.3/jre/lib/macos.jar

At this point you should be able to save your changes, start JBuilder, and
Select Tools | IDE Options.  MacOS will be in the list.  You'll also find
that you can view your apps in MacOS mode in the designer.
2001-Apr-26 4:39pm dave@davenet.net
[Append to This Answer]
2001-May-01 1:08am
Previous: (Answer) How can I disable the WebView tab? It doesn't work for my application.
Next: (Answer) I want to launch my app in its own console window, just like JBuilder2 used to do it.
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=138
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]