Posted By:
Anonymous
Posted On:
Friday, June 21, 2002 08:14 PM
I am doing my Advanced Diploma Final Project on Calculator. I tried to put the text alignment to the right side of the field, but remained unsuccessful. I tried the followings display.setHorizontalAlignment(1); display.setHorizontalAlignment SwingConstant.Alignment,1); setAlignment(ParagraphConstants.Alignment,2); Here display is my TextField object. During several unsuccessful tries I discovered that some of these are for text and icon alignment in the popup menu. Can you please suggest me what is the solution for this? Regards! Narayan
More>>
I am doing my Advanced Diploma Final Project on Calculator.
I tried to put the text alignment to the right side of the field, but remained unsuccessful. I tried the followings
display.setHorizontalAlignment(1);
display.setHorizontalAlignment SwingConstant.Alignment,1);
setAlignment(ParagraphConstants.Alignment,2);
Here display is my TextField object. During several unsuccessful tries I discovered that some of these are for text and icon alignment in the popup menu.
Can you please suggest me what is the solution for this?
Regards!
Narayan
<<Less