The simplest way to do this is probably to attach a decorator to the header 
that draws the line.

On Oct 3, 2011, at 3:13 AM, prophe wrote:

> And now I want to paint the bold line on the filter that is under mouse
> cursor while dragging and a narrow under the filter. Looking like on the
> picture:
> http://apache-pivot-users.399431.n3.nabble.com/file/n3389352/ertrt.jpg 
> 
> My code is:
> 
>       @Override
>       public DropAction dragMove(Component component, Manifest dragContent,
>                       int supportedDropActions, int x, int y, DropAction 
> userDropAction) {
>               
>               int currentheader = getHeaderAt(x);
>               if (currentheader!=-1){
>                       Bounds currentBounds = getHeaderBounds(currentheader);
>                       int filterEdge = Math.abs(x-currentBounds.x);
>                               if (filterEdge>currentBounds.width/2){
>                                       System.out.println("here right");
>                               }else{
>                                       System.out.println("here left");
>                               }
>               }
>               
>               return null;
>       }
> in place of System.out.println("here right"); and System.out.println("here
> left"); I want to draw a narrow and line like on the image. How can I do it?
> Thank you
> 
> -----
> Thank you!
> --
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/Replace-column-in-table-view-tp3375080p3389352.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to