JEditorPane not scrolling in JScrollPane no matter what

Hello,
I thoroughly researched this problem and I tried all suggestions, but nothing seems to work. I have a JEditorPane inside the JScrollPane, but JEditorPane does not scroll horizontally no matter what. It simply cuts off the text to the right.
Here is my code:
reportArea = new JEditorPane() {
public boolean getScrollableTracksViewportWidth() {                   
if (getSize().width < getParent().getSize().width)
     return true;
else
     return false;
public void setSize(Dimension d) {                   
if (d.width < getParent().getSize().width)
     d.width = getParent().getSize().width;
super.setSize(d);
reportArea.setEditorKit(new HTMLEditorKit());
reportArea.setEditable(false);
JScrollPane reportJ = new JScrollPane(reportArea);
reportJ.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
reportJ.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
Any suggestions will be greatly and truly appreciated!
Elana

I need to display HTML page, that's why I need JEditorPane. Also, In the html table that I'm displaying I have the nowrap attribute, so nothing gets wrapped at all. It's just being cut off...
;-(

Similar Messages

  • HT3302 My Ipod touch 8gb will not turn back on no matter what i do i have tried just the power button, the power button and home button, and connecting it to the computer and the battery wasn't close to being dead non of them work what do i do?

    My Ipod touch 8gb will not turn back on no matter what i do i have tried just the power button, the power button and home button, and connecting it to the computer and the battery wasn't close to being dead non of them work what do i do?

    Try:                           
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • My iphone will not connect to wifi no matter what i try.HELP

    my iphone will not connect to wifi no matter what HELP

    Have you tryed to restore the iPhone too ?
    Restore the phone in iTunes using a backup, and if needed as a new iPhone, without using a backup.  However, the greyed out WiFi is often due to a hardware failure requiring replacement of the phone.
    This may help http://manuals.info.apple.com/en_US/ipod_touch_user_guide.pdf

  • Trying to print a jpeg (not a photograph).  No matter what setting i select, it prints in landscape.  How do I get portrait printing?

    Trying to print a jpeg (not a photograph) in Elements 12. No matter what setting i select, it prints in landscape. How do I get it to print in portrait?
    Second question.  What is the fastest way to change the number setting (0 to 12) for an existing photo so that the file size is smaller?

    kkbadobe wrote:
    Trying to print a jpeg (not a photograph) in Elements 12. No matter what setting i select, it prints in landscape. How do I get it to print in portrait?
    Second question.  What is the fastest way to change the number setting (0 to 12) for an existing photo so that the file size is smaller?
    Go to File>print in Editor. In the dialog that comes up, you should see "Page Setup". Select "Portrait".
    This assumes that the file is in portrait orientation as well, before sending it to the printer.
    As for question #2, I am unaware of a numeric sequence such as you would like in this program. You can alter file size via File>save for web, however.

  • Illustrator CC will not snap to grid, no matter what!

    Hello,
    I apologize if this seems a redundant post, I've read many people asking this but have seen no definitive answer, so I wanted to simplify the question and see if we can get a real answer:
    I'm using Illustrator CC, and snap to grid DOES NOT WORK FOR ANYTHING. For instance, if I try to draw out a rectangle, the top left corner will not snap to the nearest grid where I start to drag it out. For another instance, if I use the pen tool, it WILL NOT snap to grid. To be clear, I have "snap to grid" checked under the view menu, and do not have "snap to point" or "smart guides" turned on. Alternatively, any combination of these being on/off still will not yield a snap to grid. I have also experimented with the "align new objects to pixel grid" under the "transform" window on and off, which did not help either. Even with that checked on, existing objects will not snap to the grid. In short, nothing snaps to the grid - this is occurring on 2 different computers, one at home, one at work, both running the same version of illy CC. I don't get it, it seems like there are a lot of people having this problem but I cannot for the life of me find an answer, it seems like a life-or-death option that should be available, I know that I am lost without it. Any help would be greatly appreciated, thanks!
    As a caveat to this, I have tried most every option under preferences, so unless you know of something hiding deep, I doubt that changing a preference is going to be the solution here. Thanks all!

    Thanks Larry,
    I have seen this posted as a solution, but to be clear it is not just a matter of rectangles not snapping, NOTHING will snap to the grid. Not a rectangle, not an existing object, not the pen tool, nothing. Even if I create a rectangle and go through the steps of expanding it to get rid of this new "live" feature, it still will not snap. So, I'm afraid that rectangles are not the culprit here, and I know from reading the forums that others are having the same issue with snap to grid simply not working at all.
    RUNNING THE MOST CURRENT VERSION OF ILLUSTRATOR CC, I UPDATE FREQUENTLY.

  • I constantly get not responding hangups! No matter what I try it continues to be a problem. Help?

    I am constantly getting not responding hangups when accessing my files? help?Using Windows 8

    Hey,
    Could you please provide me with some more details so that I can analyze the issue.
    Let me know what Acrobat version are you using and specify the error message that you get.
    When do you get the error? Just after launching Acrobat or while opening PDF or something else?
    Hope to hear from you.
    Regards,
    Anubha

  • IPod Touch 4gen will not connect to wifi no matter what

    My white 8gb iPod Touch 4gen will not connect to wifi, I have reset the network and the entire iPod. When I got it for Christmas 2011 it worked perfectly for a few months then all of a sudden it stopped connecting, every connection I try to connect it to says the same thing; unable to join network... I am getting fed up, my first gen iPod Touch will connect to the wifi no problem, but the thing is it keeps crashing. I can't use it for more than a couple of minutes and it goes back to the home screen. If anyone could help, it is greatly appreciated!

    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • FOR ANYONE WHOS IPOD WILL NOT APPEAR IN ITUNES NO MATTER WHAT YOU TRY!

    Hey Guys i suffered from this problem for a frustrating three weeks before i tried somthing completely random and it fixed my problem.
    My ipod would appear in mycomputer and itunes would even open when connecting my ipod but would not appear in the menu. TRY THIS!
    1. goto start menu
    2. Click control panel -> Administrative tools -> Computer management.
    3. Click disk management under the storage tab.
    4. Right click your ipod (must be plugged in and possibly in disk mode) and select format.
    5. In the file system tab select "FAT" NOT "FAT32"!!, select 'perform quick format' and click ok.
    After this step my ipod appeared in itunes as a corrupt ipod!
    6. In itunes restore your ipod since it is now on the menu.
    THIS FIXED MY PROBLEM!! i hope this helps anyone with the same problem. :D!!!!
    It is really hard to find a real soloution for problems like this instead of the old "reinstall itunes" I REALLY HOPE THIS WORKS FOR YOU!

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Hello my name is Tyesha Woods,and I have a problem with my dvd hard drive, it will not eject my cd no matter what i do can you please help me?

    Hello, my name is Tyesha Woods I onw a Macbook and my dvd hard drive will not ejected my cd ,I have tryed everthing I could would you please help me?

    Hi Tyesha,
    Your DVD won't eject?
    Restart the MacBook - as it is restarting, hold the trackpad button down. This will force it to eject. The disk should eject before you get to the login screen or desktop.

  • My mail will not stay in order no matter what I do Miss a lot and some totally disappear?

    I try clicking show by date works for a while then stops I look at mail then go to print later and many times it disappeared Search everywhere gone
    I am missing a lot of important emails
    Also can not save my contacts to my list Keeps saying I only have 2 )the most recent)

    We are fellow users here on these forums, you're not talking to iTunes Support nor Apple.
    Have you created a new account or updated your existing account ? All content that you download from the store is tied to the account that downloaded it, so if you have created a new account then all of your existing downloads will remain tied to your old account.
    If you've updated your existing account then try tapping on the id at the bottom of the Featured tab in the App Store app and log out of it and then log back in with the updated id so as to 'refresh' the account on it.

  • It will NOT RECOGNIZE MY IPHONE NO MATTER WHAT I DO

    wont recognize phone

    1. Make sure that your device is not hidden (left hand pane). If it just reads device then toggle between SHOW and HIDE.
    2. Try all the other ports on your computer, even a number of times.
    3. Make sure your lead /connections are not faulty.
    4. If you have another computer try plugging your device into it without taking any action, give it a moment, remove it and try it back in your other computer again.
    5. Make sure you have the latest version of iTunes installed.
    6. If using Widows, make sure all Windows Updates are installed.
    7. Failing all that, see here - http://support.apple.com/kb/TS1538 for Windows and http://support.apple.com/kb/TS1591 for Macs
    8. And failing all that put the device into Recovery mode. See here and note the paragraph 'If you restore from a different computer.... ' down near the bottom of the page -
    http://www.apple.com/support/ipad/assistant/itunes/

  • HT201263 my phone just shut off and will not come back on no matter what I do. It was working fine then just went compeltely dark and is unresponsive. Help!!

    My phone was working fine, then just went completely blank, and now is totally unresponsive

    Plug it in to mains power for at least 15 minutes.  If it doesn't automatically come on, try a Reset... press the home and sleep/lock buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.

  • Adobe Flashplayer does not work and crashes no matter what i am using it for, help!!

    I updated Firefox to its latest update and had problems with the flash player beforehand, it only crashed a few times but i was still sick of it.
    I then updated the Adobe Flash Player to its recent update.
    Since then, the crashing has been frequent and recently nothing has been able to stay open when it requires Adobe Flash Player.
    I did go to Adobe Flash Player site and tested it for any problems and it seemed to be fine.
    I hope its something as simple as a installation problem, my laptop is slightly dated so that may make a difference, too.
    Thanks support team! :)

    Is it an instrument or an insert effect? My guess is you've been trying to find it amongst the insert effects, where it actually is an instrument, which can only  be loaded in the Instrument Slot.

  • When I click on I Tunes store from my library nothing happens. No matter what I do the I tunes store will not open. What can I do?

    I just downloaded the new version of I tunes and I went to the I tunes store. It opened just fine and I was browsing the store. I saw a song I wanted to purchase but I decided to return to my library to make sure that I didn't already have that song. When I clicked on I tunes store to return to the store nothing happened. The store would not open. Now no matter what I do the I tunes store will not open. I don't know what to do about this problem. Please help. This is very frustrating.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
    /var/log ▹ install.log
    from the hierarchical list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, start over and note the time. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • No matter what i do it don't work or fix this mozilla crash report help

    when i play farmville it crashes about ever 5 to 10 min.i have tryed all i know to do i
    can not find a fix no matter what i do

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

Maybe you are looking for