Thank you all who helped me on JTextField Issue. I got JTextField successfully added to my frame with Border Layout by using BorderLayout.PAGE_START. But now i am not able to edit the width of JTextField .Only height is changing. Please have a look at the underlined line.[This changes height of JTextField, but width is not changing].
Is border layout stretches all components to its maximum width?