How to insert multilingual text

Problem Statement:
Inserting mutilingual text into a table. English, and other languages with the base script of English is perfectly fine. But what if the script is something like Japanese, Chinese, Korean etc?

You can't have different colors for different pieces of text. See the Swing tutorial on "General Rules for Using Text Components" for and example of how to do this using a JTextPane:
http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html

Similar Messages

  • How to insert sales text (MM02) into a single record of a Ztable.

    Hi,
    I'm extracting data from different data base tables and populating a Ztable which has Matnr as primary key and sales text as a field.
    I have already used READ_TEXT to display the text and it is displayed in multiple records which in turn leads to duplication of Material numbers.
    Now I want to avoid duplication of records (Matnr) as this being a primary record, and display the sales text of a particular material number into one single record.
    Can anyone tell me how to insert sales text (MM02) transaction into one single record.
    Thanks,
    Govind

    sorry i am not enough clear about your requirement...
    as i can understand i am explaining to you.
    suppose your itab contains repaeating matnr.
    matnr
    1
    1
    2
    2
    2
    3
    3
    like this.
    data : text(200),
             matnr like mara-matnr.
    loop at itab.
    call READ_TEXT fnmodule.
    loop at tline.
    concatenate text tline-tdline into text.
    endloop.
    matnr = itab-matnr.
    at end of matnr.
    itab1-matnr = matnr.
    itab1-text = text.
    append itab1.
    clear text.
    endat.
    endloop.
    NB change the code as per your requirement
    regards
    shiba dutta

  • How to Insert the Text in Selected Text Frame-Reg.

    Dear all,
    I am using the SnipperRunner - SDK, and create the TextFrame, but I can't insert the Text in the Particular Frame. so please give me the soultions,
    (*) Create TextFrame is ok,
    (*) Select TextFrame is also ok,
    (*) now, my Query ->
    How to Insert the Text in the Selected Frame?. (or)
    How to Link the Selectable Frame and my Text.? (or)
    How come to know the TextFrame is select?.
    Please any one can suggest me through the Coding....I will appreciate you...
    Thanks & Regards,
    T.R.Harihara SudhaN

    Hi,
    you have to get the TextModel associated with the textframe. Once you got that, ITextModel has an Insert()-method. You could also process kInsertTextCmdBoss - there are quite a few examples around. I believe WriteFishPrice also inserts text into a frame, just as an example. Good luck ...
    Bernt

  • How to insert vietnameese text in a form

    Hi all,
    How to insert Vietnamese text in a smartform since it is not supported by SAP.

    You can insert using standard text So10 call the standard text in your form where every it is required.
    Download text/language converter using google search. Convert text to your desired language and place it in SO10.
    close the thread once your question is answered.
    Regards,
    SaiRam

  • How to insert independent text column in pages ?

    hello,
    I have made a flyer from one of the templates in pages..
    What I wnat to do is insert another text colum indicated at the attachment. I just con not figure out how to do it.. It keeps insertin within the main text..
    any help will be appreciated.
    Gokce
    oopss.. how do we attache images here ?
    Message was edited by: Gokce

    Gokce,
    Have you tried inserting a text box? If not, click on View > Show Layout to enter the layout view. Click in the gray margin area to make your cursor disapppear. Then click on Insert > Text. The box will be defined as Fixed on Page (because you clicked in the margin area), allowing you to move it anywhere on the page. You can resize it to look just like a column, then put text in it.
    Hope this helps.
    -Dennis

  • How to insert a text edit UI element  in a table

    hi all,
    I want a text edit UI element in a table .I do not want input field because text entered can be very long and whole text cant be seen then.Is there any way to increase the width of input field if i insert an input field ? or what can be other solution for this?

    Hi Govind,
    You can't insert Text Edit as a cell variant in table. But you can increase the 'Width' property of Input Field, say to 500px or as per your requirement, so that you can display the full text at one go. Or you can bind the 'Width' property to a context and set the width at run time as per the text length.
    Thanks,
    Sumit

  • How to Insert a Text File in a jar file?

    Hi!,
    I have a program which runs smoothly both from the IDE and also from the .jar file when it is on the Hard Disk. When i copied everything onto a CD, the .jar file runs but when it comes to access a text file it pops up the message, which should pop up when a FileNotFoundException is encountered. Now i am using relative paths, in fact i tried to load the whole thing from a pen drive and it works fine as well. I think that if the text file is included in the jar file itself, it might work from the CD as well, but i dont know how to do it. can anyone pls tell me how i can solve this problem?
    Thx in advance, Spi_Mlt

    OK this might give you some trouble (gave me trouble for a long time) so I will try to help you.
    1. in your code load the file as a resources not a FileObject or a local stream, this is what I mean...
    A_stream_that_best_fits_your_needs = getClass().getResourceAsStream("fileName");
    // something like that...if you don't know streams google it2. put a copy of your text file in the same folder as the .java file that loads it and a copy where the .class file that loads it (if they are in the same directory then it just easier than for you).
    3. when compiling the jar include the text file in it!
    Hope that helps!

  • How to insert long text data in oracle for LONG column type??

    Anybody who can tell me what is best way to store long text (more than 8k) in Oralce table.
    I am using Long datatype for column but it still doenst let me insert longer strings.
    Also I am using ODP.Net.
    Anybody with a good suggestion???
    Thanks in advance

    Hi,
    Are you getting an error? If so, what?
    This works for me..
    Greg
    create table longtab(col1 varchar2(10), col2 long );
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    using System.Text;
    public class longwrite
    public static void Main()
    // make a long string
    StringBuilder sb = new StringBuilder();
    for (int i=0;i<55000;i++)
    sb.Append("a");
    sb.Append("Z");
    string indata = sb.ToString();
    Console.WriteLine("string length is {0}",indata .Length);
    // insert into database
    OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl");
    con.Open();
    OracleCommand cmd = new OracleCommand();
    cmd.CommandText = "insert into longtab values(1,:longparam)";
    cmd.Connection = con;
    OracleParameter longparam = new OracleParameter("longparam",OracleDbType.Long,indata .Length);
    longparam.Direction = ParameterDirection.Input;
    longparam.Value = indata ;
    cmd.Parameters.Add(longparam);
    cmd.ExecuteNonQuery();
    Console.WriteLine("insert complete");
    //now retrieve it
    cmd.CommandText = "select rowid,col2 from longtab where col1 = 1";
    OracleDataReader reader = cmd.ExecuteReader();
    reader.Read();
    string outdata = (string)reader.GetOracleString(1);
    Console.WriteLine("string length is {0}",outdata.Length);
    //Console.WriteLine("string is {0}",outdata);
    reader.Close();     
    con.Close();
    con.Close();
    }

  • How to insert formatted text in a JTextPane component?

    Hello,
    This is my first post in a java forum so i hope to get help :)
    Anyway, i am facing some problems in developping my project , the project consists of a tool to provide text editing allowing text formatting like MS Word , it allows different font style , size , color , text alignment...etc
    My program generates .html files i.e. the text formatting is obtained using html tags ...
    My problem is when the user opens the file again , any text formatting is unsaved, meaning, he MOSt continue typing using the same font size , style...etc any change in the format is unsensed and surely not saved in the html file .
    till now i can't doubt where exactly is my problem .. but i'll be here for any attempts to help me :)
    Thnx a lot

    unfortunately it doesn't work this way(or I am doing it wrong as I don't know anything about css)
    If I set white-space: nowrap the text is displayed in one single line ( so probably I implemented it the right way)
    but with white-space:pre he still ignores all the whitespaces!
    reading the same text (from a microsoft sql server table)with a textarea component all whitespaces and line breaks are shown! there has to be a way to make the static text or label component act this way(I don't want to use the textarea component because it's ugly and doesn't serve for my purpose).
    can anybody help me?
    edit: observation:
    if I use "nowrap" for the textarea component he still keeps all whitespaces WITHIN the string but displays the whole string in one line
    but somehow he deletes white spaces in the beginning of the string
    the static text/label components delete all whitespaces before AND within the string
    Edited by: Arthur... on Feb 15, 2008 9:34 AM

  • How to insert custom text inside a text object?.

    Hi, I'm trying to do something like this:
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, <DYNAMIC TEXT> essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    I need a text object (not sure if text, text field, or what type exactly is the correct one) and through a variable I need to modify the <DYNAMIC TEXT> part of the text, if I read correctly this is done using scripting.
    What I didn't find was a way to alter only the highlighted text, and not everything.
    This is to make a sort of contract, where some fields are subject to be modified, like names, dates, amounts, etc.
    Thanks in advance!.

    Duplicate the keyframes or use the SO multiple times with suitable staggering offsets. Or simply render it and reimport the resulting video/ image sequence.
    Mylenium

  • How to add custom texts in Office Templates   for  the COBRA form set up

    Hi,
    How to insert custom texts in the copied BDS form from COBRA set up. I could not edit the text. I can edit the contact numbers in the standard text and displaying after saving the document.
    I do not know how to proceed for this.
    Please share your valuable experience in this regard.
    Thank you,
    Ravi.

    Structure Ptk03 ,Ptk33 needs to be enhanced

  • Import(insert) formatted text(HTML) into document

    Hi guys, I have faceed with folowing problem:
    how to insert into text frame formatted text ?
    At Indesign desktop version this feature was able through pasting HTML from clippboard with appropriate settings of clippboard preferences. But at server version there is no such function.
    I have also invesigated XML import:  you can set up text and paragraph styles and map them with tags but this technique doesnt support nested styles for instance if you have <b><i>xxx</i></b> and appropriate styles "b" and "i" i will be applied to "xxx".
    So I need to insert html as it did clipboard pasting.
    Any thoughts ?

    Questions:
    1. What version of SQL Server are you using?
    2. Are you required to use a specific DTS package or do you simply need to import data from a file to a table?  You might also consider using the bcp utility or, if you are using 2005 or newer, integration services.
    3. Is the uploading of files and the import of data a manual process or is it automated?  Is there a user uploading one file at a time to your server or do you receive files in batches.  Can you describe the work flow?
    You might try the following if you are required to use DTS:
    1. Upload your text file with CFFILE, putting in the directory expected by your DTS package.
    2. Rename the file to the name required by your DTS package
    3. Use CFEXECUTE to run the DTS package by calling dtsrun at the command line.
    dtsrun
    http://msdn.microsoft.com/en-us/library/aa224467%28SQL.80%29.aspx
    bcp
    http://msdn.microsoft.com/en-us/library/aa174646%28SQL.80%29.aspx

  • Multilingual texts

    How to add multilingual texts for mass upload of equipments?

    Hi,
    To my knowledge if the requirment is bulk then try with "LSMW" technique and there use "IE08" the transaction code for Equipment creation
    reagrds
    DSR
    Edited by: D.Srinivasa Rao on Nov 14, 2011 6:34 AM

  • How to insert data into the mysql table by giving as a text file

    Hi,
    Any one know's how to insert data into the mysql table by giving as a text file as the input in JSP.Please respond ASAP.
    Thanks:)

    At least you can try StringTokenizer to parse your text files. Or download a text JDBC driver to parse your files, for instance, HXTT Text(www.hxtt.net) or StelsCSV(www.csv-jdbc.com).

  • How to insert new line in a text file

    hi all,
    i wnat to know how can i insert a new line in a text file using java.
    for example i want the formate of the text like this
    1 2 3
    4 5 6
    until now i know only how to insert data but not new line.
    Thanks in advandce

    Hi you can put a new line in a text file using System.getProperty("line.separator"). This implementation will work for every OS.
    import java.io.*;
    class Demo{
    public static void main(String args[]) throws Exception {
    FileWriter fr = new FileWriter("FileDemo.txt");
         fr.write("AAAAAAAAAA");
    fr.write(System.getProperty("line.separator"));
    fr.write("AAAAAAAAAAA");
    fr.close();
    }

Maybe you are looking for