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: Wed, 20 Jul 2016 21:14:30 +0200 Organization: Decebal Computing Lines: 30 Message-ID: <874m7k86ll.fsf@Equus.decebal.nl> References: <87twfk93vu.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="23247"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xI9Lq4u5lcIBqe1j/h9ULcrgp/PKSf2s=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:a4kQO7ByGDPaiPNSve1U65lPh8o= sha1:aWlCw4oa+bCLhBJ3lNQCDa+C2Pg= Xref: csiph.com comp.lang.java.programmer:35017 On Wednesday 20 Jul 2016 19:02 CEST, Knute Johnson wrote: > On 7/20/2016 00:15, Cecil Westerhof wrote: >> I need to crop some images and decide to write a Java program for >> it. At the moment it is very rudimentary, I plan to add some >> functionalities and because I have very little experience with GUI >> comments on how to implement the GUI better are welcome. >> >> >> At the moment it is build with my camera's in mind and cropping for >> InstaGram, but when it is seen as useful I will make it more >> generic. >> >> >> I have a few problems, the most important are: >> - After loading the first or a new image the first click makes the >> image disappear and painted again. Subsequent clicks do not have >> this problem. > > We'd need to see the code That is stupid: I thought I had pasted the link, but I did not. >:-( Here it is: https://github.com/CecilWesterhof/JavaExamples/blob/master/CropImage/CropImage.java -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof