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 18:19:44 +0200 Organization: Decebal Computing Lines: 31 Message-ID: <87d1m755gf.fsf@Equus.decebal.nl> References: <87twfk93vu.fsf@Equus.decebal.nl> <8737n36ucx.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="20525"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tF47KNmGcbHiCUHAfGzXZXypkNsozo8Y=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:5loVvuW2y/9MtE2TfhUtFArIVeM= sha1:/AQnFHTBps94mxtdWMe+xQ7352Y= Xref: csiph.com comp.lang.java.programmer:35057 On Thursday 21 Jul 2016 17:30 CEST, Knute Johnson wrote: > I think Eric is right about why you are getting the flicker and > other issues. That event dispatch thread is very important and > mixing AWT and Swing components is usually problematic. 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? > I'm thinking you could have a menu of box sizes and select one to > crop your image. That is where I want to go to, yes. But before trying that I should make sure that I need them. Now I know I need them. > Here is CropComponent rewritten and cleaned up a > bit to use a fixed size box instead of the usual mouse dragged > variable box. I am going to look into that. You and the rest: thank very much for the help. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof