Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: What do you think of my CropImage class Date: Thu, 21 Jul 2016 20:12:27 +0200 Organization: Decebal Computing Lines: 17 Message-ID: <87zipa508k.fsf@Equus.decebal.nl> References: <87twfk93vu.fsf@Equus.decebal.nl> <8737n36ucx.fsf@Equus.decebal.nl> <87d1m755gf.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="7957"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aSzFsU1zxFc/OYcUeEwVWYTKwJs80hFg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:5uNNxc9qb2PPvGE7CxAGgjMOczc= sha1:wfAqlMiNwpPVzQkiNVVIAFOa7Jg= Xref: csiph.com comp.lang.java.programmer:35063 On Thursday 21 Jul 2016 19:18 CEST, Eric Douglas wrote: > On Thursday, July 21, 2016 at 12:44:07 PM UTC-4, Cecil Westerhof wrote: >> The flicker issue is solved. Do I understand it correctly that when >> a class (for the GUI) does not start with a J it is an AWT >> component and I should not use it? > > You can extend a Panel directly in a Swing app but to do it properly > gets ugly. It is always best to use a JComponent, and override > paintComponent(), not paint(). That is what I am doing now. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof