[Scilab-Dev] Problem while solving Bug#14709
nikhil goel
nikhilgoel199797 at gmail.com
Thu Feb 23 21:45:54 CET 2017
Hello,
I was solving Bug#14709. I was able to make checkbox and radiobutton
support LaTeX. While trying to make listbox support LaTeX, I encountered a
problem.
When I tried to call ScilabSpecialTextUtilities.setText() within the
constructor of SwingScilabListBox resulted in a compatibility error as
'this' could not be converted to JComponent type. I tried to overload the
setText method in ScilabSpecialTextUtilities so that SwingScilabListBox
type variable could be passed to it but this also resulted in the same
error.
I think that the compatibility error is because SwingScilabListBox is
not a part of the hierarchy of JComponent class.
[javac] /home/nikhil/scilab_master/scilab/modules/gui/src/java/
org/scilab/modules/gui/bridge/listbox/SwingScilabListBox.java:112: error:
incompatible types: <anonymous ListCellRenderer> cannot be converted to
JComponent
Am I proceeding in the right direction or am I doing something wrong? Is
there any other way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20170224/8804f6ef/attachment.htm>
More information about the dev
mailing list