• Post Reply Bookmark Topic Watch Topic
  • New Topic

formatting text and password fields  RSS feed

 
Phillip Grekstas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some experience working with Java, but am very new to developing GUIs so I'm having a hard time getting things to do what I need them to.
I'm trying to develop a simple GUI screen with a Login field and a password field, but the fields are not where I expect them to be on the panel, and they are too large. I'm really like them much smaller and smack dab in the center of the screen. How do I do this from here?

Thank you

 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use an appropriate layout manager.
http://download.oracle.com/javase/tutorial/uiswing/layout/index.html
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!