Re: choosing linestyles with a combobox
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Sat, 26 Nov 2005 16:29:27 GMT
On Sat, 26 Nov 2005 17:16:13 +0100, Tomba <tomba@xxxxxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :
> public void paint(Graphics g) {
>> Graphics2D g2 = (Graphics2D)g;
>> super.paint(g);
you are supposed to override paintComponent, not paint. Perhaps using
the wrong underlying Component in some strange way compensated for the
error.
see http://mindprod.com/jgloss/paint.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- References:
- choosing linestyles with a combobox
- From: Tomba
- Re: choosing linestyles with a combobox
- From: Tomba
- choosing linestyles with a combobox
- Prev by Date: Re: size of a string in pixel ?
- Next by Date: Re: help adding items to JComboBox on the fly
- Previous by thread: Re: choosing linestyles with a combobox
- Next by thread: moving (JTable) columns
- Index(es):
Relevant Pages
|