This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JButton Strange Behaviour  RSS feed

 
Kamlesh Sangani
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am setting JButton's setPrefeerredSize and setMinimumSize property.
I am also changing the foreground color runtime.
However whenever I change foreground color rather than dispalying text on button it displays ... as text. Any idea whats going on? any suggestion wld be of gr8 help.
Thanx.
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your button is not big enough to display your text...make it bigger !
 
Kamlesh Sangani
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
ya thats it. it worked. thanx a lot.
but thats in Metal n Motif look and feel. In windows when i change background/foreground it doesnt diaplay text. ne idea???
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!