Archive for April, 2009

Improved Mark Occurrences Behavior

Sunday, April 26th, 2009

Commit 97 in SVN improved Mark Occurrences support behavior in RSyntaxTextArea. Previously, there were two issues with it that were kind of annoying:

  1. The Mark Occurrences highlights were always painted “on top of” the selection. This was because of how Swing highlighting support is implemented – highlights are always painted from most-recently added to least-recently added. Since text selection is actually a highlight, if you selected text after say some occurrences of a variable were marked in the document, the variable occurrences’ highlights get painted on top of the selection’s highlight.
  2. When typing characters at the end of a Mark Occurrences highlight, those chars got “absorbed” into the highlight. Again, this is because of Swing’s highlight implementation. All Highlights have this behavior in Swing.

These issues are fairly simple to work around, but require writing a little more code (much of which unfortunately has to be duplicated from Swing classes, since the Swing text package is keen on keeping useful things package private).

This change will be in 1.3.3, which will hopefully be released soon.

Microsoft Office Look and Feels added to Fifesoft

Friday, April 24th, 2009

OfficeLnFs is a Microsoft Office Look and Feel for Swing.  With this library, your Swing app can have the look of Office XP, Office 2003, or Visual Studio 2005.  The library is smart and picks up on your Windows theme, and adjusts the colors it uses to mimic what that particular Office application would look like in that theme.  Menus even properly support RTL languages (which even the standard WindowsLookAndFeel doesn’t do!).

OfficeLnFs is released under a BSD license. You can check out the source from SVN, or download the latest release from SourceForge.

VS2005 Look and Feel

VS2005 Look and Feel