Problem with JTextField when copying and pasting text of multiple lines.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Hema_Sundaram
Posted On:   Wednesday, July 17, 2002 06:23 AM

I have a JTextField.If I copy and paste a large chunk of code spanning 50 lines the Jtextfield accepts it.And in the UI it becomes very big after a resize/repaint of the Frame making other components in the frame move to some other position. How can i avoid the component from becomming very big. i.e is there any way to do so without setting a customized Document.

Re: Problem with JTextField when copying and pasting text of multiple lines.

Posted By:   Pavan_Gattu  
Posted On:   Wednesday, July 17, 2002 09:24 AM

Set all the sizes of the component to be fixed.

component.setMinimumSize();
component.setMaximumSize();
component.setPreferredSize();
About | Sitemap | Contact