Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » empty space painted black Windows 7
empty space painted black Windows 7 [message #1015465] Thu, 28 February 2013 16:13 Go to next message
Aggelos Aggelis is currently offline Aggelos AggelisFriend
Messages: 4
Registered: February 2013
Junior Member
Hi guys,

I'm currently building an RCP application and my problem is
that while on Win XP unused space of a table is white,(not what i
want but it is ok), on Win7 this part is painted black and it doesn;t
refresh nicely making the gui to look awfull.
Is there anyone else facing the same problem???

Thnx Guys!
Very good job on the project!!
Re: empty space painted black Windows 7 [message #1015472 is a reply to message #1015465] Thu, 28 February 2013 16:32 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Hi,

I'm not sure if this is related to NatTable itself, as painting a black background usually indicates some issues with the layout you are using.

As NatTable is a SWT Control, you should be able to set the background color manually:
this.natTable.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));


If that doesn't help you should look on how you added the table to your layout.

Hope that helps,
Dirk
Re: empty space painted black Windows 7 [message #1015619 is a reply to message #1015472] Fri, 01 March 2013 12:14 Go to previous message
Aggelos Aggelis is currently offline Aggelos AggelisFriend
Messages: 4
Registered: February 2013
Junior Member
This was not the problem..
The problem occured due to wrong use of

natTable.setLayerPainter(new GridLineCellLayerPainter());

error fixed!
Thnks anyway
Previous Topic:Collapsed group overlaps next group
Next Topic:Who is responsible for handling MouseWheel scroll?
Goto Forum:
  


Current Time: Fri Apr 26 11:44:21 GMT 2024

Powered by FUDForum. Page generated in 0.02728 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top