This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes problem in textfield width... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem in textfield width..." Watch "problem in textfield width..." New topic

problem in textfield width...

Paru kutty

Joined: May 16, 2008
Posts: 6
hi,I am not getting the textfield width properly...I am using scrollpane,but textarea is not narrow that it can't be seen...Am using grid bag layout..

Thanks in advance....
[ June 05, 2008: Message edited by: Rob Prime ]
Rob Spoor

Joined: Oct 27, 2005
Posts: 19684


Next time, please UseCodeTags. That will make your code so much easier to read.

I've done it for you this time, and you can see the improved result.

How To Ask Questions How To Answer Questions
Ted Smyth
Ranch Hand

Joined: May 28, 2008
Posts: 73
Ditch GridBag, it's a nightmare of a layout manager (in my humble opinion).

Try MigLayout!

Edward Smith
satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334
Try this

instead of

I agree. Here's the link:
subject: problem in textfield width...