File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamically Adding Components

 
Kevin Brooks
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to add components to a JPanel. Everything works great until I want to drop down and create another row of components. I have tried using the setAlignmentY() method, however it does not move down at all. Maybe I am not adding a large enough value to the previous value used. I am adding 250 for each "row" I want to create. Is there another method I should be using?
 
Rob Camick
Ranch Hand
Posts: 2473
8
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the appropriate combination of Layout Managers to get your desired layout.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic