Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #37961

Re: How do you scale a JCheckBox?

From Daniele Futtorovic <da.futt.news@laposte.net>
Newsgroups comp.lang.java.programmer
Subject Re: How do you scale a JCheckBox?
Date 2018-01-20 09:49 +0100
Organization A noiseless patient Spider
Message-ID <p3uvrh$91o$1@dont-email.me> (permalink)
References <316fc0bc-d954-41c1-b913-3dd6e52e902a@googlegroups.com> <985fa054-03a9-4490-a298-a0df9ac4171f@googlegroups.com>

Show all headers | View raw


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?  <snip />

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.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How do you scale a JCheckBox? Eric Douglas <e.d.programmer@gmail.com> - 2018-01-19 05:28 -0800
  Re: How do you scale a JCheckBox? Eric Douglas <e.d.programmer@gmail.com> - 2018-01-19 13:13 -0800
    Re: How do you scale a JCheckBox? Daniele Futtorovic <da.futt.news@laposte.net> - 2018-01-20 09:49 +0100
      Re: How do you scale a JCheckBox? Eric Douglas <e.d.programmer@gmail.com> - 2018-01-22 04:56 -0800
    Re: How do you scale a JCheckBox? Eric Douglas <e.d.programmer@gmail.com> - 2018-01-22 08:54 -0800
  Re: How do you scale a JCheckBox? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-01-21 14:05 -0600
    Re: How do you scale a JCheckBox? Eric Douglas <e.d.programmer@gmail.com> - 2018-01-22 07:25 -0800
      Re: How do you scale a JCheckBox? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-01-22 11:38 -0600
        Re: How do you scale a JCheckBox? Eric Douglas <e.d.programmer@gmail.com> - 2018-01-22 10:17 -0800
        Re: How do you scale a JCheckBox? Eric Douglas <e.d.programmer@gmail.com> - 2018-01-22 12:49 -0800
          Re: How do you scale a JCheckBox? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-01-22 15:31 -0600
  Re: How do you scale a JCheckBox? j4n bur53 <janburse@fastmail.fm> - 2018-01-22 22:37 +0100
    Re: How do you scale a JCheckBox? bursejan@gmail.com - 2018-01-22 14:16 -0800
      Re: How do you scale a JCheckBox? bursejan@gmail.com - 2018-01-22 14:18 -0800

csiph-web