Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

formatting text and password fields

 
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: 5155
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
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!