Is there any simple method to write superscipts (like F_max but as subscript) in static text placed in graphic area. In below 5 version F_max worked but in 5.0 perhaps not. I tried different operations from JavaScript help page but nothing works. Is any possibility to place two texts with different sizes as graphic elements?
Although drawing elements, such as axis labels in plotting panels, do not support subscripts, you can use subscript superscript css properties in text labels and other interface elements. For example, you can write
Thank you. It really works also for Greek letters. However it is pity that Javascript gives less elegant (in sense of interface) simulations than Java. I am transforming old EJS simulations to EJSS style due to problems many students have with starting Java applets (despite of my instructions). Javascript version works without such problems but I do prefere Java version output.
The method described above by Wolfgang works well in situations like in the example presented by You, i.e. labels in "normal"panels The problem is superscript or subscript in DrawingPanel. Alas the method does not work in such cases. Of course one can make separately main text and subscript text and place inside graphic panel but it is time consuming and not as flexible as method in available in EJS.