Decreasing the Height of the PinkMatter Flamingo Ribbon Bar (Part 2)

Bruce Schubert provided a patch for the PinkMatter Ribbon toolbar, which decreases the height of the toolbar (real estate is important in many NetBeans Platform applications), by changing the application menu and removing the task bar. (Part 1 describes different approaces to the same end.)

By default, this is what the PinkMatter Ribbon toolbar looks like:

...and, with Bruce's changes, this is what it can look like instead:

You end up saving some space, while still having the nice Flamingo ribbon toolbar, as before.

To use this implementation of the PinkMatter ribbon toolbar, check out the ribbon bar as explained in the tutorial and change the class "com.pinkmatter.modules.flamingo.LAFConfiguration" as indicated below:

class LAFConfiguration {
  public static Object[] getClassDefaults() {
    return new Object[]{
      "RibbonApplicationMenuButtonUI",  
         "com.pinkmatter.modules.flamingo.NbRibbonApplicationMenuButtonUI"
      //Replace the above line with the below to use Bruce's patch:                     
      //"RibbonUI", "com.pinkmatter.modules.flamingo.FileRibbonUI",
      //"RibbonApplicationMenuButtonUI", 
      // "com.pinkmatter.modules.flamingo.FileRibbonApplicationMenuButtonUI"
        };
    }
}

Thanks Bruce!

Comments:

Hi Geertjan!

I would know how I can achieve this change in the insubstancial-flamingo library. In my case, I want to remove the upper taskbar and have only the ribbon section. However, the flamingo api do not expose methods to do that.

I followed your tutorial but I was not able to achieve the final aparience. Notice that I do not using the netbeans platform, but I'm very interested in achieve the aparience that your did with the netbeans platform.

Thanks in advance.

Greetings!

Posted by Miguel Angel on July 28, 2013 at 09:52 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2015
SunMonTueWedThuFriSat
   
4
5
11
12
27
28
29
30
  
       
Today