Re: choosing linestyles with a combobox



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.
.



Relevant Pages

  • Re: Stunning Test!
    ... In message, Oleg Lego writes ... effective, however, I think I'll just find the tools and paint the ... Comfort. ... Strange because, being air-cooled, it had no water for the cabin heat exchanger so it used petrol. ...
    (alt.usage.english)
  • Re: that=what?
    ... John O'Flaherty wrote: ... I find "that" a bit strange here. ... If it were 'anybody that likes to can paint', ... relative pronoun as the relative clause used that way should be placed ...
    (alt.usage.english)
  • Re: that=what?
    ... I find "that" a bit strange here. ... Thomas Mann, The Magic Mountain, p. 67 ... If it were 'anybody that likes to can paint', ... Alan Jones ...
    (alt.usage.english)
  • Re: that=what?
    ... I find "that" a bit strange here. ... There's no law against it--anybody can ... Thomas Mann, The Magic Mountain, p. 67 ... If it were 'anybody that likes to can paint', ...
    (alt.usage.english)
  • Re: Flicker free animation
    ... In Swing, you override paintComponent, not paint. ... also experiment with setOpaque ...
    (comp.lang.java.gui)