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

JButton  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any way to program buttons instead of the normal rectangular buttons....thks !
 
paul wheaton
Trailboss
Posts: 22553
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do it all the time. I made my own button class that takes three images: up, down and dim. When your press the button, it goes to "down" until you release the button.
Good ole lightweight components.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this article in the Tech Tips archive in the Java Developers Connection. To see the article you'll need to register, which is quick, easy, free, and harmless.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!