• Post Reply Bookmark Topic Watch Topic
  • New Topic

JButton Strange Behaviour

 
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!