Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Qu0ll Newsgroups: comp.lang.java.programmer Subject: Re: What do you think of my CropImage class Date: Thu, 21 Jul 2016 05:53:54 +1000 Organization: Aioe.org NNTP Server Lines: 41 Message-ID: References: <87twfk93vu.fsf@Equus.decebal.nl> <874m7k86ll.fsf@Equus.decebal.nl> NNTP-Posting-Host: YQRXa3Jyda5ulJ59FdP57g.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:35020 On 21/07/2016 05:14, Cecil Westerhof wrote: > 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 What is this "Swing" that you speak of? The only graphical toolkit being developed by Oracle for Java is JavaFX. Shouldn't be trying to crop JavaFX images? -- And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]