Scout & Swing LAF [message #667610] |
Fri, 29 April 2011 22:10 |
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 09:03 |
|
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 #1383891 is a reply to message #669414] |
Mon, 26 May 2014 20:14 |
Tadeo Granese Messages: 4 Registered: May 2014 |
Junior Member |
|
|
Hi!
I'm just overwritten the SwingScoutRootFrame to personalize the SwingScoutHeaderPanel. I have created SecuritySwingScoutRootFrame that extends SwingScoutRootFrame and when overrides the createSwingScoutHeaderPanel method in concordance with the comment...
/**
* To be overwritten to install a custom header panel
*
* @return
*/
protected SwingScoutHeaderPanel createSwingScoutHeaderPanel() {
return new SwingScoutHeaderPanel();
}
I've seen that SwingScoutHeaderPanel is not interfaced and I can't personalize the header.
Is there another way to do this? Actually I've copied SwingScoutRootFrame but it isn't the idea and it's works.
Kind regards
Tadeo
[Updated on: Mon, 26 May 2014 20:43] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05432 seconds