The Font of awt component  and g.drawString(...) why not the same size??

hi,all
In my applet, there are many awt component,such as Button,Choice,and many string draw by paint() method.in windows platform,the awt component and the draw string has the same default font size,
but in Mac os x, the awt Compoment's font size is bigger than the draw string's font size,so the user interface is very ugly,
because of large amount of applets,set ervery component or draw string's font size is very difficult.
is there any way to solute this question? someoen has tell me to modified the jvm's parameter of Max os x,
but i cound not find where to setting the font parameter?
please help me! thanks.

Call g.setFont(myFont) before DrawString.
You could try to call getFont() on one of your awt components, or code this table:String os=System.getProperty("os.name");
os.indexOf()  Font(name)
Macintosh     Charcoal
Unix          (Dont know)
Windows       MS Sans SerifgetFont is preferred.

Similar Messages

  • The application can "not initialize the application's security component" and so Firefox will not open any more... PLEASE ADVISE!!

    One day while trying to run the firefox application a box popped up and said:
    "Could not initialize the application's security component. The most likely cause is problems with the files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem."
    Ive tried everything and even deleted and then reinstalled firefox... We miss it!!

    Please try
    * disabling any background anti-virus software you have, as it may be using Firefox files while it loads and prevent it from reading them
    * following the steps at [[Could not initialize the browser security component]]

  • How do I enlarge the font in messages received and sent?  I have it set at "13", but it is very, very small on my screen.  I can't seem to change the appearance of the tool bar even when I try to "customize".

    How do I enlarge the font in messages received and sent?  I have the font set at "13", but the appearance on my screen is very, very small.  When I try to "customize the toolbar" to look like the tool bar above this message, I am unable to do so.  Please advise.  Thank you.

    Thanks MartinR, yes the Toggle bars can be adjusted so that I can see all the tracks - just in the smallest setting - however this also creates a huge area of grey which serves no other purpose than to "use up screen space". If this is deliberate then there is nothing one can do - since presumably the additional profit made on screen sales is more important to Apple, than the combined annoyance to those working on a 13" laptop. Of course a 15" screen or even 17" screen may make this wastage less obvious. Please indicate that this is all incorrect and explain why it is important to have space waiting "for additional tracks", even if I have no intention of making additional tracks. If that is the answer then perhaps additional space to the left and right of the timeline would be useful in case I wish to make a 30 minute film, so that it could be placed there without having to drag anything. It may be that I am expecting software than can be tailor adjusted, each parameter to the desired level as in professional items and since this is a cheap consumer program it is not possible.
    I bought Final Cut Pro for a lot of money (when it first appeared it was thousands and not just hundreds) but never used it since it was too complicated and tedious, but maybe there, this problem of screen wastage does not occurr, perhaps someone can advise! I could go back and reinstall it, but it was made for 10.2.8 and not 10.6.8 so it would not run on this macbook. I recently bought an old 15" TitaniumPowerbook (from 2005) and despite running at 1MHz the response time on it is "instantaneous" - amazing to not have the almost half second delay on many commands - graphics appear nearly immediately (just 5 milliseconds delay) and this makes working so much more enjoyable, not having the (350ms) stutter of 10.6.8 which we all get used to after our initial disappointment.
    Thanks for your help!

  • When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the test and change the font, it does not change it properly?

    When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the text and change the font, it does not change it properly? This is making it impossible to amend.

    Hi Janedance1,
    If the PDF that you converted already has searchable text, please try disabling OCR as described in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel. (If the PDF was created from a scanned document and doesn't already have searchable text, disabling OCR isn't a great option, as the text won't be searchable/editable in the converted Word doc.)
    Please let us know how it goes.
    Best,
    Sara

  • All the fonts are in caps and the cap lock is not on.  PSE 8

    all the fonts are in caps and the cap lock is not on.  PSE 8  Why is this happening and how do I fix it?

    Suggest that you reset preferences. This will frequently correct things like you are experiencing.
    Windows
    Step 1. Hold down the Alt + Ctrl + Shift keys as you click on the icon to open Elements. When asked if you want to delete the settings file, say yes.
    Step 2. Reset the preferences .
    Step 3. Close Elements and let the file regenerate.

  • TS1347 Just downloaded ios7 on my iPad2. Hate that I cannot see the items in my calendar. The letters are way too small and are grey in color. I need the fonts to be dark and very defined...I have health issues-poor vision.

    Just downloaded ios7 on my iPad2. Hate that I cannot see the items in my calendar. The letters are way too small and are grey in color. I need the fonts to be dark and very defined...I have health issues-poor vision.

    Settings>General>Accessibility>Increase Contrast
    Settings>General>Accessibility>Bold Text
    are some settings that may help.
    There are other settings there ...they may not be to your liking but try them all anyways.
    But that's about all you can do for now...except to voice your opinion to Apple here:
    http://www.apple.com/feedback/ipad.html

  • Cant get the font on PDF document and alignment

    I cant get the font on PDF document and alignment eventhough I have margins to 0 still getting some space from the top and left side.
    I have added fonts to CF Admin and restarted too still same issue. I am able to see fonts are added in CF Admin.

    I suspect there is a little bit of padding between the HTML content and the edge of the PDF page. You could solve the problem by specifying the fonts and margins using the HTML style property, like this, for example:
    <cfdocument format="PDF" pageType="A4" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0">
    <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <style>
            body{font-family:arial,sans-serif;font-size:100%;margin-top: 0px; margin-left: 0px; padding: 0;}
            p{font-family:"Times New Roman", Times, serif;font-size:14px}
        </style>
    </head>
    <body>
    <!--- Content of your document --->
    </body>   
    </cfdocument>

  • Does anyone know if I can change the font on Word to 13? When I highlight the text and type in 13 it automaticall reverts back to 12. I have a MacBook Air.

    Does anyone know if I can change the font on Word to 13? When I highlight the text and type in 13 it automaticall reverts back to 12. I have a MacBook Air.

    hit command + A to highight all text, type in 13 in the font size box.

  • I have a 22 inch monitor set at 150% but since I installed Firefox, the font is too small and the screen is too small. Cannot make font or screen larger. I can do Control++ each time I enter a page but don't want that to be my solution.

    In control panel/display, I had my display set at 150% and at 1680 X 1050 resolution. This filled my 22 inch screen with the page content. Now that I have installed Firefox, the font is too small and the content is centered in the screen leaving about3" per side of blank space. I want to fill the screen and make everything larger. Haven't found a way to do that. Firefox tells me in my control panel/display window that by setting my display at 150%, "some items may not fit in your screen if you choose this setting while your display is set to this resolution. It worked fine with Explorer.

    The Firefox Page Zoom feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • When opening Firefox 6 I receive 2 JavaScript Application errors; the 1st is "TypeError: Component.classes[TvtPwmComponent_CID] is undefined". The 2nd error is; "TypeError:Components.classes[componentid] is undefined." How can I correct these errors?

    When opening Firefox 6 I receive 2 JavaScript Application errors; the 1st is "TypeError: Component.classes['''TvtPwmComponent_CID'''] is undefined". The 2nd error is; "TypeError:Components.classes['''componentid'''] is undefined." and upon closing Firefox 6 I receive the following JavaScript error; "ReferenceError:'''M_caFxTBobj''' is not defined."

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • HT201401 my earphones are not working on my iphone4 to play, stop or forward to other tracks or answering a call and i know its not the earphones as ive just paid out for a new pair at £27.99 and still wont work anybody got any advice as fed up honestly

    anyone can you help my earphones are not working on my iphone4 and i know its not the earphones has just bought new pair and no joy  I can not play, stop, forward to different tracks or anything cant answer call nothing end of ideas can anyone help pretty please

    Yes there genuine apple earphones I have now blown down jack slot and silly enough I turned my phone off and now it's back on earphones working properly now feeling a wee but silly as such a simple thing got them working.
    Thank you guys and I know where to come again if I need any further assistance.
    Again thank you everyone  

  • Can not see my Airport in the list of Wifi networks and is blinking organge all the time

    Can not see my airport on the list of WiFi networks and is blinking orange all the time. Tried to reset several times.

    Do you have a Mac or idevice for setting up the Express? It does require a later utility than is available for windows.
    You might be able to setup with the v5 utility in windows but there is no guarantee.
    You should use a simple name both for the base and the wireless. eg AEXgen2 base name and AEXwifi for wireless name.. that is if you get access.

  • TS5376 I'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.

    'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.  I have even done a repair to see if that works and it has not.  Has anyone else found a new way to get it working?

    Try Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Convert the spool to xls format and email through attachment to the user

    Hi all,
    When I execute a report in background, I get spool. I need to convert the spool to xls format and email through attachment to the user.The xls file should not be saved on local system.
    If I use the Spool Recepient tab in SM37 it mails the spool list as .txt file to the mail receipient. But I need to send it as an .xls file.
    Can any one help me on this

    Did you get the solution? i have the same problem.

  • When I click on a result of a Google search and then go that web site, the Back button on the toolbar is grayed out and I cannot return to the search results.

    When using FF3.6 and making a Google search, when I click on a result and then go that web site, the Back button on the toolbar is grayed out and I cannot return to the search results without going to History. This does not happen all the time; about 1/2 of the time.
    This problem is not limited to Google, but occurs with other sites as well.

    If you are talking about searches from - http://www.google.com/ - are you logged into a Google account all the time? If so, check your "Search Settings" from the "gear" in the upper-right corner of that Google search page and see if you have '''Open search results in a new browser window.''' check-marked, at the bottom of that preferences page. When that is check-marked and you have Tab options in Firefox set to '''Open new windows in a new tab instead''', you will get search results always opening in a new tab instead of the same tab. As to why that works different for "sponsored links" I don't know, I haven't seen the "sponsored links" for years now, I have a GM script that blocks those advertisements.

Maybe you are looking for