How to show an empty line at the end of a ParagraphView

Hi everybody,
I wonder if anyone knows how to extend ParagraphView to show an empty line at the end of every paragraph?
Thanks in advance,
mrai

I tried to use that class and couldn't get it to work.
JTextField field = new JTextField();
field.setText("blah blah");
CompisiteView view = new ParagraphView(field.getDocument().getRootElement());
int views = view.getViewCount() //always zero...

Similar Messages

  • Empty lines at the end of the payload generated in FTP server

    Hi All,
    I am facing an issue in one of the use cases that I am trying to implement.
    I am getting a purchase order from one of the trading partners through Oracle B2B.
    B2B forwards this B2BM (B2B message ) to AIAB2BInterface. From AIAB2BInterface my BPEL process gets invoked, which in turn invokes the AdapterComposite which has a FTP adapter that writes the purchase order to a FTP server. PFB the end to end flow.
    PurchaseOrder from ABC trading pertner--> Oracle B2B --> AIAB2BInterface --> TestInputProvABCS --> TestInputAdapter -> Host trading partner picks up the file from FTP location
    In the ProvABCS I retrieve the actual payload from the B2BM and convert it into a string using ora:getContentasString. I am then invoking the adapter composite and sending the string as the input to FTP adapter. At the adapter composite I use a simple native schema (for validation of the input string) which has only one element PO_Info of the type string. But when the file gets generated in the FTP server there are empty lines and junk characters at the end of the file.
    Need some advice on this. Why are the empty lines coming in the end of the file? Please help!
    Thanks

    OK, I cannot figure out a way to modify the JTable (in an extended class) directly.
    So, what I did was to add a wrapper around the TreeTableModel which shows an empty row at the end.
    For those of you who are in a similar situation, the methods that I had to modify are
    public boolean isCellEditable(Object node, int column);
    public int getIndexOfChild(Object parent, Object child);
    public int getChildCount(Object node);
    public Object getChild(Object node, int i);
    These other methods are required if you are using a TreeTable instead of just a table (see http://java.sun.com/products/jfc/tsc/articles/treetable2/index.html)
    public Object getValueAt(Object node, int row, int column);
    public Object getValueAt(Object node, int row, String columnName);
    public void setValueAt(Object node, int row, int column, Object newValue);
    public void setValueAt(Object node, int row, String columnName, Object newValue);
    The signature of above methods is slightly different than the ones at: http://java.sun.com/products/jfc/tsc/articles/treetable2/src/TreeTableModel.java
    This is due to the fact that, if you want to display the serial no. (as in row number), then getValue() can just return the row number. IndexedTreeTableModel is another wrapper around the TreeTableModel which can add an extra column to display the serial number.

  • Empty line at the end of  SAP Java instance profile

    I saw this today in help.sap.com, which says that an Java instance profile must have an empty line at the end of the file, would anyone know what is it for ?
    The instance profile (/usr/sap/<SID>/SYS/profile/<SID>_<instance name>_<hostname>) u2013 this file contains settings that apply to the instance as a whole. For a Java-only installation, the file can be edited with any text editor (beware that the file must have an empty line at the end.);
    http://help.sap.com/saphelp_nw04s/helpdata/en/2e/611724f410254ca12a3f396ec5ae85/frameset.htm
    thank you
    Jonu Joy

    I have heard many "explanations" for this, but never really any solid answers.
    From experience, however, I can tell you that the SAP profiles (both ABAP and Java) will miss the last parameter if it is located on the bottom line of the file.  I have always put in two or three blank spaces at the bottom of the profiles in order to avoid this.

  • How to add a new line at the end of eTEXT file

    Hi,
    I have modified the RTF template for the R12.1.3 Positive Pay File report (IBYPOS_PAY_en.rtf). Everything is good, except that the bank requires a "T" (Capital T) character in a new line at the end of the text file. Has any of you came across this before? How do I modify the template to achieve this?
    Thank you,
    Sinan Topuz

    I believe this is related to BI Publisher. Any comments would be greatly appreciated.
    Thanks,
    Sinan

  • Empty Line at the End of a List Component

    I am using a list compenent in which I am manually adding
    items to it (i.e. addItemAt). The list is long enough to be
    scrollable. At the end of the list is a blank line, or a space big
    enough to look like the size of a line. It is not clickable or you
    can't highlight it if you click but it is there and looks a little
    funny.
    Does anyone know what is creating this and how to get rid of
    it?
    Thank you.
    Dave

    Pretty much you are creating this... Are you iterating an
    array to populate
    the list, and not stopping soon enough? Remember arrays are 0
    index based,
    you you want to go to < the length, not <= the length.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • My ipad mini fades out, freezes and shows streaks of lines on the screen. What is the problem or how can this be fixed?

    my ipad mini fades out, freezes and shows streaks of lines on the screen. What is the problem or how can this be fixed?

    try reseting the device
    try restoring the device as new
    then replace

  • How to draw horizontal line at the end of table for multiple line items

    Dear Experts,
                       Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
    Thanks
    Ramesh Manoharan

    Hi
       I tried as per your logic but it is not solving my problem .  when i am gone to table painter it is showing line type 1 and line type 2
      is below format.. if u see here line type 1 bottom line and line type 2 top line both are same..  so how to avoid this ?
                              line type 1
                             line type 2

  • When I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    when I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    Make sure that '''''Print to File''''' isn't selected in the native print dialog box ''(see screenshot below)'' middle-right, and make sure your Printer is selected at the top of that dialog box.
    ''I'm a little confused why an email attachment would need to go directly to the printer, but that's what you asked about.''

  • I receive daily emails from the NY Times, which I read from my Ipad. Some of the emails will show all of the stories available, and some will only show a few lines in the body and the rest of the email is blank. Any ideas of what I need to do to fix this?

    I receive daily emails from the NY Times, which I read from my Ipad. Some of the emails will show all of the stories available, and some will only show a few lines in the body and the rest of the email is blank. Any ideas of what I need to do to fix this?

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.

  • How can we delete a line from the table control .

    hi all
    how can we delete a line from the table control .
    situation is.
    created table control in se51 which will display the data of a table.
    how could i select a line from the table control ?
    how could i delete the selected lines form the table.
    thanks in advance

    Change the Table Control attributes such that user can only select a single record(row).
    <u>Tip to delete a selected record</u>
    1) write a module 'Mark' in the PAI as below
    PROCESS AFTER INPUT.
    MODULE cancel AT EXIT-COMMAND.
    LOOP WITH CONTROL table_view.
    MODULE read_table_control.
    FIELD flag MODULE mark ON INPUT.
    ENDLOOP.
    MODULE user_command_0100.
    2) Module Mark is below.
    MODULE mark INPUT.
    CHECK flag = 'X'.
    x = table_view-top_line + sy-stepl - 1.
    Delete itab INDEX x.
    ENDMODULE. " mark INPUT
    Table_view is the TableControl Name.
    'flag' is of type char(1) available in the Internal table which was assigned to the select option in the table control.
    <u>award if uesful</u>
    Regards,
    Sudheer

  • How many shows can I DVR at the same time?

    I just signed up for FiOS triple play with preferred HD, premium stations, 75/75 internet and phone. I was watching a show the other night and DVR'd 2 shows - got a message saying I couldn't do that. How many shows can I DVR at the same time? Can I still watch a live show while DVR's recording?
    This is SO frustrating!

    Every regular DVR has 2 tuners It can recordp to 2 shows at a time.
    If both tuners are in use,, then you can't watch anything else.
    Want to record more, get more DVRs or upgrade to Quantum.
    Lowere level has 6 tuners. THey support remote TVs and recording.
    THere agin, you can get combination of channels being watched and recorded up to 6.
    Need even more, upgrade to higher level and have 12 tuners to share.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • HT2491 how to show macintosh hard drive on the desktop

    how to show macintosh hard drive on the desktop in apple macbook pro,n how can i install my canon scaner with printer on mac,i am new user,regards,dr.m.imran

    Thank you for these directions. I just created a new user account and couldn't believe the hard drive was not viewable on the desktop. It seems by default the hard drive should always be viewable on the desktop. By having absolutely nothing on the desktop when making a new user I was freaking out thinking my Mac had a bug after the OS updates.
    Thank you for the directions on how to show the hard drive on a new user's desktop.

  • My new version of Firefox (downloaded automatically) on my Mac displays long paragraphs in emails as a single line, so the end of the paragraph is off the screen. How can I make it automatically wrap to fit the screen?

    Long paragraphs in incoming emails display as a single line, with the end of the paragraph running off the screen. I want to make it wrap automatically to fit the screen.

    For the browser window, just drag it to the top left of the screen (click and hold on the top bar with the traffic lights to drag), then in the bottom right of the window you'll see a rectangle with diagonal hatching. Click and hold on that and drag the window to the size you want.
    Clicking on the green dot at top left will expand the window to fit the screen, clicking it again will shrink it back to where it was (this doesn't work in Finder windows quite the same).
    The menu bar size is set in the bowels of the OS, though there may be third-party applications which can alter it.
    As it's size is relative to the screen resolution, you could try reducing the resolution in System Preferences > Displays to see if that would suit you better.

  • SMS Messaging: Blank line at the end of the message

    I never had this problem with the 3G, but on my iPhone 4, I often see a blank line at the end of my text message after I send it.
    Also, a similar issue I am having is that while I am drafting text messages, the words fits nicely in the text input box, but once I hit send, some words are shifted to the next line.
    *Typed in input box:*
    Sorry. We'll be there asap.
    *Show in the green bubble:*
    Sorry. We'll be there
    asap.
    Anyone know how I can solve this problem? Thank you!

    this isnt the way to respond to someones problem... thats not what this forum is for ..
    now to the op have you tried resetting your phone by holding both the home button and the sleep/wake switch for 15 seconds...
    if that doesnt work I would try restoring your phone from backup to see if you can clear this issue up

  • File Adapter Write Operation inserts a new line at the end

    Hi,
    I am using the write operation in the File Adapter from BPEL Process. The data is written successfully to the file and file is also created in the location specified in the adapter wsdl. But in the file created, it creates a new line at the end of the file. This new line has to be avoided when writing data to a file.
    Has anyone faced this and solved this ?
    I am SOA 10.1.3.4.
    Cheers,
    - AR

    It is a bug in 10g and will be resolved in one of the versions of 11g.
    Cheers,
    -AR

Maybe you are looking for

  • XI 3.0: Preserve trailer spaces with JMS Adapter

    Hi everybody Does anybody knows how it is possible to preserve the trailing spaces in a message coming from JMS adapter? I have a fixed-length field that is filled with a left space trailer, but the space is removed by (i think) the adapter. Does exi

  • Fatal Aperture 3.0.2 error

    I had to force quit aperture because it stalled and now everytime I try to run the application, I get the following error: "There was an error opening the database for the library "~/Pictures/Aperture Library.aplibrary". The error window only has a q

  • Can Check Number be start with zero?

    Dear all,                I knew that check number on SBO is numeric but check number of my country some number can start with zero and it effected to check number printing form. So, I'm not sure whether we can set check number to be charactor or not.

  • Can't See Pages/States. Only States.

    I have created some artwork in Illustrator CS5 to import into FC and after doing so, I notice that I do not have Pages/States, only States. I believe that this is hindering me to make my buttons function properly. I will go into more detail just in c

  • JList: how a set a "name" and "value" for a element

    my JList DefaultListModel listMBuddy; JList listBuddy; listMBuddy = new DefaultListModel(); listBuddy = new JList(listMBuddy); listMBuddy.insertElementAt("buddy name 1", listMBuddy.size()); listMBuddy.insertElementAt("buddy name 2", listMBuddy.size()