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 ?
Asked
Active
Viewed 134 times
3
-
Perhaps use a label than – Darshan Lila Jan 01 '16 at 07:30
-
How exactly can you please elaborate your answer? – Ahmed Khan Jan 01 '16 at 07:56
-
1You probably can use JLabel and set text to it in p/q form and show it. – Darshan Lila Jan 01 '16 at 07:57
-
1possible dup of http://stackoverflow.com/questions/7448216/how-to-rendering-fraction-in-swing-jcomponents, several good answers there – heenenee Jan 01 '16 at 08:14