Article View: borland.public.jbuilder.java.swing
Article #401a common yet hard-to-resolved problem for Java GUI size!
From: neverknown
Date: Tue, 25 Oct 2005 07:52
Date: Tue, 25 Oct 2005 07:52
21 lines
2042 bytes
2042 bytes
The Java application GUI (setPreferSize to some hardcoded dimension) gets smaller when it comes to wide screen (Dell 16:9 laptop), and the users have to resize the GUI every time they are launched (so as to see the action buttons). This problem seems to happen for 16:9 wide screen so far, but may also happen when it comes to monitor with non default setups. Question: 1. What are the factors deciding the swing (awt) GUI size, besides resolution and font? Is wide screen really an individual factor? 2. How to formulate a universal good GUI size? Or any examples to define different sizes for different display-cases? Thought the following functions might be needed, although I heard that Toolkit.getScreenResolution() cannot really detect screen resolution. Toolkit.getScreenResolution(), Toolkit.getScreenSize(), getFontSize() Any example or information will be highly appreciated!
Technical Details
Message-ID:
<1130226774.736937.112150@g14g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 111d45,be040464abc7003,start X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail From: "neverknown" <to.zhengli@gmail.com> Newsgroups: borland.public.jbuilder.java.swing Subject: a common yet hard-to-resolved problem for Java GUI size! Date: 25 Oct 2005 00:52:54 -0700 Organization: http://groups.google.com Lines: 22 Message-ID: <1130226774.736937.112150@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: 68.41.141.179 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1130226779 12852 127.0.0.1 (25 Oct 2005 07:52:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 25 Oct 2005 07:52:59 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=68.41.141.179; posting-account=95k84g0AAAC-F7sv5wcnRSoUeQQFoiZG