0 Replies - 404 Views - Last Post: 16 May 2019 - 05:41 AM Rate Topic: -----

#1 Sciuriware   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 59
  • Joined: 17-August 13

Image or icon inside tooltip does not work any more

Posted 16 May 2019 - 05:41 AM

A piece of code that has worked ever since 1998 suddenly does not work any more since installation of JAVA 12.

I surfed the internet, but all example codes are like mine.

This is the minimal code that fails:
    label.setToolTipText("<html>Picture in <img src=\""
    + TestCase.class.getResource("tooltip.gif")
    + "\"> Tooltip ");


The tooltip should show : "Picture in ~picture~ Tooltip"
with the picture in place of ~picture~.

I already found that the 'getRecource()' returns "file:/D/joop/Java/RiengTu/KhaoSat/TestCase/tooltip.gif"
which is correct.
Thanks for reading.
;JOOP!

Is This A Good Question/Topic? 0
  • +

Page 1 of 1