Dynamically changing font - Ugly chars on Win 2000

Hi,
I wrote simple class called FontChooser (extends JDialog). It can be "plugged" into any JFrame to change font at runtime. Looks like ordinary font dialog, nothing special.
The FontChooser itself works (IMHO) just fine but I'm facing a problem: Almost all PLAIN fonts on Windows 2000 (sp4) have several ugly characters. For example Tahoma PLAIN 11 has ugly char '8'.
Strange is that BOLD fonts are always displayed OK - the ugly things are "covered".
The only font that's OK is Arial. (Any size, any style.) Brobably because it's the Swing default font.
Changing the font is done by this method:
* The method simply iterates through the table of  GUI keys and updates every key whose name ends with "font".
Thus, FontChooser is not able to deal with different fonts at the same time.
public void updateFontKeys(FontUIResource font) {
  UIDefaults def = UIManager.getDefaults();
  Enumeration en = def.keys();
  while(en.hasMoreElements()) {
    String key = en.nextElement().toString();
    if(key.toLowerCase().endsWith("font"))
      UIManager.put(key,font);
// Note: FontUIResource is just a new (Swing)
// "version" of java.awt.Font.I also tried to change Swing component's font using html
- instead of changing gui keys - but the result was the
same :o(
Any hint will be very appreciated :o) Thanks.

You can download FontChooser (with a simple demo app) from http://www.volny.cz/dojcland/gui/FontChoosing.zip
The archive includes binaries, source and javadoc.

Similar Messages

  • Have installed cc2014, menues are not fully visible. when changing font, system (all new sony vaio, win 8.1) crashes completely.

    have installed cc2014, menues are not fully visible. when changing font, system (all new sony vaio, win 8.1) crashes completely

    Dear Zak,
    thank you very much! Your information solved the problem immediately!
    Best regards,
    Philipp Frank
    New website
    www.philippfrank.at<http://www.philippfrank.at>
    Dipl Ing Philipp Frank
    1010 Wien
    Jakobergasse 4/14
    +43 1 513 22 83 19
    +43 650 250 5000
    [email protected]<mailto:[email protected]>
    www.philippfrank.at
    Von: Zak Williamson (Adobe)
    Gesendet: Montag, 23. Juni 2014 20:40
    An: Dipl Ing Philipp Frank
    Betreff:  have installed cc2014, menues are not fully visible. when changing font, system (all new sony vaio, win 8.1) crashes completely.
    have installed cc2014, menues are not fully visible. when changing font, system (all new sony vaio, win 8.1) crashes completely.
    created by Zak Williamson (Adobe)<https://forums.adobe.com/people/ZakWilliamson%28Adobe%29> in Help with using Adobe Muse CC - View the full discussion<https://forums.adobe.com/message/6488371#6488371>

  • Smartforms-Dynamic Change of Font Size in main window

    Hi Friends,
       How shall I be able to change dynamically the font size in main window of smartform. If the records are more in main window then the layout comes in 2 pages but if less in 1 page. So I want to decrease the font if the records are more to assign it in 1 page.
    Eg : I can print only 10 lines in 1 page of main window, but if the records exceed 10 lines it is going to next page, so I want to shrink the font size to maintain the layout in 1 page.
    Thanks & Regards,
    Somen
    Edited by: Das_SAP on Jun 23, 2009 7:59 AM

    Hi,
    SmartForms does not offer the option to set some characteristics at runtime. You must work with conditions in your form.
    First find out how many records you have in your table
    DESCRIBE TABLE mytable RECORDS sy-tfill.
    You create 2 texts nodes with the text to be output and assign the font and font size to them. Obviouly, one node will have a big font size and the other one a normal font size but both contain the same information and same variables.
    You can now work with an alternative. If the condition (there are many records for a secondpage) is true, assign text node with normal font size to option TRUE and the other text node to FALSE.
    Optionally, every text node has folder CONDITIONS, where you can say
    SY-TFILL >   10 lines  <-- for text node with normal font size
    SY-TFILL <= 10 lines  <-- for text node with big font size

  • Change font color in Report Code causes font size to change.

    I am trying to dynamically change the font color in a report, red for negative, green for positive and blue for 0. I have created a report region and here is my code:
    select city_name,
    py_re_taxable,cy_re_taxable,
    decode(sign(re_chg),-1,'<font color="red">'||re_chg||'</font>',
    0,'<font color="blue">'||re_chg||'</font>',
    1,'<font color="green">'||re_chg||'</font>','') RE_CHG
    from rc_dashboard_recap a, lk_city_code b
    where b.tax_year = :CURRENT_TAX_YEAR
    and a.city_code = b.city_code
    and userid = :GLOBAL_USER
    order by 1
    This code works great except it overrides my css text size and shows up as a page default size. I can't seem to figure out why this happens. This also happens when I try to sum a column. I've set my font size to 11 in my css and it is calling it correctly, however with the above code, my font size shows up at 12 or so.
    I am looking at the code (view source from my page and it shows the correct class
    <td class="t3dataalta" align="right" ><font color="red">-13.98</font>
    in my css:
    td.t3dataalta{font-size:11px;padding:2px;padding-left:5px;padding-right:5px;}
    If I remove the decode statements with the font color then my font size is correct, but I need to figure out how to make the colors work.
    Does anyone have any ideas?
    Thank You

    select city_name,
    py_re_taxable,cy_re_taxable,
    decode(sign(re_chg),-1,'font color="red"'||re_chg||'/font',
    0,'font color="blue"'||re_chg||'/font',
    1,'font color="green"'||re_chg||'/font','') RE_CHG
    from rc_dashboard_recap a, lk_city_code b
    where b.tax_year = :CURRENT_TAX_YEAR
    and a.city_code = b.city_code
    and userid = :GLOBAL_USER
    order by 1
    Here is my query, I removed the < and > signs in the code so that you could see what I have done.

  • Motion 3 - Crashes every time I try to change font

    I'm having trouble with Motion on my Mac Pro at work. I'm trying to create a title graphic. I can create a text layer and type the text, but when I choose the font drop-down list from the HUD, Motion crashes. Help! It's getting a little frustrating.

    hi
    i have been having the same problem. I went through my entire font list and disabled the ones it had a problem with. But then ones it was fine with before will crash it now. One way to absolutely make motion crash is to to use the Font menu in the text inspector and scroll down it to dynamically change the font. This will always crash it. The way round it is to get the menu up, pause and then scroll down and make a choice. This way the text object doesn't automatically update.
    If you look at the crash report in my case, it seems to related to a call to GetGlyphMetrics. This didnt happen before we had the glyph control we have in M4, so I can only assume there is something screwy with the code, now it is doing more with the text objects.
    not helpful, but you are not alone.
    adam

  • Related to creating pdf file through form6i in Win 2000

    I have created a form which will generate pdf file by calling a report. I am able to generate pdf files in platforms like Win 2000,Win NT,Win 98. But expect in Win 2000, I am able to read the pdf file in acrobat.
    The error displayed while opening pdf in acrobat is: There was a error processing this page,There was a problem to read this page (122).
    Form6i and Reports6i is installed in Win 2000 and acrobat reader version is 5.0
    Please answer my question immediately

    Sorry Im totally new to acrobat so this may seem like a daft question> I have scanned a document through a document feed scanner into a pdf format but some of the pages are orientated the wrong way within the pdf, is there a way to change the direction of pages and then save the whole pdf again so that everything is the right way round. I know that you can change the orintation while reading the pdf but as this is being put into web ct for students I would prefer for them not to have to do this.

  • Get Windows Folder Paths on Win 2000

    I downloaded the windows_folder_path.vi from NI site, where I can see that "This VI is supported on Windows 2000, XP, and Vista."
    If I use it in an executable that searches for Application Data folder, it works under XP, but it doesn't under a fresh Win 2000 SP4 installation.
    A pop-up with the message:
    Entry poin Not found
    The procedure entry point SaferGetPolicyInformation could not be located in the dynamic link library ADVAPI32.dll
    is shown.
    When I press the OK button, another popup
    LabVIEW: Resource not found.
    An error occurred loading VI 'windows_folder_path.vi'.
    LabVIEW load error code 3: Could not load front panel.
    I'm confused because here (MSDN, Microsoft Developer Network) I can see that  the SaferGetPolicyInformationfunction requires WinXP or Vista
    Isn't this vi expected working properly under Win 2000?
    In the next days I'll do the same test on a Vista machine, and I hope.... 
    How can I get the Application Data path on WinXP, 2000 and Vista? With different languages OS this folder has a different name (Application Data, Dati Applicazioni, ...) so I can't build the path by myself.
    I don't know if this helps, but I'm developing with LabVIEW 8.2.1and WinXP Pro
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded
    Solved!
    Go to Solution.

    Use the registry functions of LV to get direct access.
    The folders for the current logged in user is under:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre​ntVersion\Explorer\Shell Folders, the value is AppData
    The Fodlers for all users is under:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr​entVersion\Explorer\Shell Folders, the value is Common AppData
    Message Edited by waldemar.hersacher on 10-22-2008 10:10 AM
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it. help help help please - I have latest version of indesign - thanks

    I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it.
    Is it not possible to create a text box, fill it with dynamic (data driven) text, but make the font size either scale up or down automatically, so that the entire text box is filled? This is a feature in PrintShop Mail Pro called COPY FIT. but no such feature in Indesign??
    help help help please - I have latest version of indesign - thanks, DJ

    lol... it seems to work, but I have another huge problem!
    Apparently .CSV files cannot contain page breaks in the data! The data I am trying to merge is a 'letter', with paragraphs, line breaks, etc.,
    But, after data merging, it ignores page breaks and only merges the first paragraph of each letter. (sigh)
    Solution? Hopefully, an EASY solution. lol as we have thousands of records.
    Is there a third party indesign plugin that will allow .xml, or .xls data merge import??
    Thx,
    DJ

  • Enterprise Manager Console does not start on Win 2000 Pro

    I have installed Oracle 9i Release 2 Enterprise Manager on Win 2000 Professional. But the Enterprise Manager console does not start. Also the EM Configuration Assistant does not start.
    I have installed many times, but it is never successfull.
    I was installing Enterprise Edition -> General Purpose database.
    Tried the following from command prompt:
    oemapp.bat I get this message : "Usage: oemapp <application_name>"
    oemapp consoleI get : "bad command or file name"
    oemapp console oem.loginmode=standaloneI get : "bad command or file name"
    Is there any post installation configurations that need to be done?
    When I read thru the oemapp.bat, "Usage: oemapp <application_name>" was under the jreSetup module.
    Under C:\Program Files\Oracle\jre I have the folders with following Names(versions) 1.1.8 and 1.3.1.
    In the environment variable also I have C:\Program Files\Oracle\jre\1.1.8\bin and C:\Program Files\Oracle\jre\1.3.1\bin
    Could some one help me with this.
    Thanks,
    Aruna

    Marcus,
    Is your machine connected to a Novell network? If so, edit the oemapp.bat file and change every reference of Windows_NT to WINNT. The issue is Novell does not set the Windows_NT variable, and uses the WINNT variable instead.
    Jim

  • Dynamically changing internal table in 'gui_download'

    Hi Experts,
                     i have to download 4 internal tables, each with different structures, to the presentation server using 'gui_download', based on which radio-button is selected in the selection screen. I am hoping to use a single 'form' and 4 'perform' calls. how can I dynamically change the tables in the 'gui_download' function modules.
    plz help.....................

    Hi ,
    Build the field catalog dynamically based on the internal table structure based on the radio button selected.Use the dynamic internal table generated from the filedcatalog and use in GUI_DOWNLOAD.
    See the below code:
    *& Report  ZRAJESH02
    REPORT  zrajesh02.
    Dynamic internal table
    TYPE-POOLS: slis.
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                  <dyn_wa>.
    DATA: alv_fldcat TYPE slis_t_fieldcat_alv,
          it_fldcat TYPE lvc_t_fcat.
    DATA: lv_monate TYPE f,
          lv_months TYPE i,
          lv_date TYPE sy-datum,
          p_check1 type n value '1'.
    lv_date = sy-datum + 360.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_check TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      CALL FUNCTION 'MONTHS_BETWEEN_TWO_DATES'
        EXPORTING
          i_datum_bis   = lv_date
          i_datum_von   = sy-datum
          i_kz_incl_bis = ' '
        IMPORTING
          e_monate      = lv_monate.
      lv_months = lv_monate.
      PERFORM f_fcat USING 'AUFNR' 'CHAR' '12'.
      PERFORM f_fcat USING 'POSNR' 'CHAR' '06'.
      while p_check1 LE p_check.
      PERFORM f_fcat USING p_check1 'CHAR' '1'.
      p_check1 = p_check1 + 1.
      endwhile.
      PERFORM build_dyn_itab.
      LOOP AT <dyn_table> INTO <dyn_wa>.
        WRITE:/ <dyn_wa>.
      ENDLOOP.
    FORM f_fcat USING fieldname dattyp length.
      DATA:wa_it_fldcat TYPE lvc_s_fcat.
      CLEAR wa_it_fldcat.
      wa_it_fldcat-fieldname = fieldname.
      wa_it_fldcat-datatype = dattyp.
      wa_it_fldcat-intlen = length.
      APPEND wa_it_fldcat TO it_fldcat .
    ENDFORM.                    "f_fcat
    *&      Form  build_dyn_itab
          text
    FORM build_dyn_itab.
      DATA: new_table TYPE REF TO data,
      new_line TYPE REF TO data.
    wa_it_fldcat TYPE lvc_s_fcat.
    CLEAR wa_it_fldcat.
    wa_it_fldcat-fieldname = 'AUFNR'.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-intlen = 12.
    APPEND wa_it_fldcat TO it_fldcat .
    CLEAR wa_it_fldcat.
    wa_it_fldcat-fieldname = 'POSNR'.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-intlen = 6.
    APPEND wa_it_fldcat TO it_fldcat .
    Create dynamic internal table and assign to FS
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fldcat
        IMPORTING
          ep_table        = new_table.
      ASSIGN new_table->* TO <dyn_table>.
    Create dynamic work area and assign to FS
      CREATE DATA new_line LIKE LINE OF <dyn_table>.
      ASSIGN new_line->* TO <dyn_wa>.
    ENDFORM.                    "build_dyn_itab
    Thanks,
    Rajesh.

  • Delete an itunes account from a Win 2000 computer

    When trying to change the user id on an account I set up a second account. How do I delete this account? Computer is Win 2000
    Thanks in advance

    Does this help?
    http://docs.info.apple.com/article.html?artnum=300161

  • My typewriter toolbar is graying out the ability to change font size, type, and color.

    My typewriter toolbar is graying out the ability to change font size, type, and color.

    Here's what I have done in the past. Maybe not elegant, but
    it works. (I
    use PHP, but I'm sure you can modify for ASP.)
    In the HEAD of each web page, include regular old embedded
    STYLE tags,
    but INCLUDE an external PHP file:
    <head>
    <style type="text/css">
    <?php include('styles/testcss.php'); ?>
    </style>
    </head>
    Now in that included PHP file, just have CSS code which pulls
    in your
    dynamic data. Here's an example snippet:
    body {
    color: #600;
    background-color: <?php echo
    $row_recordset['bgcolor'];?>
    Of course, you'll need the code for the recordset somewhere
    too.
    Alec
    Adobe Community Expert

  • Win 2000 doesn't show netware printers

    I installed:
    A single Novell 5.0 Server with sp6a
    A Win 2000 PC with Novell client 4.92sp2 IP and IPX
    with some standard software as MS Office 2000, Adobe Acrobat Reader,
    Norman Antivirus, Java 1.5 and son more.
    Using the Windows printer wizard I choose "network printers"
    and "search for" printers. Windows shows only "Microsoft windows
    Printers" but no Novell Network and no Novell printer / queue.
    Using Network Neighborhood and going to NDS with the Printer icon Windows
    tells me, that I have to install this printer. Then it says, the printer
    coulnt be installed or isn't valid.
    From my WinXP prof. Notebook I have no problem to acces the Novell Printer.
    What's wrong?

    The problem is solved.
    A software called "NET SUPPORT SCHOLL 7.01" from PCI - Software hooks a
    part of the printer services. A senseless (!!!) DLL causes the problem.
    See the email following (from PCI) for a workaround. I had to restart the
    PC to for the changes to take effect.
    Thanks for your help!
    dear H. Wybranietz
    Thank you for contacting NetSupport Technical concerning Printing Issue on
    Novell via NetSupport School 7.01. This is not a problem usually found in
    NetSupport School and is usually only reported regarding NetSupport
    Manager, which includes a Print Capture feature.
    The problem you are experiencing relates to NetSupport attempting to Hook
    into the Print Driver in order to do this at start up we have to restart
    the Print Spooler service at startup. After reading through your problem it
    looks like the spooler service is not restarting.
    Therefore, could you please remove the INJLIB.DLL file from the machine -
    this will not cause any problems and will stop NetSupport from hooking into
    the Printer driver. Which means you will not have to keep restarting the
    Print Spooler service.
    The file INJLIB.dll is a NSM file but is included in NSS, removing this
    file from the system will not remove any functionality from NSS. Please
    follow the steps below:
    1) Go into C:\Program Files\NetSupport School
    2) Find a file called injlib.dll
    3) Rename this file to injlib.old
    4) Restart the Print Spooler service
    5) Restart the Client32 service
    > Sounds like something was not right with the client install here -- one
    > thing I'd do with the client install in any event, unless you are using
    > the NetWare server to connect to the internet or the server only has
    > TCPIP on it, you might well configure the client for custom install,
    > IPX only, and then deselect the additional pieces that you can use with
    > the client (ie you just want an NDS login).
    >
    >
    >
    > --
    > Barry Schnur
    > Novell Support Connection Volunteer Sysop

  • ODBC on WIN 2000

    I have a win 2000 machine that will make a oracle connection via IP but when I set up a System DSN I receive a tnsname error. This machine has no SQL net in the ORANT dir.. Oracle 8i

    I am seeing the exact same error on NT 4.0. The Tnsnames.ora file is configured correctly as we can tnsping, etc. Any Ideas? We have gotten this to work a few times. The SQL Trace shows the difference being the command SQL_CONNECT_NOPROMPT vs SQL_CONNECT_PROMPT. The NOPROMPT command works.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
    sql error start:NA000, Native Error Code:0 ODBC Error; [Microsoft][odbc drivers for Oracle][Oracle]
    Is this driver having touble locating my tnsnames.ora file?
    again, both drivers (MS and Oracle's, odbc) are on win 2000, Serv pack 1.
    <HR></BLOCKQUOTE>
    null

  • 8iLite on WIN/2000 -- navigator crash.

    Hi there,
    I installed Oracle 8iLite in a WIN/2000 laptop
    and tried to create a snapshot of a table hosted on our 8.1.7EE server running under Linux. I previously created a master group on the server containing the questionable table.
    Dragging and Dropping the table under the 8iLite Navigator from the server connection to the snapshot ssection of the 8i Database sresult in a rash of the navigator. Besides a
    dialog is shown telling me some errors, maybe from the server:
    REPAPI-26522: plsql r|c refresh context get failed
    REPAPI-26522: rpc execution failed
    ORA-06550: line1, column 10:
    PLS-00201: declarator 'SYS.DBMS_SNAP_REPAPI' must be declared
    ORA-06550: line1, column 10:
    PL/SQL: Statement ignored
    The last four lines are repeated...
    Any help appreciated....
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Hi there,
    I installed Oracle 8iLite in a WIN/2000 laptop
    and tried to create a snapshot of a table hosted on our 8.1.7EE server running under Linux. I previously created a master group on the server containing the questionable table.
    Dragging and Dropping the table under the 8iLite Navigator from the server connection to the snapshot ssection of the 8i Database sresult in a rash of the navigator. Besides a
    dialog is shown telling me some errors, maybe from the server:
    REPAPI-26522: plsql r|c refresh context get failed
    REPAPI-26522: rpc execution failed
    ORA-06550: line1, column 10:
    PLS-00201: declarator 'SYS.DBMS_SNAP_REPAPI' must be declared
    ORA-06550: line1, column 10:
    PL/SQL: Statement ignored
    The last four lines are repeated...
    Any help appreciated....<HR></BLOCKQUOTE>
    U need to set up propagator with the permission to execute those DBMS_REPxxxx packages.
    null

Maybe you are looking for