write form right end

i am making a calculator , so as we know in the display panel of a calculator numbers start appearing from right end , but in a jtextfield any text u write start appearing form left end of text box . So if somebody could give a solution....

[247 byte] By [shagya] at [2007-11-27 10:10:45]
# 1

In future Swing related questions should be posted into the Swing forum.

Consult the API for a method to change the orientation of the text in the component.

cotton.ma at 2007-7-28 15:08:35 > top of Java-index,Java Essentials,New To Java...
# 2

thanks problem solved

shagya at 2007-7-28 15:08:35 > top of Java-index,Java Essentials,New To Java...
# 3

<np>The difference between a calculator display and a "plain" text fied is really one of text alignment rather than direction.</np>

[Edit] or was that what "oriented" meant?

pbrockway2a at 2007-7-28 15:08:35 > top of Java-index,Java Essentials,New To Java...