Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2156 > unrolled thread
| Started by | "Chanchal" <chanchal@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:37 +0000 |
| Last post | 2011-04-27 15:38 +0000 |
| Articles | 8 — 5 participants |
Back to article view | Back to comp.lang.java.gui
Swing application getting "Chanchal" <chanchal@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: Swing application get "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: Swing application get "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: Swing application get "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: Swing application get "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: Swing application get "Chanchal" <chanchal@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
Re: Swing application get "Karsten Lentzsch" <karsten.lentzsch@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
Re: Swing application get "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
| From | "Chanchal" <chanchal@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:37 +0000 |
| Subject | Swing application getting |
| Message-ID | <1185531730.382464.111940@k79g2000hse.googlegroups.com> |
To: comp.lang.java.gui
Hello All,
Kindly give me some input on how to make sure that Swing
applications adjusts the placememnt of screen elements as the monitor
resoulution changes, so that the UI will not become obscure.
Thanks in advance
Chanchal
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:37 +0000 |
| Subject | Re: Swing application get |
| Message-ID | <gkjja3l933kllf78m3gnosg3flk9cod7oa@4ax.com> |
| In reply to | #2156 |
To: comp.lang.java.gui >Kindly give me some input on how to make sure that Swing >applications adjusts the placememnt of screen elements as the monitor >resoulution changes, so that the UI will not become obscure. see http://mindprod.com/jgloss/resolution.html -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:37 +0000 |
| Subject | Re: Swing application get |
| Message-ID | <P_pqi.17347$5y.5721@newsfe18.lga> |
| In reply to | #2156 |
To: comp.lang.java.gui Chanchal wrote: > Hello All, > > Kindly give me some input on how to make sure that Swing > applications adjusts the placememnt of screen elements as the monitor > resoulution changes, so that the UI will not become obscure. > > Thanks in advance > > Chanchal > The short answer is you can't. The long answer is more complicated. If you are running XP you can change the DPI setting to help but it isn't going to fix it all. You can try scaling your components or using some third party libraries but it will be unending grief. The sad fact is that by the time the monitor resolution gets to 1600x1200 or larger the frames and controls will be unusably small. -- Knute Johnson email s/nospam/knute/ --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:37 +0000 |
| Subject | Re: Swing application get |
| Message-ID | <6esla3lecvjjodhn64ul9h1jq0qfdjgjsv@4ax.com> |
| In reply to | #2158 |
To: comp.lang.java.gui >The sad fact is >that by the time the monitor resolution gets to 1600x1200 or larger the >frames and controls will be unusably small. I have submitted an RFE for self-adjusting apps. -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:37 +0000 |
| Subject | Re: Swing application get |
| Message-ID | <JuGdnVOKj8WB6DbbnZ2dnUVZ_tijnZ2d@comcast.com> |
| In reply to | #2158 |
To: comp.lang.java.gui > The sad fact is that by the time the monitor resolution gets to 1600x1200 > or larger the frames and controls will be unusably small. Font sizes will adjust to the system DPI for theWindows L&Fs and the Mac L&F under Swing (on their corresponding systems, of course). It's easy enough to make your application's fonts adjust to the system DPI for other Swing L&Fs in a global way (and also provide user-adjustable global font scaling to help out users on systems where the DPI is unadjustable and inappropriate). Fixed sized margins and borders don't normally hurt usability for the range of monitor resolutions in common use, and can be scaled where necessary. Some icons can be self-drawn and auto-scaling, while others can be chosen from multiple-sized sets, though this is not frequently done. I operate at 1600x1200 on a 20 inch screen and dpi set to 144, and most Java apps that I use are fine, or at least scale appropriately under Windows L&F. I expect that 3200x2400 and 288 dpi on the same screen would result in some issues with tiny icons, tight margins, and nearly invisible borders for most Java applications. If monitors with that kind of resolution become common, many Java applications will need some reworking to make them usable. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Chanchal" <chanchal@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:38 +0000 |
| Subject | Re: Swing application get |
| Message-ID | <1188534892.379952.254150@i13g2000prf.googlegroups.com> |
| In reply to | #2163 |
To: comp.lang.java.gui thank you all verymuch for the valuable suggestions. i'll try these options. Chanchal --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Karsten Lentzsch" <karsten.lentzsch@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:38 +0000 |
| Subject | Re: Swing application get |
| Message-ID | <fb8kd1$i4i$01$1@news.t-online.com> |
| In reply to | #2163 |
To: comp.lang.java.gui Larry Barowski wrote: > [...] > Font sizes will adjust to the system DPI for theWindows L&Fs and the > Mac L&F under Swing (on their corresponding systems, of course). The Sun Windows L&f uses the default GUI font that scales with the software resolution, but doesn't honor the desktop setting for normal/large/extra large fonts. I provide a Windows L&f that uses the icon font by default that honors the software resolution as well as the desktop font size setting (normal/large/extra large). More precisely the JGoodies L&fs include a FontPolicy mechanism that is used to specify which font shall be used for a given platform, L&fs, and platform settings. > [...] Fixed sized margins and borders don't normally hurt > usability for the range of monitor resolutions in common use, and can be > scaled where necessary. [...] The range of monitors in teams I work with is about 78 dpi (hardware) up to 144 hardware dpi. This leads to significantly sizes on the higher dpi hardware. This affects borders, gaps, table column widths, custom preferred sizes for trees and lists. Therefore I use Dialog Units (DLU) for these sizes where possible. -Karsten Lentzsch --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Larry Barowski" <larry.barowski@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:38 +0000 |
| Subject | Re: Swing application get |
| Message-ID | <hNWdnXoAXvh_t0XbnZ2dnUVZ_t2inZ2d@comcast.com> |
| In reply to | #2346 |
To: comp.lang.java.gui "Karsten Lentzsch" <karsten@jgoodies.com> wrote in message news:fb8kd1$i4i$01$1@news.t-online.com... > Larry Barowski wrote: >> [...] Fixed sized margins and borders don't normally hurt >> usability for the range of monitor resolutions in common use, and can be >> scaled where necessary. [...] > > The range of monitors in teams I work with is about 78 dpi (hardware) > up to 144 hardware dpi. This leads to significantly sizes on the > higher dpi hardware. This affects borders, gaps, table column widths, > custom preferred sizes for trees and lists. > > Therefore I use Dialog Units (DLU) for these sizes where possible. For table column widths and preferred sizes for trees and lists, I always base the size on the font currently used in the table, tree, or list (assuming these items contain mostly text). It's a good idea to use a global base value for margins and possibly borders that can be keyed to the DPI or font size by default, but is also adjustable by the user, separately from the global font scale I mentioned before. If the user wants giant fonts and tiny margins, they should be able to have them. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web