Office LookAndFeel

Just came accross this from some blogs:

http://officelnfs.sourceforge.net/

Looks nice - how would one shoehorn that into IDEA?

0
11 comments

The usual way: drop the L&F jar somewhere on the classpath (you'll probably have to edit your idea.bat/lax for that) and edit/create the $JAVA_HOME$/lib/swing.properties defining the look and feel.

Docs here: http://developer.apple.com/qa/qa2001/qa1059.html
Full example here: http://anabuilder.free.fr/swing.properties

0

Marcus Brito wrote:

The usual way: drop the L&F jar somewhere on the classpath (you'll probably have to edit your idea.bat/lax for that) and edit/create the $JAVA_HOME$/lib/swing.properties defining the look and feel.

Docs here: http://developer.apple.com/qa/qa2001/qa1059.html
Full example here: http://anabuilder.free.fr/swing.properties


I tried to put the l&f jar file in the %idea_home%\lib and added it to
the classpath in the idea.bat file also added
-Dswing.defaultlaf=org\fife\plaf\Office2003\Office2003LookAndFeel in the
arguments and I get:
java.lang.Error: can't load org\fife\plaf\Office2003\Office2003LookAndFeel

what should I do to make it work??

10x

0

You need to use the class name, not the file name:

-Dswing.defaultlaf=org.fife.plaf.Office2003.Office2003LookAndFeel

Just curious, who names a package uppercase???

Tom

0

Well now it runs fine but not with the desired L&F.

What am I missing?

0

I'm guessing IDEA sets the look and feel without giving a rats about what's being passed to swing internals as System properties. What you can do is what is suggested in the first post, create a swing.properties, put it in ]]>/lib, make sure it contains the LookAndFeel classes you want to use and then start IDEA. You'll probably need to dig around IDEA internals to get the class name of the IDEA 4.5 LookAndFeel though.

0

You'll probably need to dig around
IDEA internals to get the class name of the IDEA 4.5
LookAndFeel though.


No need to do that. The IDEA L&F will always be available for you to choose in the Appearance configuration, even if it's not listed on your swing.properties

0

In article <cut10i$88u$2@is.intellij.net>,
"Thomas Singer (MoTJ)" <nomail@nodomain.com> wrote:

You need to use the class name, not the file name:

-Dswing.defaultlaf=org.fife.plaf.Office2003.Office2003LookAndFeel

Just curious, who names a package uppercase???


People used to writing C# :)

R

0

Anyone able to get this to work by not using idea.bat?

I placed the jar in idea/lib and the jre/lib folders to be safe.

I then editing idea.vmoptions and added:
-Dswing.defaultlaf=org.fife.plaf.Office2003.Office2003LookAndFeel

I also edited the shortcut to idea.exe and changed it to:

idea.exe -Dswing.defaultlaf=org.fife.plaf.Office2003.Office2003LookAndFeel

Neither seem to work.

Any ideas?
Thanks,
Grant


"Oded Hassidi" <oded_hassidi@bmc.com> wrote in message
news:9256895.1108481543937.JavaMail.itn@is.intellij.net...

Well now it runs fine but not with the desired L&F.

>

What am I missing?



0

I assume this look and feel only works with Windows since it extends the WindowsLookAndFeel. Correct?

0

I tried enabling other L&Fs (Plastik, jGoodies, Ocean) but wasn't succesful; don't remember which version of IDEA I used, it didn't work, not even with swing.properties (setting it as default LAF)... IDEA never listed it under "L&Fs", probably it uses hardcoded L&Fs? (I think so, since for a strange reason it offered me "Windows L&F" on Linux... and always switched to Metal "classic" instead of using Ocean on JDK 5 (ocean theme set).
Lots of assumptions and guesses, still, didn't manage to get other L&Fs/Metal themes (non-IDEA ones) working. It may work with newer versions/EAPs or even older ones (?).
Not very helpful, I know.

regards,

Messi

0

I haven't done this in a long time (I'm sticking to the platform L&F when I can -- I just wish the GTK L&F actually worked), but used to work for me.

0

Please sign in to leave a comment.