Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jtext problem very urgent  RSS feed

 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if frame size samall textfield size textfiled
it looks centered instead of justified left
how to solve this problem
 
Jagan Reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
By default Frame is border layout and centered.change the layout to flow layout and left aligned. That solves your problem.
Regards,
Jagan Reddy
 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frame is created with Flowlayout and added JTextfield with right alignment. type long text in JTextField and change window width small to JtextField. after change window width Jtextfield have Left alignment.
how to solve?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!