• Post Reply Bookmark Topic Watch Topic
  • New Topic

Want to create a UI using Swings

 
Sivapraveen Chandana
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
Please advise how to place components (labels, text fields and buttons) in an orderly manner. I am developing a small tool with a simple UI with just labels, text fields and a button but I am not getting the alignment right.

I need a simple design as following :-

Label1 TextField1
Label2 TextField2
Label3 TextField3
Label4 TextField4

and so on and one single button at the bottom center of the screen.

Please provide sample code for the following. Presently, I am able to create the UI but the alignment is not right.


Please advise.
Thanks in advance.
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I said in your other question, a little time with the Swing tutorial will save you time and effort in the long run. The part about layout managers will help you out..
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I know it's nitpicking, but please read this: Swing Is A Proper Noun
 
Jorge Bendahan
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thats not even a question, thats chewing food and puting it in your mouth..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!