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?
_______________________________________________
dev mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to