View Single Post
Old Dec 6th, 2005, 12:46 AM   #6
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,183
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by titaniumdecoy
I think buttons automatically resize themselves depending on the length of their text, so if you don't specify a size you may be able to use the setBorder(Border b) method and save yourself the trouble.
I think what the OP means is he wants to do what is referred to in Windows as 'owner draw'. He's not setting the text through the setText() method; he's overriding the paintComponent() method, and doing custom painting of the control.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote