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
|