Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Scout & Swing LAF
Scout & Swing LAF [message #667610] Fri, 29 April 2011 18:10 Go to next message
Adrian Moser
Messages: 67
Registered: March 2011
Member
When I run Eclipse Scout with Swing, is there a way to modify or even hide the light-blue area between the menus and the main default windows?

The light-blue area remains the same, I tried running Scout with Nimbus, Aqua Look and Feels and others. Also, the AbstractOutlineViewButtons have always the same look and feel, not changing to the Java LAF.

Thanks
Adrian
Re: Scout & Swing LAF [message #667990 is a reply to message #667610] Tue, 03 May 2011 05:03 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio Guglielmo
Messages: 126
Registered: March 2010
Senior Member
Hi Adrian

Yes you can replace that bar with an own implementation or you can use the class LegacySwingScoutRootFrame which should look better with the default look and feels. But keep in mind it is legacy so it possibly will be removed sometime.

To replace the default bar you need to override a method in the class SwingApplication.

public class SwingEnvironment extends DefaultSwingEnvironment {

  @Override
  public ISwingScoutRootFrame createRootComposite(Frame rootFrame, IDesktop desktop) {
    ISwingScoutRootFrame ui = new LegacySwingScoutRootFrame(this, rootFrame, desktop);
    decorate(desktop, ui);
    return ui;
  }

}


I agree that the default bar does not look good with the java LAFs. Could you report a bug https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Scout&am p;format=guided? That would be great.

Hope that helps.

Regards
Claudio
Re: Scout & Swing LAF [message #669414 is a reply to message #667990] Tue, 10 May 2011 05:14 Go to previous message
Adrian Moser
Messages: 67
Registered: March 2011
Member
Thanks, the ticket is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=345184
Previous Topic:Logging in Scout Framework
Next Topic:Recommendation Models for Scout?
Goto Forum:
  


Current Time: Fri Apr 18 14:23:49 EDT 2014

Powered by FUDForum. Page generated in 0.07427 seconds