This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes textfields are squished in gui Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "textfields are squished in gui" Watch "textfields are squished in gui" New topic

textfields are squished in gui

Alan Shiers
Ranch Hand

Joined: Sep 24, 2003
Posts: 237
Hi there,

I need a little help with a JDialog box I'm working on. In my init() method I load up all the components for the JDialog. The labels show just fine, but the JTextFields and JTextArea are all squished. I've set the setPreferredSize(...) method on each text component but it doesn't seem to make any difference when the whole thing renders. I need another pair of eyes to show me where I went wrong. Can you tell from my code what's wrong?


I agree. Here's the link:
subject: textfields are squished in gui
Similar Threads
Layout Managers and preferred size
text box - GridBagLayout
Problem displaying JTable inside a JScrollPane
ActionListener not recognized under Solaris
GridBagLayout Problem