JEditorPane with automated linewrapping and no horizontal scroll bar.

Hello.
I am working with a JEditorPane which is added insisde a JScrollPane, the thing is that i want to have
[1]Automatic line wrapping, although this works good with the method .setText(String str) i am not using that method, instead of that i prefer to have an HTMLDocument object inside the JEditorPane and use the method insertBeforeEnd(...) . When i do that, i do not have automatic line wrapping.
[2]Not having that line wrapping means that i see an ugly scroll bar in the horizontal position, which i want to avoid, since this is for an IM application.
Before i used a JTextArea with the method .setLineWrap(true) and everyghing was ok, so is there any way to do the same in a JEditorPane with an HTMLDocument? Any help will be apreciated.
Thanks

But what i want to do is ....Well instead of telling us what you want to do, why don't you post a 20 line executable demo program that shows us exactly what you are doing and what the problem is. A picture is worth a thousand words.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

Similar Messages

  • I run 3.6.10 and the horizontal scroll bar vanishes.

    I tried opening the browser in the Safe Mode & restoring the default settings. The horizontal scroll bar reappears until I resize the window. It vanishes again and does not reappear.

    It is possible that the screen is too wide or too high and that the scroll bars fall off.
    Open the system menu via Alt+Space and see if you can resize that window.
    If that works then close Firefox to save that setting.
    See also http://kb.mozillazine.org/Resizing_oversize_window
    If that didn't help then see http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Horizontal scroll bar not appearing-Alert report screen

    Hi All,
    I have an agent setup which shows alerts and a report is fed as an input/delivery content. The report is fairly big with many columns and cannot fit in the standard alert screen hence need a horizontal scroll bar to view all the columns. But unfortunately there are two vertical scroll bars which are appearing and no horizontal scroll bar. Could the experts please let me know if this is a bug or is there any configuration that I am missing?
    OBIEE version: 11.1.1.5
    Any help would be appreciated.
    Thanks,
    Vikram

    Hi,
    Sorry for the delay in response. The issue was because of IE7 version. Its a bug.
    Thanks,
    Vikram

  • Stack Canvas Horizontal Scroll Bar

    Hi There,
    I'm using Forms 6i (Rel.2) and i am facing a problem with may stack canvas's horizontal scroll bar at runtime, as follows:
    As I put the cursor on an Item inside the stack canvas, and try to scroll away to the left where that Item is no longer viewable, and then stop scrolling, the scroll back will jump back to that Item,so I have to press and hold the mouse on the scroll bar as long as I need to see other Items at the far end! I tried to set the "Raise on entry" property to "YES", but no success.
    I tried the same in Forms 5 and it works fine with no problems at all!!!
    Any suggestions?

    Hi,
    My colleague found out that a timer I had programmed in a calling form to show the current time was actually refreshing every one second and in doing that it was refreshing the whole view which caused it to jump back to the first item. I had to remove the timer and it's working fine now.
    Thanks again,
    Ali

  • How do I get my horizontal scroll bar back?

    Well, I just installed firefox 5 on my computer and for some reason, the bottom horizontal scroll bar you use to move the screen left to right has gone missing. So my question is, how do I get it back?

    I had this problem and it only started after installing firefox v12.0 (on win xp).
    Mozilla mentions it is related to the css 'overflow' attribute not being defined correctly.
    HOWEVER, in my case, the offending line of css belonged to the jquery ui library
    file: jquery-ui-1.7.2.custom.css
    .ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
    all I needed to do was remove one of the '9's and the horizontal scroll bar reappeared on all pages that included this jquery ui lib.
    the better solution would be to upgrade to the latest jquery ui lib.

  • Help with code for inserting horizontal scroll bar in photo gallery in Business Catalyst site?

    Hi,
    I am using Business Catalyst and Dreamweaver to create a trial site.
    I am not sure if this is the correct forum to post this request but anyway I have inserted a photo gallery module at the bottom of the sidebar in the homepage of my test site.
    Can anyone advise on whether jquery or any other code can be inserted into the page or module code that will replace the "next" hyperlink below the first 4 photos with a horizontal scroll bar at bottom of the gallery so users can just scroll through all 12 images ?
    Kind Regards, Matt.
    http://craftime-bs6.businesscatalyst.com/

    Alyssa,
    Have you tried putting this rule back as it was originally:
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto; /*was 9px*/
        color: #EF9CCF;
        background-color: #FFF;
    That is, changing your 9px back to auto.
    And giving  us a link (as you did) is much better than printing out the code for us! Thanks!
    Beth

  • Horizontal scroll bar in tabular form with columns freeze

    Hi All,
    I have a requirement where i have to create a tabular form in which the first three columns should be in freeze mode and it should have a horizontal scroll bar.
    with the help of Google i found an example [http://apex.oracle.com/pls/otn/f?p=267:46]
    I want the same thing as in the example but with first three columns in freeze mode
    But could not find out how to create this column freeze and horizontal scroll bar.
    Let me know if you have any idea on this
    Thanks in advance,
    Ananth

    Hi,
    It is easy to look at the page source and see what they have done
    if you search for var d1 = document.getElementById("d and d1 you see some javascript doing the magic.
    Thanks

  • Horizontal scroll bar moves with page up/down

    I'm new at this and apologize if I don't have the right forum, but can't find any reference to my problem anywhere. A month or so ago the horizontal scroll bar at the bottom of the screen started moving up or down with the page as I used the vertical scroll bar to page up or down. The bar partly disintegrates if I click on it, but mostly remains in place and obscures text on that line. If there is more than one page I can make the bar disappear by scrolling the to the next page, and then back. This happens only when I'm on the internet, and appears in news pages ( e.g. NY Times, BBC) and on my e-mails (I use Hotmail). I have a Mac mini, 1.66 GHz, OS 10.4.11, all other updates offered by Apple. I'm sure this is not a Safari problem, and my searches for Apple viruses, Trojans, Worms, has found nothing about this (there are discussions about vertical scrolling, but these don't seem to relate to my problem). So can anyone tell me what this is and how to get rid of it? Thanks for any help. TJ Wont

    I've got the same problem. It started when the BBC introduced adverts onto their News website. As the page loads an advert (or sometimes whitespace) appears between the tab and the BBC News banner. This is then shifted to the right hand side when the page fully loads.
    I suspect that there's some fancy DHTML going on that Safari isn't rendering properly.
    Problem doesn't occur if the Safari window is maximised to full screen width.

  • I have a problem with interactive report in  horizontal scroll bar

    hi all,
      in my interactive report the horizontal scroll bar is not visible and i have created a scroll bar with the html code and i have a problem in that scroll bar when ever i will click the select list and if i will move the scroll bar and the select list is also moving but it the select list dont have to move .pls give me a solution for this urgent.
    thanks in advance 

    Kishore suresh wrote:
    hi all,
      in my interactive report the horizontal scroll bar is not visible and i have created a scroll bar with the html code and i have a problem in that scroll bar when ever i will click the select list and if i will move the scroll bar and the select list is also moving but it the select list dont have to move .pls give me a solution for this urgent.
    thanks in advance
    Hi,
    How you think anybody can help if you do not post single line how you have try create that scrolling report ?
    And if your issue is urgent, you are seeking help from wrong place.
    Regards,
    Jari

  • A region with horizontal scroll bar?

    I do have a page with 2 regions next to each other:
    region1 region2
    In region1 I am retrieving and image from database. This image has fixed set of attributes like width and height. In region2 there is a text retrieved from DB. I would like to configure region2 so it will have same (fixed) width and height so in cases where there is more text so it would cause region2 to be taller there will be a horizontal scroll bar.
    Is this done through ccs styles? Can any body advice how to accomplish this?
    Thank you for your time.
    DanielD

    Reuben
    Try the solution mentioned at Re: Report Displaying with Scrollbars
    for your text region.

  • Add bookmark button and horizontal scroll bar - bugs on Snow Leopard

    Safari after update to 5.1.4, has a bug in interface on Snow Leopard (10.6.8): 'add bookmark' button (combined with addres bar), and horizontal scroll bar didn't look good.  I think, that shouldn't happend on flagship Apple browser, on just a little older OS X than 'Lion'.
    Clearing (deleting files) 'Cache.db' and .plist files didn't help.

    Ok..  maybe corrupted Safari preferences  (.plist )
    Quit Safari.
    Go to ~/Library/Preferences
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop.
    Relaunch Safari. If that helped, move the .plist file to the Trash.
    If not, move it back to the Preferences folder.
    If that didn't help, go to Safari > Preferences then select the Extensions tab. If you have any installed, turn that OFF, quit then relaunch Safari to test.
    If it's not a plugin, try troubleshooting Safari third party unsupported add ons >  Safari: Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues
    edited by:  cs

  • How to have a table with a horizontal scroll bar

    Hi All,
    I need to develop a page in which i have around 15 columns in a table to display in a table format.The requirement also says that after the first 4 columns ,all the remaining columns in the table should have a horizontal scroll bar,so that the user can see the remaining columns as required by scrolling horizontally in the table.
    Is this possible to do in OAF and if yes how?
    I created a table region with 15 columns but i am getting a horizontal scroll bar on the page but not on the table.Please kindly suggest .
    Thanks in advance.

    Sumit,
    I guess the functionality they are looking for here is similar to freezeing of some columns in excel sheets. This makes the initial columns as it is and rest of the columns have scrolling enabled. This is useful in scenario where there are a large number of columns and while looking at last columns, you will probably like to see the first couple of column data as well to map to see which id or user it belongs to. Just a useability case :-)
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I view the Horizontal Scrolling bar and status bar at the bottom of the screen. I can only see the top menus, toolbars and vertical scroll bar?

    Before the most recent upgrade, the bottom horizontal scrolling bar and status bar appeared on my screen. Now since upgrading, I cannot see the. Anyone ideas how to restore them?

    If you haven't already, you could force-quit Quicktime by using the menu option from the desktop (finder) and choose Quicktime.
    Not sure what you have frozen on the screen, be it a failed movie, or some unusual screen shot. If you can find by date (created) you may be able to look for .mov or quicktime suffix name or other video file content to delete it.
    And you may have to restart your computer and perhaps run repair disk permissions from Disk Utility's first aid on the hard disk drive in your computer.
    Not sure if all that would help now, but it is something a few days late...!
    Good luck & happy computing!

  • Horizontal Scroll bar problem with CL_GUI_ALV_GRID

    Hi Experts,
    I have created Dynamic ALV by using CL_GUI_ALV_GRID . Everthing is working fine if all the data is displaying in single screen. But if the number of columns increase with the output of data the horizontal scroll bar is not working.
    It is visible but when I click to scroll it to the end of screen it is not working. Can anybody help me that what can be the problem?

    Please reduce the container size in the screen thru SE51 that automatically create the scroll
    or check whether in the attributes of the screen "Hold scroll positio" not to be checked

  • Oracle Forms 6i/11i Apps: Horizontal scroll bar is hiding last record in the form, issue with folder switcher

    Horizontal scroll bar is hiding last record in the form. Attached the screenshot which shows the issue.
    Regards,
    Venkat K

    If this is a custom form, you will have to alter the design. If this is a seeded form, pl open an SR with Support

Maybe you are looking for