The final solution to greek characters in AWT applets(????)

OK. I have searched the whole web and asked whoever I knew. The question was simple: How do I show greek characters in a TextField in an AWT Applet? Some people said that I should change the font properties inside MY jre/lib installation but then I want EVERYONE and not just ME seeing the greek characters! Adding a greek font into the applet's jar was another "solution" but who wants to have an applet of about 2MBs? So I think I have come up to the answer ... ONLY with jre > 1.4.0 somebody could handle greek characters in AWT Applets without trooble! If somebody has managed to show and handle greek characters in a TextField inside an AWT Applet (which I doubt), I would like to know EXACTLY HOW as I am tired of non-working "solutions"! I hope this post saves you from a lot of time searching for the HolyGrail

I haven't worked with a TextField but I worked with a JTextField. My solution wasn't very straightforward but it did the job.
I used this solution in order to work with linux, but you must add an if
statement to check the OS.
If your problem was how to view Greek characters in a non internation version of
Java, then as far as I know, you cannot! Also JDK 1.3.1_01 and j2re 1.4.0_01
use a different way of loading system fonts, so with the latter you cannot use system fonts unless you put them in you java directory.
(I use linux so don't be surprissed if these work different in windows)
import java.io.*;
public class JTextFieldGr extends javax.swing.JTextField {
public JTextFieldGr() {
super();
myInit();
public JTextFieldGr(String text) {
super(text);
myInit();
public void myInit() {
addKeyListener(new java.awt.event.KeyListener() {
public void keyTyped(java.awt.event.KeyEvent evt){
try{
String tmp=""+evt.getKeyChar();
String uk=new String(tmp.getBytes(),"ISO-8859-7");
evt.setKeyChar(uk.charAt(0));
}catch(UnsupportedEncodingException e){
e.printStackTrace();
public void keyPressed(java.awt.event.KeyEvent evt){
public void keyReleased(java.awt.event.KeyEvent evt){
}

Similar Messages

  • Waiting the best solution to strange characters for non-latin songs?

    I've tried to find a solution to the "Strange Characters" when importing songs with non-latin characters (I'm fan of greek music)... I`ve changed the ID3 tags to 2.4 and nothing happened...should I wait for the upgrade?

    On re-reading and following your directions, I really should have given you 10 pts. for that answer, Tom, and not 5.  I'd somehow misunderstood the glyph view, thinking it was only a matrix of a certain standard, limited set of symbols, like arrow dingbats and such. I see the way it works now, and it's quite practical.
    Thanks very much.
    Rob

  • ITunes Music Store Not Working for Windows XP? !!!!!The Final Solution!!!!!

    It IS a firewall problem. Most likely.
    A lot of people on these forums kept assuring us "it's your firewall settings" that's causing the problem, while others resentfully responded back with "but I turned mine off, that's not the problem"
    Well, yes, it most likely is the problem. I was in the same situation. iTMS wouldn't open for me and so i turned my firewall settings off on Norton, and it still wouldn't work. I didn't think I needed to bother with changing my firewall settings to add itunes since I wasn't even running it my firewall anymore.
    But out of desperation I decided to open Norton Internet Security, click on my firewall settings by pressing "configure" and then click "permit all" for iTunes.
    And it actually worked. For me. At least. But hey, I was cussing Apple for days until I tried this ...
    Dell Dimension 9100   Windows XP  

    I was getting the exact same thing with my 2nd generation Shuffle after I installed Itunes 8.1 to my computer. Couldnt load my Ipod at all.
    I was reading over in http://discussions.apple.com/thread.jspa?threadID=1244785&tstart=0 and tried what the guy suggested. I created a playlist of the songs I wanted to load to my Ipod, then clicked on my Ipod. I set the Ipod to autofill from the playlist I set up, then hit the Autofill button. I unplugged my USB mouse, waited 2 seconds, then plugged my mouse back in. Miraculously the playlist began to get loaded onto my Ipod and I can use it again. Unfortunately I have to do this every time I want to add or remove something from the Ipod, but hopefully Apple will fix this sometime soon (hint, hint!).

  • I can't see the Greek characters using ADOBE reader

    Dear colleagues,
    Your help will be appreciated for the following problem:
    I have a tool which converts IBM I (AS400) spool file to PDF.
    The file has been copied to Windows environment.
    On generated PDF I can’t see the Greek characters using ADOBE reader v10.1.4.
    If I use Notepad to display the file, I can see the Greek characters.
    It seems that following PDF keywords are not recognized form PDF reader.
    /BaseFont /Courier
    /Encoding /WinAnsiEncoding  
    I have tried to use various fonts and encoding (cp1253, ISO8859-7) with no luck.
    On PDF reader folder there is the following file:C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\win\CP1253.TXT
    I believe somehow to tell PDF reader to use this encoding.
    What actions required on our Win/PDF environment setup?
    What actions required on PDF file generation? (/BaseFont, /Enconding, etc)

    Too many assumptions! It is much, much more complicated than your attempted solutions. The PDF Reference shows the contents of WinAnsiEncoding; this is as for your first example. I feel you probably need to spend very much more time reading this book.
    In the second example you are using a different code page (or other encoding method) to view the data. This is not going to help you because WinAnsiEncoding is fixed in all environments and does not use the code page.
    To use greek characters you will need the PDF to
    - use fonts which contain greek characters (the built in Courier PostScript font probably does not)
    - use an Encoding which references the greek characters. There are no built-in encodings that do this
    You cannot make simple cosmetic changes to this file to do this. The style of simplified font with no FontDescriptor can be used only for the built-in 14 fonts, which cannot be used with a greek encoding.
    Commonly, a combination of the greek letters in the Symbol font and the Latin letters in another font are used by constant font switching. This is of course only a solution for Greek, not other non-Latin alphabets.

  • When i send an email in greek characters the receiver gets only questionmarks.  how can i troubleshoot this?

    when i send an email in greek characters the receiver gets only question marks.  how can i troubleshoot this?

    Microsoft has finally addressed this issue!
    You need to download and install the 14.2.4 update (110MB) for Office 2011 from here: http://www.microsoft.com/en-us/download/details.aspx?id=34690
    Unfortunately, if you have been lazy with updating you will also need to download:
    Service Pack 1 (14.1.0), 247MB: http://www.microsoft.com/en-us/download/details.aspx?id=17198
    [Service Pack 2 (14.2.0), 110MB: http://www.microsoft.com/en-us/download/details.aspx?id=29419 -> you don't have to download this]
    Update 14.2.3, 110MB: http://www.microsoft.com/en-us/download/details.aspx?id=30214
    These are all pre-required...
    This update adds the ability to select a default text encoding for composing new messages.The encoding that is selected in composing preferences will be applied to all new messages that are sent from Mac Outlook. To access composing preferences, select Outlook, select Preferences, and then select Composing. The new preference is Preferred encoding for new messages. (From: http://support.microsoft.com/kb/2742588/en-us?fr=1 )

  • I have a project that crashed on me when I was about to finish it. When I try to reopen Final Cut Pro it wouldn't open until I took the project out of the Final Cut Project folder. Can somebody tell me if this is a problem that has a solution? I cannot

    I have a project that crashed on me when I was about to finish it. When I try to reopen Final Cut Pro it wouldn't open until I took the project out of the Final Cut Project folder. Can somebody tell me if this is a problem that has a solution? I cannot go back to the project at all.

    If you are using 10.0.3 or above Apple added a backups folder that for a little extra protection in cases like this. If you quite FCPX go to your Final Cut Pro Projects folder. Find the folder that has the project in question. If it has a backups folder there should be a file with a date stamp and .fcpproject extention, that is your back-up. Just move the back-up from that folder one folder up to the place where you deleted CurrentVersion.fcpproject from.  When I have had to do this I haven't renamed the backup but some people to recomend that you rename it to CurrentVersion.fcpproject and it seems to work both ways. Ofcourse it wont work if there is already a CurrenVersion file there you will need to delete that one first.
    If you don't have the backups folder or there is nothing in it I am not sure if there is anything that can be done.

  • For some reason the Apple ID window in iTunes  and App Store now seems to have a character number constraint. As a result I am unable to enter the final few characters of my Apple ID which I have had for many years. Does anyone know what has caused this?

    For some reason the Apple ID window in iTunes and App Store now seems to suddenly have a character number constraint which prevents me using my 29 character Apple ID. As a result I am unable to enter the final few characters of my Apple ID which I have had for many years. Does anyone know what has caused this?

    You need to ask Apple for assistance with getting back into your old ID. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to resolve this issue through the Account Security team, fill out and submit this form.
    (118441)

  • When i send an email with greek characters in the body, the recipient receive it in an unreadable form.

    When i send an email with greek characters in the body, many recipients (not all) cannot read it.
    At the same time when i use the internet mail it can be read successfully by the recipient.
    I have already checked the encoding settings in the Fonts in order to be "unicode (UTF-8)".
    What else can i check?
    Thanks in advance.
    e.g:
    From: Eleni Kontomari [email address removed by moderator Andrew]
    Sent: Thursday, February 27, 2014 12:33 PM
    To: "Nikos Totsios (Ηλεκτρονική διεύθυνση)"; "Giannis Diokarantos (Ηλεκτρονική διεύθυνση)"; "Dimitris Papadopoulos (Ηλεκτρονική διεύθυνση)"; Vassilis Gounaris; "Vassos Efthymiadis (Ηλεκτρονική διεύθυνση)"; Νικηφόρος Κεκρίδης; Ιωάννης Αθανασόπουλος; "Alexis Katsivas (Ηλεκτρονική διεύθυνση)"; Μιχάλης Παπαοικονόμου; Fomesa Hellas; "Χρήστος Σπηλιάδης (Ηλεκτρονική διεύθυνση)"; Δημήτρης Μπενάκης; "Ν. Γαλάνης"; [email protected]; "Αποστόλης Σαμούδης (Ηλεκτρονική διεύθυνση)"; "Β. Ντουρτόγλου (Ηλεκτρονική διεύθυνση)"; [email protected]; [email protected]; "Φοίβη Λεγάκι (Ηλεκτρονική διεύθυνση)"; "Παναγιώτης Κουμεντάκος (Ηλεκτρονική διεύθυνση)"; Σπύρος Ζαφείρης; Hans- Joachim Henn; "Κώστας Αλεξανδρόπουλος (Ηλεκτρονική διεύθυνση)"; [email protected]; [email protected]
    Subject: ΠΡΟΣΚΛΗΣΗ ΤΑΚΤΙΚΗΣ ΓΕΝΙΚΗΣ ΣΥΝΕΛΕΥΣΗΣ ΕΣΥΦ
    ... 13 2014.
    ''Please read [[Forum rules and guidelines]] when posting a question in a public forum''

    There are some language add ons that support emails from other languages that you can check out: [https://addons.mozilla.org/en-us/thunderbird/extensions/language-support/?sort=popular]
    The recipient, if they also use thunderbird may need to have a language pack to read the email: [https://addons.mozilla.org/en-US/thunderbird/language-tools/]
    You may also need to have them check their interpreter to make sure the email is being received in the same format it is being sent.

  • Special characters being read from the unicode file for greek language

    Hi All,
    I have a report which would upload a unicode file and then update the vendor master data accordingly.
    The file contains greek characters too.
    when the file is being read in the code, some special characters are being added up to the vendor number which is the first entry. The special characters are not included in the file , but are added up only to the first vendor number and not any other vendor numbers.
    The logic that is being used is as follows :
    TRY.
          IF unicode IS INITIAL.
            IF codepage IS INITIAL.
    *-->      For backward compatibility where this FM might be called from
    *         other dependent objects (FMs/dynamic subroutines)
    *         which donot have access to  user's input w.r.t Unicode parameters
              OPEN DATASET filename FOR INPUT
                   IN LEGACY TEXT MODE
                   MESSAGE msg
                   REPLACEMENT CHARACTER repl_char
                   IGNORING CONVERSION ERRORS
                   FILTER filter.                         
            ELSE.
    *--> System in non-unicode and Unicode Environment (Phases I and II)
              OPEN DATASET filename FOR INPUT
                   IN LEGACY TEXT MODE CODE PAGE codepage MESSAGE msg
                   REPLACEMENT CHARACTER repl_char
                   IGNORING CONVERSION ERRORS
                   FILTER filter.                          
            ENDIF.
          ELSE.
    *-->  Extract File in Unicode format - Phase III
            OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING UTF-8
            MESSAGE msg
            FILTER filter.                                 
          ENDIF.
          IF sy-subrc NE 0.
            MESSAGE e001(zuni) WITH filename sy-subrc
             RAISING file_open_error.
          ENDIF.
    the unicode parameters used are : codepage = 8000.
    An early reply is most appreciated.
    Regards,
    Manu.

    Please check SAP notes for Eastern European Characters in Unicode system. and may be below code helps you
    DATA:
        ltp_bom                  TYPE sychar01,
        ltp_encoding             TYPE sychar01,
        ltp_codepage             TYPE cpcodepage.
    Processing --------------------------------------------------------- *
      TRY.
          CALL METHOD cl_abap_file_utilities=>check_utf8
            EXPORTING
              file_name         = itp_filename
              max_kb            = -1
              all_if_7bit_ascii = abap_true
            IMPORTING
              bom               = ltp_bom
              encoding          = ltp_encoding.
        CATCH cx_sy_file_open .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_open_error.
        CATCH cx_sy_file_authority .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_authority_error.
        CATCH cx_sy_file_io .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_io_error.
      ENDTRY.
      CASE ltp_encoding.
        WHEN cl_abap_file_utilities=>encoding_utf8
          OR cl_abap_file_utilities=>encoding_7bit_ascii.
          CASE ltp_bom.
            WHEN cl_abap_file_utilities=>no_bom.
              OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
                ENCODING UTF-8.
            WHEN cl_abap_file_utilities=>bom_utf8.
              OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
                ENCODING UTF-8
                  SKIPPING BYTE-ORDER MARK.
            WHEN cl_abap_file_utilities=>bom_utf16_be.
              ltp_codepage = '4102'.
              OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
                BIG ENDIAN CODE PAGE ltp_codepage.
            WHEN cl_abap_file_utilities=>bom_utf16_le.
              ltp_codepage = '4103'.
              OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
                LITTLE ENDIAN CODE PAGE ltp_codepage.
            WHEN OTHERS.
              OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
                ENCODING UTF-8.
          ENDCASE.
        WHEN OTHERS.
          OPEN DATASET itp_filename FOR INPUT IN LEGACY TEXT MODE.
      ENDCASE.
    Edited by: Nilesh Shete on May 7, 2010 5:29 PM

  • Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type a

    Dear Team,
    Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank you

    Hello,
    most recent patches for IGS and kernel installed. Now it works.

  • How do I insert Greek characters from the character viewer in Lion?

    In Lion, the Character Viewer shows many more options for different characters than SL.  Of course, it displays Latin, but, as I scientist I often need to insert Greek characters, but I cannot find Greek characters in the Character Viewer.  I don't otherwise need to select Greek as a language.  Inserting Greek characters from some applications like MS Word still works.
    And ... while I'm here ... what happened to the "insert" button?  -j

    Click the gear icon to edit your list:
    Select Customize List:
    and check "Greek"

  • I can't download the final cut pro's update in AppleStore. Have a solution ?

    Hello,
    I can't download the final cut pro's update in AppleStore. Have a solution ?
    Thx

    Is the application in your Purchases page? Are you signed in to the App Store using the Apple ID that purchased the software?

  • To All those suffering with the 4G LTE Router..Final Solutions (Disconnections, etc)

    I wanted to post an update for everyone on this forum.. I've had several threads in here about my MBR Disconnecting randomly as well as it not
    passing traffic for Citrix clients, etc.  I've spoke with some high level VZ techs and managers and found that this is all related to the firmware on
    the units. The upper level people at VZ know this MBR is garbage in it's current state and are looking to get a new firmware release out soon..
    who knows how soon.  The techs I worked with said the only solution for they have been able to provide is either to: 1. Assign a Static IP to the
    device (which costs a lot) or 2. Try a new SIM card.   The tech I worked with handles business accts only and he personally has helped over 20 people with this same exact issue.  He said there are definite problems with the firmware and this device shouldn't have been released until these items were fixed.
    I wish they would tell the poor 1st level VZ techs this same info. You can do all the resets/reboots you want and it's not going to fix the problem.
    He also stated the firmware is so flaky that what works in one instance will almost never work somewhere else.. it's completely random.
    Since my company does over spends over a million dollars a year with VZ they were able to get me a Static IP address..but I wasn't even able to
    change the APN in the settings. He also said this is flaky bc some MBRs let you change it and others do not (even with the same firmware).  The
    static IP is supposed to be automatically assigned when the device is reset to factory defaults so I tried that about 50 times and it still didn't work.
    I even tried the NON-VZ Netgear N300 unit I had purchased as a test and I was able to put in the correct APN, but it too would not pull the static IP
    even after several factory resets over a 2 day period. Both units were total garbage..
    Finally I tried putting the SIM into an old Pantech UML290 USB modem I had and guess what??? It immediately pulled the Static IP and worked
    perfectly.  I've been running the UML290 in an old Cradlepoint router and the service has been FLAWLESS for over a week now.. NO DROPPED
    connections, NO FLAKY traffic blocking, etc.  Just works perfect as it should.. So I'm sorry to say this but until VZ comes out with a new firmware
    release for this 4G Router you are out of luck.   I plan on using this current UML290 + Cradlepoint setup indefinitely or until they prove the issues
    with the 4G router are fixed.  Wish I had better news,, but hopefully this will save some of you from sitting on hold with VZ tech support for days
    as they run you in circles and tell you to call Netgear to fix the problems....

    Excellent post creosote7, thank you very much!  Fortunately I came in here first before even trying to talk by phone to anyone about this.  I have exactly the issues you describe ... inability to play nice with Citrix VPN, and constant drop-offs, connection unavailables, etc.  Being the old Microsoft tech that I am, I just reboot the device and wait until it connects again, after which is usually good for an hour or so.  But I have it connected to a backup battery, so I know it's not flakiness from poor line condition.
    What really puzzles me is how it worked fine for a week and then dies, just as AshLee52 reports.  I looked at my usage, and sure enough it was working fine enough to pull about a gig a day for the first 7 days I had it (I had to learn the hard way that my company put MozyPro on my laptop and set it to back up 4GB a day. AGGGH).  But then all of a sudden it drops off.  This smells very highly of Verizon throttling us rather than a firmware issue.
    That said, firmware updates have been the fix for me for many a switch, router, and pc problem over the years, let's hope you're right and they release something soon. 
    Thank goodnes I kept my DSL ... it's slower but has been my lifeline for getting my job done.  For anyone reading, I happen to also have a Verizon 4G wireless hotspot (the little hocky puck style) as well which works fantastically at the same location, so the connectivity issues are definitely tied to this LTE Home router or the VZ home service.

  • I need to record two camera interview shoots and turn the video around quickly. What is the best solution using a MacBook Pro and final cut pro?

    I need to record two camera interview shoots and turn the video around quickly. What is the best solution using a MacBook Pro and final cut pro?

    Try reimporting all your media: file>>import>>reimport>>continue

  • Report printing in Greek characters after changing Font

    Hi All,
    We had a bunch of reports created in 'Courier New' font whose output type is PDF. The users wanted the reports to print in 'Arial' font. When I changed the same from Courier New to Arial and ran the report , the report is printing in Greek characters instead of English. I initially thought that it prints in Greek may be because of insufficient space or something for the text fields but there seems to be sufficient spaces to print characters. I tried reducing the size and still the reports prints in Greek in lower size.
    Can anyone let me know how to get rid of this?
    Thanks,
    Srini.

    See if the solution in the following thread applies to you:
    Problem converting font to .afm using ttf2pt1

Maybe you are looking for

  • Can no longer connect to internet on my iTouch

    I have had my iTouch for just over a year and had no problems connecting to the internet at home and elsewhere. I had to purchase a new router recently and now my Touch no longer connects. It finds the network with no problem but when I enter my pass

  • PDF file "save as" issue

    Unable to save PDF documents to any of the folders from the Web link. If I try to save the file, a error message pops up.... The Document could not be saved. The operation is not permitted. But I could save the same file directly from the link by rig

  • IN JSp : How to validate textbox of same name?

    Hi.. Im having doubt in jsp & its urgent need for me..help out... Im having multiple html textbox of same name. Onclicking that textbox i have to call one JS page that creates calendar window which returns date to same textbox after selection. For si

  • Basic questions about Oracle CEP

    Hi there, We are considering different alternatives for handling some business rules for our educational platform and I am not sure Oracle CEP would be a viable option (I have read a few things on the internet about it), let me elaborate: We have use

  • User exit  or Badi for VL31N (create inbound delivery)

    Dear friends.           I wish to add a check before saving in the transaction VL31N for that  i need to know user exit or BADI..can you help me to know what possible user exit or badi available for this task.. your suggestion and article will be gre