Re: JTree, mouse event and complex cells



grzegorz.drozdz@xxxxxxxxx wrote:

> My tree cell renderer creates complex cell which contains 3 JLabels.
> How do I add mouse listener to one of these labels? By default mouse
> event is registered only by the tree, how do I pass this event to
> appropriate label?

You use a TreeCellEditor.


Christian
.



Relevant Pages

  • JTree, mouse event and complex cells
    ... My tree cell renderer creates complex cell which contains 3 JLabels. ... How do I add mouse listener to one of these labels? ...
    (comp.lang.java.gui)
  • Re: creating a loop for building a matrix
    ... where column 1 and 2 are labels not row/column indexes. ... the answer with blanks for zeros. ... If ilabel is column 1 of your data, ... jlabels = unique; ...
    (comp.soft-sys.matlab)
  • Re: JLabels Are Big
    ... memory starts loading up and the application bogs down. ... 20 labels is not a lot. ... directly in the panel rather than through the JLabels. ... to subclass Image and then just draw the formula with Graphics2D ...
    (comp.lang.java.programmer)