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

JButton Sizes  RSS feed

 
Stephen Foy
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ive been trying everything to adjust the size and x,y of a JButton - cant seem to find any method to do this ive tried:



Does anyone know a method achieve this?
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stephen Foy:
Ive been trying everything to adjust the size and x,y of a JButton - cant seem to find any method to do this ive tried:



Does anyone know a method achieve this?


Although this is not proper forum to post the thread, but anyways what you are doing, is you are adding button on Frame. You must look at this code.



This will display the JButton as according to you. Still but you still need to brush up your mind with Swings Basics.

Please let me know if there are any issues.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!