Path: csiph.com!news.swapon.de!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: Fri, 22 Jul 2016 04:21:18 +0200 Organization: Decebal Computing Lines: 20 Message-ID: <87mvla4dlt.fsf@Equus.decebal.nl> References: <87twfk93vu.fsf@Equus.decebal.nl> <8737n36ucx.fsf@Equus.decebal.nl> <878twu6i0l.fsf@Equus.decebal.nl> <87vazy4zm2.fsf@Equus.decebal.nl> <87r3am4q2l.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="4572"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/A40t0Sq7DAxT4eCfbWbckNEJ63+Qda4A=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:xHlfyNHI+d8xmt+c/EOQtoCvV4Q= sha1:zgDDe8Q12LPT7MECMSIFjdHxCUg= Xref: csiph.com comp.lang.java.programmer:35077 On Friday 22 Jul 2016 02:35 CEST, Eric Sosman wrote: > Okay, I may have misinterpreted your need. However, it looks to me > as though your difficulty is self-inflicted by your insistence on > using absolute positioning. If you used a layout manager instead, > you'd just setPreferredSize() on the image-displaying panel (which > might well have a null layout manager), and Swing would figure out > the dimensions of title bars, menu bars, scroll bars, sand bars, > stars and bars, and all the rest. > > But since you want to use absolute positioning, well, ... (Shrug.) No, I do not want to use absolute positioning, but without it I did not get it working. I now use BoxLayout, I am not there yet, but I am on the right path. I still have a few quirks. I will post those soon. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof