Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: How do you scale a JCheckBox? Date: Sat, 20 Jan 2018 09:49:29 +0100 Organization: A noiseless patient Spider Lines: 16 Message-ID: References: <316fc0bc-d954-41c1-b913-3dd6e52e902a@googlegroups.com> <985fa054-03a9-4490-a298-a0df9ac4171f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 20 Jan 2018 08:49:53 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="9132d76747f79d2c70c7d63a12a493ba"; logging-data="9272"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NE1LZnsSiTzNuTyIfELO1" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 In-Reply-To: <985fa054-03a9-4490-a298-a0df9ac4171f@googlegroups.com> X-Antivirus-Status: Clean Content-Language: en-GB X-Antivirus: AVG (VPS 180119-0, 01/19/2018), Outbound message Cancel-Lock: sha1:J676LExiKzWY3QVnCS7ML6ry7mc= Xref: csiph.com comp.lang.java.programmer:37961 On 2018-01-19 22:13, Eric Douglas wrote: > On Friday, January 19, 2018 at 8:29:18 AM UTC-5, Eric Douglas wrote: >> I've tried searching and found others had the same problem but no clear solution. I tried digging into the code that draws it but it doesn't look good. I resize a window ie pull up a window on a Surface Pro and set view to 300% and all JComponents change size, except for the box portion of the JCheckBoxes. >> > > Any ideas? Seems to me you've already found the answer to your question: the JCheckbox icon doesn't change size because, drumroll... it's an icon. I believe there should be a way for you to change the icon used by the JCheckbox component without any UI-specific code, probably via some Swing property. I'd look into that if I were you. -- DF.