Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Strange LAYOUT !!!  RSS feed

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using gridBagLayout ..i have a panel with buttons and text fileds..
all text fileds are equal in size except the line where there is a button next to the text field ..that is very strange and i dont know how to fix it
anyhelp !!!
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your code so that we can help.
 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using netbeans guibuilder so i dont have the code ..all i have is the custmize screen that i choose the options from!!!
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I STRONGLY suggest that you put aside your GUI builder and go through the Java Tutorial: Creating a GUI with Swing. There are some pitfalls to GUI design in Java and if you don't understand how components and layouts collaborate to create a GUI, a GUI builder will just get you into trouble faster.
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maha

Try JFrameBuilder which generates human readable GUI code.
 
Stephen Boston
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Joe on this. Even with a human readable IDE GUI creator, if you don't understand how swing works you'll have a tough time understanding that code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!