Forums Register Login

Portability issue in Swing

+Pie Number of slices to send: Send
I have developed an application in swings with lot of components and Text on Windows NT platform. That application has to run on various platforms including Linux.
Though the Swing components are rendering well on both platforms but the problem is with Fonts. Fonts gets change on both platforms and due to it they are not showing in Buttons etc as they should be.
How to make fonts platform independent. I'm not able to solve this problem for a long time. Please help.
TIA
Ashish Agarwal
+Pie Number of slices to send: Send
Hi Ashish,
I also faced the same problem, but i solved that by changing the font properties in font.properties file in jre/lib directories, its working fine in Linux.
If you want that pls give me your mail id, i will mail you.
My ID
vsshiva@hmastarware.com
Shiva.
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 842 times.
Similar Threads
What are the benefits to using the SWING class?
Translucent and Opaque components
Font not available error on Linux
call an tool in my interface without calling its framework on which it is built
Default font is bigger on Mac/Linux than Windows
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:40:01.