Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

button alignment  RSS feed

 
ciaran Hurst
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
is there a way via a layout manager to specify the exact x and y coordinates of a Jbutton.
 
Salvatore Johansen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand you correctly. The Grid or Gridbag layout should help you.
http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagLayout.html
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!