URGENT: Entering Chinese into Java Text Area

Hi,
This might be an FAQ question but some of the info I've gotten over the web so far is conflicting.
How do I allow a user to enter Chinese text into a Java Text Area (using an english keyboard)?
All my users have:
English Windows 2000 with a multilanguage pack. I cannot change this.
But, I can specify any downloads (IMEs, etc.) and I can choose whichever version of Java I desire.
Please let me know what is the simplist way to enable Chinese data entry in this environment. Let me know if I need to create my own input type :( or I can use MS Global IME) or if there are other third party chinese input types (even if they are not free).
Thank you and have a nice day.
Best Regards,
Carlos

Thanks for the note. The news was depressing - but things are much clearer now :) I would like one more clarification, though -
On the MS site, I quote
Any user who needs to input East Asian text across the language platforms of Windows Me, Windows 98, Windows 95, or Windows NT 4.0 could use Global IME.
"Note: On Windows 2000, the Global IMEs work in any application since that OS has full-featured East Asian input support built in. On Windows Millennium, Windows 98, Windows 95, and Windows NT 4.0, the Global IMEs work only in supporting applications."
When they say they say "full-featured East Asian input support built-in" does that exclude Java? If it would work, would it work with Swing or only AWT?
Any thoughts? Thanks again for your not, I would greatly appreciate it if you could help me with this clarification.
Best Regards,
Carlos

Similar Messages

  • Flex4.5 SDK under Flash builder Burito doesnt dispatch Enter key event in Text Area anymore

    Flex 4.5 under Flash builder Burito doesnt dispatch 'Enter' key event in Text Area anymore, in prev version 4.1 it was working properly, this stopped working after migration to Burito + Flex SDK 4.5?
    What that suppose to be?

    Hi
    That's true that Flex4.5 SDK under Flash builder Burito doesn't listen Enter key in Text Area for KeyUp or KeyDown event.
    Here I found a work around you can use.
    Add an eventlistener to the component in actionscript and set the useCapture=true next to eventlistener function. Now you can listen enter key for KeyUp or KeyDown Event
    Hope this helps
    Rush-me

  • Can a script manually insert a delete (or backspace) into a text area?

    I'm new to action script, so this may have a simple answer, sorry if that's the case.
    I have a little movie created with a simple purpose of trying to mimic a system like cell phones have for character input.
    There are two text areas, one hidden off the screen that accepts the input from the user; a second text area in on screen and displays what the user had entered after some basic processing on the input.
    The hidden text area is pretty basic with listener that is responsible for grabbing the input keys and then mangling them to be inserted into the displayed text area based on the cell phone text entry multi-tap rules. Example user press 2-2-2  and the hidden input accepts 222 and then appends 'C' to the display text area. That's working great, but I have a problem if the user wants to delete from the display text area. I can't find a way to insert a delete or backspace key into the display text area. I've tried using StringFromCharCode (8) // Key.BACKSPACE, but that doesn't work. That just displays one of those undefined glyphs. I figure that things like clear, and delete are handled somewhere higher in the input chain and that's where I'm having a problem.
    I've looked, but I can't find a way to delete a single character from the text area. I was thinking if I could find the cursor location that I could just use some delete character method to get the job done, but I couldn't find how to do that.
    Any ideas on how to pull off manual delete function in a text area?

    Ned, I do really want to manually (by method of code) trigger a delete in a text area. The delete (or backspace) that I want added to the text area isn't directly entered by the user, it's the result of several key presses by the user. That's why I called it "manual" because it's done by the code, not by the user's direct input.
    Think about how text entry works on most phones... if you want to enter a letter you have to cycle through all the letters on a single key until you get to the character desired. As I stated before, if you want a 'c' you need to press 2 button 3 times. This is basically what I'm trying to do, but I want to add the ability to delete a character too if the correct sequence in entered, for example a sequence of ### would equal a backspace.
    Rothrock, I think you were thinking the same thing that a single key is used to do a backspace.
    I was thinking that I could possibly insert key event into the event queue for the text area to process, but I wasn't sure about that.
    Sorry, if this is confusing, I know it's not a straight forward design. I need onscreen and offscreen text areas with the onscreen one acting as a slave of the offscreen one.
    The way the code currently works is hidden text area had a listner that responds to changes, and that handler processes the key entered and deletes that character from the hidden text area. After the full sequence of characters (say 2 button has been pressed 3 times) the handler then sends the resulting character into the display text area. This part of the code works great. I can add any character including some specials like tab and newline. However if I want the text area to delete a character I don't have a way to do that. That's why I tried to insert the backspace key (0x08 or ^H, for other oldschoolers), but using that as a char code or string from char code doesn't work.
    I had also tried to create to set the focus to the display text area then create and dispatch a backspace keydown and keyup events to the visible text area and then return the focus back to the hidden textarea, but... no luck.

  • Error when pasting 1K of text into a text area of tabular form

    This appears to be a bug to me, put please offer suggestions if you have them....
    Using apex with XE, I have created a table with two varchar2(4000) columns in them. The user will paste large blocks of text into one or both of them (e.g paste text copied from e-mail).
    I created a tabular form and set the two fileds to display as "text area". Insert and/or update works fine unless I paste more than about 1 to 1.5 kbytes of text into one of these fileds, in which case I get a page not found error with the following URL:
    http://127.0.0.1:8080/apex/wwv_flow.accept
    After the error page displays, I can hit the back button and then remove just enough text to get it to under the 1 to 1.5 kbytes and then either insert or update works fine.
    One more bit of info. If I create a single row form then it works fine, it is only the multi-row tabular form that seems to have this issue.

    I don't think the character set is the problem. I used a string of numbers 0123456789 and just copied and pasted it repeatedly to build up the text. The database character set is WE8MSWIN1252.
    Regarding the apache log. I have to admit that I don't even know if I'm running apache. I am using a newly installed Oracle XE on a laptop in order to get some experience with application express. This app is the first one I've done. If someone will direct me to the log then I'll be glad to check it and post the relevent contents.
    I signed up for an apex workspace and intend to see if I can recreate the error from there so I can see if the problem is just in the free version of apex that comes with the Oracle Express Edition for windows database.

  • Cannot retrieve into text area!!

    please urgent....
    To make a text area that take text from the user in the dynamic page using the PL\SQL.i write this code:
    <oracle>
    declare
    text varchar2(500);
    begin
    htp.formtextarea('textareaname',10,50,null,null);
    text:= htf.formtextarea('textareaname',10,50,null,null);
    end;
    </oracle>
    and it work well. but i wish to display a text in it to the user. That is to say when the user run the dynamic page the textarea appear containg this text, and the text i want to display is stored in the database. How can i do that, how to retrieve text from the database into the text area???
    please answer me quickly.

    This is my pl/sql code:
    DECLARE
    V_USER VARCHAR2(25);
    BEGIN
    V_USER:=v('APP_USER');
    IF (:P8_COMMENT IS NOT NULL)
    THEN
    INSERT INTO COMMENTS(COMMENT,COMM_DATE,COMM_USER,REQUEST_ID)
    VALUES (:P8_COMMENT,SYSDATE,V_USER,:P8_ID_REQUEST);
    END IF;
    END;
    So, when I enter text into item :P8_COMMENT, and press my update button, it's like I haven't entered anything.
    Thank you.

  • Unable to enter text in text area box

    Hi all,
    I have an issue. unable to enter comments in the text area in the client side application while i can able to enter from my system. But when they login and logout they can able to enter.
    When they again comeback to the page they could not. It is very difficult to logout everytime.
    Is it a browser issue or any text area functionality?
    Browser is IE
    apex version is 4.0
    can anyone please help?
    Regards
    Raj.

    RajEndiran wrote:
    Hi all,
    I have an issue. unable to enter comments in the text area in the client side application while i can able to enter from my system. But when they login and logout they can able to enter.
    When they again comeback to the page they could not. It is very difficult to logout everytime.
    Is it a browser issue or any text area functionality?
    Browser is IE
    apex version is 4.0
    can anyone please help?
    Regards
    Raj.Wrong forum.
    Entering information into a form has nothing to do with SQL or PL/SQL.
    Try the apex forum: Oracle Application Express (APEX)

  • How to make html file on server side from the data entered in text area

    Hi!
    I want to know how to make .html file on server side. Like if i enter the data in text area ( or like we normaly see when we write mail that editor) and we can use html tages in it and when user submit form all the data in that field will be saved on server side as an html formate. Is it possible to do so??? or any ruff idea how to design it???

    Erm ...
    Whats the problem with that?!
    Ok, here the code ...
    String myparameter = request.getParameter("paramname");
    String htmltemplate = "<html>\n"
                         +"<head><title>demo</title></head>\n";
                         +"<body>@parametertag@</body>\n";
                         +"<html>";
    String htmlpage = htmltemplate.replaceAll("@parametertag@",myparameter);
    File yourHTMLfile = new File("wheredoyouwannagotoday.html");
    FileOutputStream fos = new FileOutputStream(yourHTMLfile);
    fos.write(htmlpage.getBytes());
    fos.close();You're done.
    Happy Coding! :-) &copy;

  • Using a Text Area for a Where In () Clause

    Hi Everyone!
    It has been awhile since I have done any Oracle ApEx development. This is because I work on the BI team and have been doing more ETL and Teradata development to support MicroStrategy reports.
    Having said that, I am attempting to upgrade an existing application with a bit of new functionality. I am trying to allow the user to enter a comma separated list of values (i.e: 12345, 67890, 112233, 44455566) into a text area on one page and have the report on the following page accept that input and use it to filter an interactive report.
    I am aware that users can filter an interactive report with the functionality built into the report itself, but some users have requested additional filtering as mentioned above before they actually see the report. My text area is called P10_TXT_ITMS. The code in the SQL for the interactive report is:
    AND (ITM_NUM IN :P12_HID_ITMLIST)
    When I enter a single number, it works beautifully. Unfortunately, however, entering a comma separated list 'breaks' the report. It says that the value entered into the text area is not a number. To combat this, I tried using to_char() on the column in the table in the comparison. Of course, this also did not work. I would have thought that the variable would have converted into a comma separated list and the where in clause would be totally valid, but it does not seem to behave that way.
    Does anyone have any thoughts or suggestions? Any help would be very much appreciated!
    Edited by: tgeorge on Jan 21, 2010 9:47 AM

    Hi,
    It treats it as one large string. Even with to_char it would be like:
    '12345' IN ('12345, 67890, 112233, 44455566'); as opposed to:
    '12345' IN ('12345', '67890', '112233', '44455566');
    You need to split the string up somehow.
    Edit: Possibly with the use of regexp_substr?
    Mike
    Edited by: Dird on Jan 21, 2010 3:53 PM

  • Display Text Area as Read Only

    Hello,
    I have about 5 forms, some of the forms have text areas with counters. All of my text area fields are pretty much set up the same way:
    width = 75, height= 6, max width = 500.
    When a user logs in with read only priv. the text areas turn change to read only. The problem is when I enter some data into a text area it will display across the screen. I need the text area to do word wrap. I have tried the following in the Read Only Element Table Cell Attribute.
    display:block; width: 400px; word-wrap: break-word; overflow:hiddenI have also tried to add some CSS to my HTML Header, which adds borders to all of the fields, which is not wanted and it doesn't word wrap.
    <style type="text/css">
    span.display_only {border:2px inset #D4D0C8; padding:1px 0px;}
    </style>Any help, is greatly appreciated.
    Mary
    Edited by: MaryM on Aug 25, 2010 11:58 AM

    They are page items all of them have character counters. The problem, comes when a user logs in with Read Only privelages, then the text area's turn to Read only. For example, if I enter something in the text box like (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxeeeeeeeeeeeeeeeeeeeeeee) it will display across the screen when a Read Only user logs in and looks at it. I need it to word wrap, when it is in Read Only mode. It will also display the same way if I change the field type to Display as Text ex: (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee), it will not word wrap.
    All of my text area boxes are varchar2 (300) or more in length. I need to be able to word word wrap. I was able to do with classic reports, using standard report columns and in the css I added the following:
    display:block; width:400px;word-wrap:break-word;overflow:hidden.Hope I explained this better.
    Mary
    Edited by: MaryM on Aug 25, 2010 12:25 PM

  • Possible to highlight a row in text area which in turn would fire an event?

    I'm making a GUI of which the main portion consists of a large text area. The text area would list problems that our company is experiencing - each row would represent a problem. Each row would give a problem ID and a description of the problem. I want to make it so that when the user clicks on a row (a problem), another dialog box would open which would present possible solutions to the user regarding the problem at hand. How would I write code to highlight a row which in turn would fire an event opening up another box?
    I thought about going about this another way - have a drop down (jcombobox) integrated into each row which the user can choose from but I'm not sure if you can insert a drop down into a text area (and neatly into a row at that!) so I think the former way may be preferable.
    Thanks in advance.
    Regards,
    Paul

    If a java application is required (as opposed to a web-based solution using HTML's linking capabilities) the best approach might be a JList implementation. It could go something like this...
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ListFrame extends JFrame
       public ListFrame()
          super("JList example frame");
          getContentPane().add(getListPanel(), BorderLayout.CENTER);
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          pack();
          setVisible(true);
       private Component getListPanel()
          JPanel panel = new JPanel(new BorderLayout());
          final JList list = new JList(new Object[]
             "List option 1...",
             "List option 2...",
             "List option 3..."
          // This will make sure only one item can be checked at a time.
          list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
          // Handle the selection here.
          list.addListSelectionListener(new ListSelectionListener()
             public void valueChanged(ListSelectionEvent e)
                // No need to go on if this was a deselection.
                if (e.getValueIsAdjusting() || list.isSelectionEmpty())
                   return;
                // This is where you would have to convert the value that's selected into whatever
                // it is you want to display to the user.  This example just puts the text of the
                // selected item into a messagebox.
                Object selectedItem = list.getSelectedValue();
                JOptionPane.showMessageDialog(ListFrame.this, selectedItem);
          list.setVisibleRowCount(5);
          // The scrollpane will control the scrolling of the list (so you can have as many options
          // as you want).  Standard JScrollPane functionalities can be used to control various
          // visual aspects of the list.     
          JScrollPane scroll = new JScrollPane(list);
          scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
          panel.add(scroll, BorderLayout.CENTER);
          return panel;
       public static void main(String[] args)
          new ListFrame();
    }I know this is quite after-the-fact, but I hope it helps (if you hadn't already solved the problem :) )

  • Redirecting output to a text area

    I am running a dos command in my java program using the runtime.exec and am wondering how I can capture the output that the program I am running produces and send it to a text area. I read somewhere where you can create a buffered reader and write that directly into my text area but I am not sure how to do this. Can anyone help me on how to do this or a better way to get the output to a text area?
    Thank You.
    Chris

    here's a snippet that may help.
    public class STDWIN extends JFrame
         Panel p;
         TextArea ta;
         TextField tf;
         public STDWIN()
         p = new Panel();
         ta = new TextArea(10,40);
         tf = new TextField(40);
         Button b = new Button("EXECUTE");
         p.setLayout(new BorderLayout(2,2));
         p.add(ta,BorderLayout.NORTH);
         p.add(tf,BorderLayout.CENTER);
         p.add(b, BorderLayout.SOUTH);
         getContentPane().add(p);
         pack(); show();
         b.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
              doYoThang();
         public void doYoThang()
         try {
              Process p =      Runtime.getRuntime().exec(tf.getText());
         StringBuffer buff = new StringBuffer();
         BufferedReader br = new BufferedReader(
              p.getInputStream());
         while(br.readLine() != null)
              buff.append(br.readLine());
         ta.setText(new String(buff));
         } catch(Exception e) { }
    this is very primitive and not stable i'm sure but it should give you an idea of what you want to do.
    --Ian
         

  • Create text area item within code in PLSQL region

    I want to embed a text area item within a region that is purely PLSQL. I want the text area to appear within the region at a specific place I am defining by my PLSQL. I have been able to create the look I want but haven't been able to process what the user enters into the text area.
    What I have now is something like this:
    p_string := p_string || '<table width="100%"><tr><td><u>Comments:</u> ' || '<textarea name="p_t06" cols="100" rows="4" wrap="virtual" id="P15_COMMENTS" value=' || a1.arb_comments || '></textarea>'' || '</td></tr></table>';
    I get the display I want but I can't do anything with the contents of :P15_COMMENTS. I presume I need an <input> tag? Is there a way to do this?
    Thanks.
    Bill

    any replies on this?

  • Posting Combo Box to Text Area

    Hello
    I am doing a Java project for school and have come across a snag. I have a program the takes input in several Text Fields plus one Combo Box. Then the Store Button is pressed (registered action listener) the data is displayed in a Text Area. I can get the Fields to display but am unable to get the selected item in the Combo Box to display into the Text Area. I have been told that the Combo Box data in an object and I have to cast it into a string. Problem is that I am unsure how to do that.
    Thanks in advance.
    Craig in Ontario.

    selection = (String)box.getSelectedItem();The (String) casts the selection.

  • How to assign the output of a function to a text area: a PLSQL challenge

    I have a function that returns a PLSQL table of varchar4(4000)
    Here is its signature in a package:
    create or replace package researcher_request_pk
    is
    TYPE query_table_type is table of varchar2(4000) index by binary_integer;
    FUNCTION RequestSQL(P_RRQ_ID in number) return query_table_type;
    end;
    I use this to get around the 32k limit on clobs and varchar2 variables
    I want to assign the output of the function to a text area. I've tried the following PLSQL in a dynamic action and also as the source attribute of the Text Area but it doesn't populate the text area.
    Here is the code i'm using
    declare
    v_table researcher_request_pk.query_table_type;
    begin
    v_table:=researcher_request_pk.RequestSQL(:P64_RRQ_ID);
    for i in 1..v_table.count loop
    htp.prn(v_table(i));
    end loop;
    end;
    Any ideas on the correct syntax to do this?
    thanks in advance
    PaulP

    Thanks for your reply
    The function does populate the PLSQL table with data. e.g. If I place that exact code in a PLSQL region it generates the output on the screen with no problems. The problem is just generating the output into the text area.
    I want the text area to display the output of the PLSQL table (-a dynamic select SQL statement) which I then plan to execute to return records.( i.e. I've build my own runtime query builder)
    My plan is to allow the user to edit the SQL output first before sending the statement for execution.
    Funnily enough I do get the very first word of the first cell appearing, namely 'SELECT' but nothing else. Maybe the "||" that follows has something to do with the rest of it not appearing?? hmmm... will experiment more.
    thanks
    PaulP

  • How to remove the last new line in text area ?

    I have a calculator Applet that shows the calculation in a text area.
    if i enter 2+6, the text area shows
    2+
    6
    and i have a clear last button, which deletes the last entry by user.
    in the example above, one hit of clear last, deletes 6. another hit should delete +.
    I can delete the numbers, but I don't know how to go back to the previous line and delete the operator.
    I may have other calculations in that text area above the current calculation. so replaceAll("\n","") would not work here.
    Please someone help me here.

    it's an applet, i am developing in Eclipse ( mac environment)
    so for deleting a number i used this code, and works fine
    String temp = t.getText();
                             String lastChar = temp.substring(temp.length()-1);
                             for (int i=0; i<numbers.length; i++) // deleting a number
                                  if (lastChar.equals(numbers)){
                                       temp = temp.substring(0,temp.length()-1);
                                       number = number.substring(0,number.length()-1);
                                       t.setText(temp);
    which t is the text area, and numbers is the string array of 0 to 9, and number is a string where i store the entered number
    so i thought for deleting an operator i should use something similar, where i need to go back to the previous line and delete it,
    String temp = t.getText();
                             String lastChar = temp.substring(temp.length()-1);
                             if(lastChar.equals("n")){
                                                            temp = temp.substring(0,temp.length()-3);// deleting n , \ , and the operator
                                       t.setText(temp);
                             } but it doesn't work

Maybe you are looking for

  • Custom classloader fails when using Java Web Start

    Hope you can help me with a problem that is driving me nuts. I have implemented my own classloader to support plugins. This classloader works as follows: 1. The classloader is configured to access a plugin components jar file downloaded by jws. 2. Th

  • File "iTunes Library.itl" HELP!!!

    OK, so I tried 2 be slick about this iTunes thing, and I did a System Restore on my comp. Reinstalled iTunes 6.0.5, but now I can't open iTunes, and I keep getting this message: The file "i Tunes Library.itl" cannot be read because it was created by

  • ERROR: NO_GUEST: Guest login not allowed from client startup

    we are getting the following error with express 6.3.4 when connectting to the express server from Objects using a connection editor. The error message is Error #12150 in XPCUBE: Non-fatal (0300): Data Manager is unable to generate transmission. Error

  • Uninstalling Oracle Client 8.0.5.0 And Getting Error - Please Help

    Hi Gang I have installed the Oracle 8.0.5.0 client on a server and now I can't get it off. When I run the install program and select everything to uninstall, it starts to process and then gives me the following error. It was not possible to find a va

  • One simple question for Apple Configurator

    Hi ! I was wondering if possible to adjust setting on a Ipad anytime i wish by wifi. I always doing my setting for the profile when my ipad is plug (USB) in my mac mini. I wish that i can change the setting for all profile without the need to plug in