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

setLocation() method in applet - ???  RSS feed

 
James Brooks
Gunslinger
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

The below applet turned out a real mess when I just used FlowLayout(), so I decided to manually place the components with setLocation(x, y), but now that I did that, I have a blank applet when run. What am I doing wrong, can anyone help?

Thanks in advance!


 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Direct positioning is not for the faint of heart. I'd strongly advise you to use a layout. For label/element pairs there's BoxLayout, or the very handy LabelledItemPanel class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!