Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Nebula grid Mouse Drag Listner(copy Grid text on Mouse Drag event)
Nebula grid Mouse Drag Listner [message #1719228] Wed, 06 January 2016 11:16
Harshini Garikiparthi is currently offline Harshini GarikiparthiFriend
Messages: 23
Registered: March 2015
Junior Member
Hello , I am working on Nebula Grid something related to the above problem.
I have a grid , I select a cell-1 , Drag it down and on mouse release i have to copy down the text selected from cell-1 to all the cells dragged down.
I did a mouselistner

grid.addMouseListener(new MouseAdapter()
public void mouseDown(MouseEvent e) {
ViewerCell viewerCell = grid.getCell(new Point(e.x,e.y));
String cellText = viewerCell.getText();
System.out.println("Cell clicked: " + cellText);

Here I am able to get the text of selected cell , How do i add drag action to the mouse listner
I have tried to use
- mouseReleased(MouseEvent e)
-mouseDragged(MouseEvent e)
but it seems it doesnt work with Nebula grid
Please suggest a way.
Previous Topic:Multiple selection of items in nebula grid
Next Topic:Updating product causes artifacts problems
Goto Forum:

Current Time: Sun Apr 21 10:48:54 GMT 2024

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

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

Back to the top