Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » trying to get white space/empty space within a jface listviewer
trying to get white space/empty space within a jface listviewer [message #673268] Mon, 23 May 2011 04:33
sam mn is currently offline sam mnFriend
Messages: 25
Registered: August 2010
Junior Member
trying to get white space/empty space within a jface listviewer


Uptill now, i am trying to get the white space with the below mentioned logic, but this is not working consistently, is there any other method ??


listViewer.getList().addMouseListener(new MouseAdapter() {
@Override public void mouseUp(MouseEvent e) {
final list = listViewer.getList();
final int maxY = list.getBounds().y + list.getItemCount() * list.getItemHeight();
if (e.y > maxY)
listViewer.setSelection(StructuredSelection.EMPTY);
}
});

[Updated on: Mon, 23 May 2011 04:34]

Report message to a moderator

Previous Topic:Download JFace
Next Topic:Help! an issue after removed the filter
Goto Forum:
  


Current Time: Thu Nov 27 04:58:50 GMT 2014

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

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