Maximum line length in JTextAreas/Documents ?

Hi there,
apparently JTextAreas may not hold text with lines more than 32776 characters
(with line length I mean distance between line breaks :-). Is this a documented limitation or did I trap into a bug?
(Happened with 1.3.x and 1.4.x, Linux and Windows).
Kind Regards,
--Holger Klwitter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

See: [http://kenhamady.com/cru/archives/1240|http://kenhamady.com/cru/archives/1240]

Similar Messages

  • Director imposes maximum line length for text?

    I'm trying to learn Director again after years away and so much has changed. I can't find the answer for this after searching. To the best of my knowledge, I'm using the default installed settings for Dir. 11
    I've been opening and updating old Dir. 6.5 files in Dir 11 and the text gets mangled. Long lines (10-20 inches) of headline text get the right side chopped off. My new movie size is 2560x1550 (for 30" monitor).
    I'm trying to recreate these long lines of headline text (most are 48 pt helvetica x 20 + inches wide, some much bigger pt. size) by typing it in the text panel. This is difficult to describe: After 20 inches of text, according to the ruler, Director begins condensing the whole line, compacting it more as the text panel double-vertical-line expander bar is dragged right and expanded, opening the text field so lines don't break to a second line. Director alters the letter width and spacing of the line more as the panel expander is dragged to the right, basically smashing the line of text flush left more with every increment the panel is expanded right. If the text entry panel is expanded to the full width of my 30" monitor before typing any letters, then all the characters subsequently typed are distorted and compressed as they are typed in.  This occurs with every font.
    What is going on here? How to create  line of live text longer than 20" that Director doesn't smash together?
    TIA!
    Mac OS 10.5.8 / MacPro 2 x 2.26 GHz Quad-Core Intel Xeon / 6GB ram / 30" Apple Cinema Display / Director 11

    Hi,
    I'm not following what's happening. Could you attach a sample DIR with the problem text? Otherwise, you could email the file at [email protected]
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.deansdirectortutorials.com/
    http://www.multimediacreative.com.au

  • Line length limit

    Hi,
    I'm having a problem with a large group (about 2500 members). I first thougt this is a Directory Server Problem, but the Server Log is identical for small and large groups and does not show any problems. Additionally even if i put the group (with all members) into /etc/group, I still cant see the group!
    When using vi to edit /etc/group it sais: line too long.
    I figured out this to be a problem with the maximum line length defined in /usr/include/limits.h (LINE_MAX). The value set here is 2048, but my line is about 13K.
    Could my explanation be correct? If so, how can I change the line limit to a bigger value?
    thanks,
    David

    Hi Martin,
    I might not have explaned enough the issue. I dont want to edit the file with vi, this was just what I experienced on the side. My real problem is, that Solaris doesnt know this group, even though it is in /etc/group!
    id just shows the gid number, but not the group name:
    bash-2.05$ id
    uid=21345(ab123) gid=10000
    bash-2.05$ groups
    10000
    getent doesnt know the group too:
    bash-2.05$ getent group gp_everyone
    [No output]
    And this is constrained by the Solaris system as I think. Because of the limited line length. Do you know how to reconfigure Solaris 9 and 10 for a longer line length?
    big thanks
    --David                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I sporadically can't use certain Google features (Gmail, Documents, Calendar, etc.). The error I always get is "SSL received a record that exceeded the maximum permissible length. Error code: ssl_error_rx_record_too_long"

    SSL received a record that exceeded the maximum permissible length.
    Error code: ssl_error_rx_record_too_long
    I get the above message often (but not always) when trying to access my Gmail account, Google docs, calendar, etc. There's really no rhyme or reason for when it works vs. when it doesn't, but I've found that typing in something like "www.gmail.com" never works. When I use the history (or the search bar) it occasionally works.

    Just cleared out the cache and removed all cookies, but I'm getting the same error when I try to open my Google Calendar.
    (Gmail opened just fine a second ago)
    I'm a teacher and using my school-provided laptop from home. Could it be something with the school's network filter? (even though I'm not actually on their network)? How can I check?

  • Line items in a document entry

    Hi,
    there is restriction on line items for per document entry - i.e. 999.
    i would like to know if there is any update on the restriction in the enhancement packs.. or is it still 999.
    thank you
    - Vedavatee

    Check WIKI http://wiki.sdn.sap.com/wiki/display/ERPFI/Systemlimitationof999lineitemsperFIdocument
    Which Says
    Purpose
    The purpose of this WIKI is to explain a system limitation which does not allow you to have more than 999 line items per FI document, and also provide you with workarounds you can use to post your document.
    Overview
    When you are posting an FI document which has more than 999 line items, the system will issue an error message. This is due to the fact that the line item number field (BUZEI) in the BSEG table consists of 3 characters only and therefore the system cannot read more than 999 line items in the FI document.  There are some workarounds which can be done so that your document will be successfully posted in the system.
    System Limitation
    The FI document has more than 999 lines, the system issues error F5 807 ("Number of items in document is too large") or F5 727 ("Maximum number of items in FI reached"), and posting is not possible.
    There are no immediate plans to expand the number of line items beyond the current limit (999 lines per document). This is because the line item number (BSEG-BUZEI) field length is defined as 3 numeric positions (leading to a maximum possible number of 999 line items). The SAP development group is aware of this functionality change request, but the change is significant since BSEG is a cluster table which is used in numerous R/3 programs.
    Srinivas

  • Maximum Line Items

    Dear Experts,
    I have an issue,When I am running the daily consumption file through a note pad to SAP(As we have another system from where the datas are being derived) by a  Z report(developed),the error is showing maximum line items in FI has reached.
    The entry passed is :
    Consumption A/c Dr.
      To Raw Materials
    Please revert back with an appropriate solution which will be highly appreciated and will be awarded with points.
    Thank you

    Hi,
    Tthe limit for FI document is 999 (as line item number field is of length 3).  There are many ways you can address this depending on where you are comfortable; modifying the SAP program or the sending application.
    1.  If the sending application creates the file, then you can make the file from there in such a way that there are less than 999 items (both GL accounts combined).  So you will have multiple files generated from the source and these can be pulled in using the exisiting Z program.
    2. From the sending application itself, try and summarise the items based on a set of fields; say you can summarise entires based on material and date.
    3.  Modify the SAP program to break the file internally in the z program so that the number of line items are less than 999.
    4.  Do the summarisation in the Z program itself.
    Cheers.

  • Maximum line items at MI10

    Hi Experts,
    I am using call transaction/BDC of t-code MI10.
    Can any one please tell me what is the maximum number of materials/items I can post at once using t-code MI10?
    Thanks in advance.

    333, because each inventory posting can create 3 accounting lines, and the accounting document in FI has a field length of 3 digits, hence it can only take 999 items. so the inventory is limited to 333.

  • Set line length

    I belong to a travel discussion group and they request that all e-mails are received in plain text and with a 60 character per line limit. How do I set the line length to a maximum of 60 characters?

    Dear Diana,
    This seems really antiquated. I can't think of any discussion groups I belong to that ask you to set the line length of my contributions.
    Whatever. Since no one has replied to you, I offer a completely clunky way of doing this. I can't see where Mail has this capability/preference setting.
    Anyway, go to barebones software's web site and download the free application TextWrangler. It's just a text editing program. BBedit will do the job too but I'm assuming you don't have that.
    In TextWrangler, set up a document with a 60 character width (open a new document, go to Edit-->Text Options... and check "Soft Wrap Text" and under the "to character width" option put "60" in the box).
    You can save this document with a silly name so you don't have to create it every time you want to format a mail.
    Next, either compose a mail in the document or paste your text into it.
    It will be 60 characters wide at this point, but the breaks will be "soft"; you need to go to Text-->Add Line Breaks. Now you can copy your text and paste it into an email.
    This sounds like a lot of steps but it is easy. You could probably Applescript it.
    Anyway, there is probably a much better answer to your question, but I didn't want to leave you hanging longer. Once your problem leaves the front page it gets less and less attention.
    Also, note that in Mail preferences you can find the option to compose and send mails as plain text rather than rich text.
    G4 933 mhz Quicksilver   Mac OS X (10.4.8)   Wacom Intuos 2 tablet; Epson 2400 Photo; HP Deskjet 6840; LaCie 80gb D2 FWDV

  • How can i plot a histogram with using the results of Line Length

    PLS HELP.How can i prepare a histogram with using the results of line length code(It is somewhere in the middle).
    This is a final exam take-home question. I would appreciate if you can help?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.text.*;
    import java.io.File;
    public class WordAnalyser extends JFrame implements ActionListener
    private JMenuItem jmiAc, jmiSil, jmiCikis, jmiAnaliz, jmiHakkinda, jmiKullanim;
    private JTextArea jta1, jta2;
    private JFileChooser jFileChooser = new JFileChooser();
    File hafizada;
    File aktarilan = new File("Sonuc.txt");
    // Main method
    public static void main(String[] args)
    WordAnalyser frame = new WordAnalyser(); /* Ana ekran olusturulur */
    frame.setSize(400, 300); /* Degerleri belirlenir */
    frame.setVisible(true); /* Gorunebilirligi ayarlanir */
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    public WordAnalyser()
    setTitle("Serkan Ozgen Dosya Inceleme Programina Hos Geldiniz");
    JMenuBar mb = new JMenuBar();
    setJMenuBar(mb);
    JMenu fileMenu = new JMenu("Dosya");
    fileMenu.setMnemonic('F');
    mb.add(fileMenu);
    JMenu helpMenu = new JMenu("Degerlendirme");
    helpMenu.setMnemonic('H');
    mb.add(helpMenu);
    JMenu kullanimMenu = new JMenu("Kullanim Kilavuzu");
    mb.add(kullanimMenu);     
    fileMenu.add(jmiAc = new JMenuItem("Ac", 'A'));
    fileMenu.add(jmiSil = new JMenuItem("Sil", 'S'));
    fileMenu.add(jmiCikis = new JMenuItem("Cikis", 'C'));
    helpMenu.add(jmiAnaliz = new JMenuItem("Analiz", 'D'));
    helpMenu.add(jmiHakkinda = new JMenuItem("Hakkinda", 'H'));
    kullanimMenu.add(jmiKullanim = new JMenuItem("Kullanim"));     
    getContentPane().add(new JScrollPane(jta1 = new JTextArea()), BorderLayout.CENTER);
    getContentPane().add(jta2 = new JTextArea(), BorderLayout.SOUTH);
    jmiAc.addActionListener(this);
    jmiSil.addActionListener(this);
    jmiCikis.addActionListener(this);
    jmiAnaliz.addActionListener(this);
    jmiHakkinda.addActionListener(this);
    jmiKullanim.addActionListener(this);
    public void actionPerformed(ActionEvent e)
    String actionCommand = e.getActionCommand();
    if (e.getSource() instanceof JMenuItem)
    if ("Ac".equals(actionCommand))
    Ac();
    else if ("Sil".equals(actionCommand))
    Sil();
    else if ("Cikis".equals(actionCommand))
    System.exit(0);
    else if ("Analiz".equals(actionCommand))
    sayim();
    else if ("Hakkinda".equals(actionCommand))
    JOptionPane.showMessageDialog(this,
    "!!!! Bu program text analizi gerceklestirir. Her hakki saklidir SERKAN OZGEN!!!!",
    "Bu program hakkinda",
    JOptionPane.INFORMATION_MESSAGE);
    else if ("Kullanim".equals(actionCommand))
         JOptionPane.showMessageDialog(this,
         " Ilk once dosya menusunden Ac i tiklayarak analiz etmek istediginiz Dosyayi seciniz (Lutfen uzantisi *.txt \nveya *.log olsun). Daha sonra Degerlendirme menusunden analizi tiklarsaniz dosyanizda kac adet rakam, harf, \ncumle ve kelime oldugunu gorebilirsiniz. Simdiden kolay gelsin",
         "Programin kullanim detaylari",
         JOptionPane.INFORMATION_MESSAGE);
    private void Ac()
    if (jFileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
    hafizada = jFileChooser.getSelectedFile();
    Ac(hafizada);
    // Acilan Dosyayi ana ekranda gostermeye yariyan bir method
    private void Ac(File file)
    try
    // Acilan dosyayi okuma ve ana ekranda gosterme
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
    byte[] b = new byte[in.available()];
    in.read(b, 0, b.length);
    jta1.append(new String(b, 0, b.length));
    in.close();
    catch (IOException ex)
    // Temizle tusunun hangi ekranlara etki edecegini secme
    private void Sil()
    jta1.setText("");
    jta2.setText("");
    private void sayim()
    int buff;
    int sayac = 0;
    int Cumleler = 0;
    int Kelimeler = 0;
    int Karakterler = 0;
    int Satirlar = 0;
    int Rakamlar = 0;     
    boolean start = true;
    int linenum = 0;     
    try
    FileInputStream instream = new FileInputStream(hafizada);
    FileOutputStream outstream = new FileOutputStream(aktarilan);
         BufferedReader infile = new BufferedReader(new InputStreamReader(new FileInputStream(hafizada)));
    PrintStream out = new PrintStream(outstream);
         out.println("---Kelime Avcisinin Sonuclari---");
         String line = infile.readLine();
         while (line != null){
         int len = line.length();
         linenum++;
         line = infile.readLine();
         out.println("Line Length :"     + linenum + "\t" +len);
    while ((buff=instream.read()) != -1)
    switch((char)buff)
    case '?': case '.': case '!': /* Eger "?", "." veya "!" gorurse program cumleleri ve kelimeleri arttirir*/
    if (start == false)
    Cumleler++;
    Kelimeler++;
    start = true;
    break;
    case ' ': case '\t': case ',': case ';': case ':': case'\"': case'\'': /* Eger /t,;:\ ve \" bu isarteleri goruruse program kelimeleri arttirir */
    if (start == false)
    Kelimeler++;
    start = true;
    break;
              case 'n': case '\n': /* Eger \n gorurse satirlari arttirir */
              if (start == false)
                   Satirlar++;
                   Kelimeler++;
                   start = true;
              break;
    default:
    if (((char)buff >= 'a' && (char)buff<='z')|| /*a-z, A-Z veya - degerlerini gorurse karakterler arttirilir */
    ((char)buff >= 'A' && (char)buff<='Z')||
    ((char)buff == '-'))
    Karakterler++;
    if ((Kelimeler % 50) == 49)
    if (start == true)
                   out.println();     
    out.print((Kelimeler+1) + " ");
    out.print((char)buff);
    start = false;
              if ((char)buff >='0' && (char)buff <='9') {  /* 0-9 gorurse rakamlari arttiri */
                   Rakamlar++; }
    }// switch
         }//while
    instream.close();
    out.println();
    out.println();
    out.println("Karakter sayisi: " + Karakterler);
         out.println("Kelime sayisi: " + Kelimeler);
    out.println("Cumle sayisi: " + Cumleler);
         out.println("Satir sayisi: "+ Satirlar);
         out.println("Rakam sayisi: "+ Rakamlar);
    outstream.close();
    try
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(aktarilan));
    byte[] b = new byte[in.available()];
    in.read(b, 0, b.length);
    jta2.append(new String(b, 0, b.length));
    in.close();
    catch (IOException ex)
    catch (Exception e)
    System.out.println(e);
    }

    Why is it that you're not interested in IOExceptions?
    catch (IOException ex)
    } Empty catch blocks is a hallmark of foolish Java code. At least print out the stack trace.
    %

  • SQL Loader-704: Internal error: Maximum record length must be = [10000000]

    Hi,
    running SQL*Loader (Release 8.1.7.2.1) causes an error "SQL*Loader-704: Internal error: Maximum record length must be <= [10000000]". This error occurs when SQLLoader is trying to load several thousand records into a database table. Each record is less than 250 bytes in length.
    Any idea what could cause the problem?
    Thanks in advance!
    Ingo
    And here's an extract from the log file generated by SQLLoader :
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 1360 rows, maximum of 10485760 bytes
    Continuation: none specified
    Path used: Conventional
    Table "SYSTEM"."BASICPROFILE$1", loaded from every logical record.
    Insert option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    UUID FIRST * O(X07) CHARACTER
    DOMAINID NEXT * O(X07) CHARACTER
    LASTMODIFIED NEXT * O(X07) DATE DD/MM/YYYY HH24:MI:SS
    ANNIVERSARY NEXT * O(X07) CHARACTER
    BIRTHDAY NEXT * O(X07) CHARACTER
    COMPANYNAME NEXT * O(X07) CHARACTER
    DESCRIPTION NEXT * O(X07) CHARACTER
    FIRSTNAME NEXT * O(X07) CHARACTER
    COMPANYNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
    FIRSTNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
    GENDER NEXT * O(X07) CHARACTER
    HOBBIES NEXT * O(X07) CHARACTER
    HONORIFIC NEXT * O(X07) CHARACTER
    JOBTITLE NEXT * O(X07) CHARACTER
    KEYWORDS NEXT * O(X07) CHARACTER
    LASTNAME NEXT * O(X07) CHARACTER
    LASTNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
    NICKNAME NEXT * O(X07) CHARACTER
    PREFERREDLOCALE NEXT * O(X07) CHARACTER
    PREFERREDCURRENCY NEXT * O(X07) CHARACTER
    PROFESSION NEXT * O(X07) CHARACTER
    SECONDLASTNAME NEXT * O(X07) CHARACTER
    SECONDNAME NEXT * O(X07) CHARACTER
    SUFFIX NEXT * O(X07) CHARACTER
    TITLE NEXT * O(X07) CHARACTER
    CONFIRMATION NEXT * O(X07) CHARACTER
    DEFAULTADDRESSID NEXT * O(X07) CHARACTER
    BUSINESSPARTNERNO NEXT * O(X07) CHARACTER
    TYPECODE NEXT * O(X07) CHARACTER
    OCA NEXT * O(X07) CHARACTER
    SQL*Loader-704: Internal error: Maximum record length must be <= [10000000]

    As a second guess, the terminator changes or goes missing at some point in the data file. If you are running on *NIX, try wc -l data_file_name.  This will give a count of the number of lines (delimited by CHR(10) ) that are in the file.  If this is not close to the number you expected, then that is your problem.
    You could also try gradually working through the data file loading 100 records, then 200, then 300 etc. to see where it starts to fail.
    HTH
    John

  • Maximum Line items in Sales order/ Delivery/ Invoice

    Hi guru's
    Maximum line items(SAP Standard) in the sales document/ Delivery Document / Invoice?
    Thanks and Regards
    Srinivas Kapuganti

    Dear Srinivas
    Why you want in sale order and delivery to restrict the number of line items and it will have no impact.
    For Billing, you can achieve this.  Go to IMG path -- Billing -> Billing Docs -> Country specific features --> Maintain Maximum Number of Billing Items.  There select your sales organization and maintain the number of line items to flow in your billing document. 
    thanks
    G. Lakshmipathi

  • How do I locate the longest line in an InDesign document?

    Is there a script that locates the longest line in an InDesign document?

    Hi Duke;
    The following is something quick and dirty that looks at the number of characters in a line only. This ignores what the others were saying in regards to 'physical space' which may include kerning, scaling, character widths etc, and it only looks at 1 text frame so you might have to expand on it if you want to do a whole document.
    var myLines = app.activeDocument.textFrames.item(0).lines;
    var myLongestLine = 0;
    var myLongestLineGroup = "";
    for (var i = 0; i < myLines.length; i++) {
        if (myLines[i].characters.length === myLongestLine) {
            myLongestLineGroup += "Line - " + i + "\u000D";
        else if (myLines[i].characters.length > myLongestLine) {
            myLongestLine = myLines[i].characters.length;
            myLongestLineGroup = "Line - " + i + "\u000D";
    $.write("The longest lines are: \u000D" + myLongestLineGroup + "With " + myLongestLine + " characters including white spaces and breaks.\u000D");
    If you were after the physical space of a line then another couple of steps would be required. This can be problematic thought especially if the text is not forced to a fixed word, letter and glyph scaling as these paragraph style values can dramatically change the outcome (the default paragraph style has a 80% minimum word spacing by the way so it might cause variations in the result).
    Brett

  • Maximun line items per CO document

    Hello,
    Which is the maximum number of line items per CO document?
    Thanks,

    I am really not sure about MM.
    But in FI and CO, maximum is 999.
    There are also some enhancement available for this functionality to increase the number of documents.
    If you browse through internet, you will find some source code (sample) for this.
    Regards,
    Ravi

  • Maximum line size for OO ALV

    Hi,
    1) What is the maximum line size for OO ALV?
    Or in the other way round, how is the maximum column size for OO ALV when i using the method below:
      DATA: r_grid TYPE REF TO cl_salv_form_layout_grid.
      CREATE OBJECT r_grid.
      r_grid->create_text(
          row     = 2
          column  = 2
          text    = sy-mandt ).
    2) Another question, how to change the below time format:
    223801 -> 22:38:01?
    When I try to use sy-uzeit to display the header in ALV like below:
      CREATE OBJECT r_grid.
      r_grid->create_text(
          row     = 2
          column  = 2
          text    = sy-uzeit ).
    The ALV will be displaying 223801. How i can convert to format 22:38:01 and display it in ALV?
    Thanks.

    Hi,
    For your second qn.,try by declaring an extra field of type character of length 10 in the structure you are using for ALV.
    After that ,after you appended the records,just try the follg...
    loop at itab into wa.
    concatenate f10(2) ':' f12(2) ':' f1+4(2) into f2.
    modify itab from wa transporting f2 index sy-tabix.
    endloop.

  • Maximum Line items 999 exceeded

    Hi,
    We have an SD document having more than 2150 line items, when it is releasing to Accounting, it is giving error message like Maximum Line itesm 999 exceeded.
    I have searched SAP Notes 1353125, 1353827(MM side) 36353 (summarisation) and 511873 - it deletes Assignment number XACCIT-ZUONR.
    Summarisation is not preferred for our client.
    Can anyone sugget any SAP note that will solve my problem at an earliest please.
    SAP note 511873 solve my problem or not?
    Our vesrion is SAP_APPL - 500.
    Regards
    Prathap

    HI Madhu,
    Thanks for the information.
    But it is possible to split the Accounting document. Some SAP notes are available.
    Regards
    Murali

Maybe you are looking for

  • Speed test: PL/SQL vs. Java Stored Procedures

    I performed tests on these two procedures: =========================================== // Create a Statement Statement stmt = conn.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); // Query the table ResultSet rset = st

  • Scniwall 2400 GVC (vpn) is not working after FIPS Enable

    Hi ,Yesterday i have enabled FIPS Mode on my Sonicwall 2400 after that globle vpn is not working i i am getting following error which connecting:2015/07/10 16:17:52:918 Information x.x.x.x Phase 1 has completed.2015/07/10 16:17:52:918 Error x.x.x.x F

  • JOptionPane.showMessageDialog ( ERROR_MESSAGE)

    hi can anyone help... i am using a JOptionPane.showMessageDialog ( ERROR_MESSAGE) to validate my input in some textfields... and when there is an ERROR the merror message will pop up... how to write the code so that when the user click the OK button

  • Strange message when repair preferences.

    When I use Disk Utility lately to repair permissions, I get this message in the repair screen: "Warning: SUID file "System/Library/CoreServices/Finder.app/Contents/Resources/OwnerGroupTool" has been modified and will not be repaired." Then process co

  • Is E65 more stable than a MICROSOFT phone?

    When I bought my phone I wanted a phone with more funcinalities than a convetional one (email, Internet, 3G, GPS software, etc) so I had two possibilites: 1.- Buy a phone based on Microsoft OS (such HTC, Imate, etc) 2.- Buy a Nokia phone based in SYM