3

I am working on a scientific calculator in java for which I need to output a fraction in its actual form like as numerator over denominator. Currently I am using JTextField to output my expressions.I know that this is not possible with JTextField, kindly guide me how this is possible ?

Anoop Kanyan
  • 618
  • 7
  • 19
Ahmed Khan
  • 39
  • 4

1 Answers1

1

new JLabel("<html>2 <sup>2</sup>&frasl;<sub>3</sub></html>")