Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Scaling java app Date: Mon, 21 Nov 2016 21:25:54 -0500 Organization: Aioe.org NNTP Server Lines: 23 Message-ID: References: <3b705f92-d63a-4062-a7e3-72bf4ac279bc@googlegroups.com> NNTP-Posting-Host: PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:35925 On 11/21/2016 9:22 PM, Jerry Stuckle wrote: > On 11/21/2016 7:23 PM, Knute Johnson wrote: >> The Windows look and feel will do some scaling of the frame and other >> bits. To get this to just work it looks like I'm going to have to >> change it from a Swing app to a JavaFX app where that sort of scaling is >> automatic. >> >> Thanks for all the suggestions everybody (Stefan too). The temporary >> workaround is to use the windows look and feel and scale the font based >> on screen size. > > Bad idea. You don't know the screen size - all you know is the number > of pixels in the window. It might be a 5" phone or a full-screen 27" > window. Phones usually do not support Swing. > Use percentages with CSS, if you must. Let the user pick the font size. Swing does not support CSS. JavaFX does. Arne