Re: Underlining a node in JTree



Thanks for that. I had to override the getTreeCellRendererComponent as
well as the paint method. The problem is that the method with setting
the underline attribute in the attribute map does not work. This appears
to be a known bug in Java. Warm greetings up to the beautiful university
in Trondheim!!

Håkan Lane
.



Relevant Pages

  • Re: Simple Problem
    ... Andrew Thompson wrote: ... >>The problem that I am having is when I add the paint method, ... > you override paintComponent() instead. ... Surely you want your applet to be setting the status ...
    (comp.lang.java.help)
  • Re: TreeView text nodes wordwrap
    ... override so that I ... it looks like the TreeView just has one Paint method and if I ... > f> worth a try at overloading the class and customizing the way the ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Text in a scroll bar
    ... Yes, inherit the scrollbar component, override the paint method, and make ... inherit the normal checkbox and totally replace (override) its paint method. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Dynamically formatting a row in a Data Grid
    ... you have to do your own DataGridTextBoxColumn and override the Paint Method. ... Prev by Date: ...
    (microsoft.public.dotnet.general)
  • Re: Overriding Methods
    ... I want to override the paint method of a Windows.Forms.Panel. ... I have to manually type the override paint method? ... IIRC, you can just hit Ctrl-Space when in the derived type but outside ...
    (microsoft.public.dotnet.languages.csharp)