swing + MAC OS

B

bumsys

Most of dialogs are too small and do not show all information. But for
windows and linux all is ok. Does anybody know the reason?
 
M

mirko.ebert

Most of dialogs are too small and do not show all information. But for
windows and linux all is ok. Does anybody know the reason?

What L&F and Java you use?
 
J

John B. Matthews

What L&F and Java you use?

Good question, although I don't see many problems just from setting a
particular L&F. More often, it's poorly constructed (or null) layouts
that are hard-wired to accommodate particular physical fonts with
idiosyncratic metrics. In contrast, the SwingSet2 demo adjusts nicely to
dynamic changes in the L&F.

Of course, a <http://pscode.org/sscce.html> from the OP would clarify
the matter.
 
R

Roedy Green

Most of dialogs are too small and do not show all information. But for
windows and linux all is ok. Does anybody know the reason?

I think the essential problem is the definition of font size. A 12
point font is not necessarily the same number of pixels tall for all
fonts. The font designer decides on a secret multiplier to how tall
his font actually renders.

This is unacceptable for WORA. I think Sun needs to fix this by
supporting a new Font constructor that determines font size in pixels.

The way I handled it in my own apps was leaving about 10% slop for the
Mac.

This reminds me, I tightened things up with out thinking in two apps
recently.
--
Roedy Green Canadian Mind Products
http://mindprod.com

"Here is a point of no return after which warming becomes unstoppable
and we are probably going to sail right through it.
It is the point at which anthropogenic (human-caused) warming triggers
huge releases of carbon dioxide from warming oceans, or similar releases
of both carbon dioxide and methane from melting permafrost, or both.
Most climate scientists think that point lies not far beyond 2°C (4°F) C hotter."
~ Gwynne Dyer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top