Safari and word wrapping in Yahoo Groups

I have just discovered that the reason why all my Yahoo Group posts are horribly formatted is because I am using Safari. As soon as I use Internet Explorer it works fine. Is this a known problem, and is there anything I can do about it.

Hi
This is an on-going Yahoo problem. Same formatting problem occurs in Firefox. As you discovered, the best remedy is Internet Explorer.
You may want to contact Yahoo via their customer support link. However, given Yahoo's anti-mac/safari position over the past xxx years, I would not expect a reasonable answer.

Similar Messages

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • Can't Open Safari and Word at Same Time

    Urged my daughter-in-law to replace her old PC with a new iMac. she did and loves it. But now ther is this glitch that she has asked me for help with. I am stuck — thinking there was a simple selection item somewhere. But if there is, I can't find it. any ideas? Basically, the problem is this: when she trys to rum Safari and Word at the same time, one window disappears when the other application is selected in the dock. Then the other application will appear when selected but the one in the window disappears — nothing crashes. Here's how she describes it:
    I could see both windows when I had iphoto and itunes open, but it wouldn't let me have itunes and word open simultaneously, or itunes and safari open simultaneously, or word and safari open simultaneously (as we already knew).  I could have iCal open with the other programs at the same time (I just wanted to try another program in the dock to see what happened).  I dunno... still it doesn't seem like a faulty operating system.... just a quirky way of organizing opened windows.... I wonder if it has to do anything with the function of using the command + tab function to scroll through open programs. I vaguely remember setting that up, or finding that function somewhere when I first was getting used to this computer and maybe that has something to do with it.
    Any ideas?

    Is she using an account with parental controls enabled and the Simple Finder option turned on?
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8166.html
    If not, the only other thing that comes to mind (other than Spaces issues, which I don't use and thus can't comment on) is that maybe she's holding down the option key when switching apps, or has installed some third-party software that does this sort of thing.
    Edit: I knew I'd seen this recently... someone else was having this problem due to LaunchBar:
    http://discussions.apple.com/thread.jspa?messageID=11997803&#11997803

  • On reboot - wallpaper, safari and word change to previous settings.

    Hi,
    Thanks in advance for help. As aforemetioned, on reboot the computer seems to revert to an earlier state, where the desktop wallpaper changes to previous setting from a couple of days ago, with safari and word automatically opening with articles and webites that were open and being used at that time.
    I am still able to open and save new documents, but the computer seems to revert back to this 'set-point' on restart, meaning i have to close these webpages everytime, and change my background picture too.
    I updated to lion 10.7.3 just before this started to happen, too.
    Thanks.

    Try disabling the Lion "resume" feature...
    Open System Preferences > General
    Deselect:  Restore windows when quitting and re-opening apps
    Restart your Mac.

  • I'm unable to connect to my yahoo e-mail server on my IPAD2, even though I can use safari and get to my yahoo account and mail.?

    I'm unable to connect to my yahoo e-mail on my IPAD2 since I have installed the new software?  I can use safari and navagiate to my yahoo e-mail and get e-mail.  I'm also unable to connect to the Icloud.  Does anyone know what I may be doing wrong and how to fix it.

    What does it have to do in iPad forum?

  • What can i do my computer freezes when i use safari and word document?

    My computer freezes when I am using Safari and word document. Can some help me??

    The same thing just happened to my new ipod today while i was trying to use an app. A lot of people say that it is caused by an ios update, but I let the battery on my ipod drain until it turned off.  Once i charged it, it turned on and is working normally again

  • Safari and Word keep shutting down, any idea why?

    I have a Macbook since a little more than 3 years, but recently Safari and Word keep shutting down. Is there any way to fix this or my laptop is going to die?

    Are you sure its those two programs or is it a mac fault, if not you could try reinstalling the software

  • Safari and FireFox hosed on Yahoo, Flickr, Corporate Website (telecommuter)

    Good evening,
    My wife has been experiencing a setback with Tiger since 10.4.7. She cannot login to her Yahoo groups, her Flickr account, or her corporate website for work. She can get access but going deeper than one level simply times out, both my Thinkpads work just fine. But, in the interest of checking everything I upgraded our network by installing a new, different brand, PPPoE router. She has the problem over wireless or wired connections. If that was not enough, both our other Minis are experiencing the same issue. One PPC, one Intel Mini.
    We are both well acquainted with Macs having used them since 7.5.1. We have covered all the normal bases. I am a systems administrator having worked with Macs, Unix, Linux, Solaris, and Windows. It ain't our network.
    We searched the forums for answers and some of them even worked. here is the rundown of what we have done, and what the results were.
    Create a new user account to isolate the problem.
    Result = Problem solved, no issues with Yahoo or Flickr
    Tossed Safari cookies
    Tossed Safari prefs com.apple.safari.plist
    Fixed permissions
    Result = Problem solved for original user.
    Wait one week, problem returned. Went through the above procedure and everything worked again.
    Wait another week, problem returned. Went through the above procedure and the problem did not go away. Tried the second account we created to isolate the problem and now the second account has the same issue. Installed FireFox, no difference, problem persists.
    We are seriously considering wiping the HardDrive and reinstalling the original shipped OS, then turning off SoftWare Updates, but that seems to much like a "Windows" solution to us.
    I am out of options, does anyone have a permanent solution to this problem?
    Thanks,
    DAve
    Message was edited by: yellowhousejake

    Ok, here is where we stand. We tried all manner of updates, including combo patches. Problem still exists, on all three Mac Minis. My work laptop (XP Pro) has no issue.
    2 Mac Minis(PPC) at 10.4.11 Safari 3.0.14
    1 Mac Mini (Intel) at 10.4.11 Safari 3.0.14
    Our network has been replaced, yes, replaced. New LinkSys PPOE router, new switches. All the Macs have been added to a 100mb full duplex lan. No airport.
    We went so far as to reformat and reinstall Tiger from the original DVDs on all three Minis. With no software other than the install DVDs the problem returned.
    At this point we allowed the Minis to complete a software update, hopefully to get only the newest updates.
    No joy. You can go to maps.yahoo.com, login as a yahoo user, and attempting to logout will causes the pages to fail to load. Spinning cursor ****. Mapquest will fail sooner. Yahoo groups, Flickr, Facebook, etc. All hosed.
    Answers to Bee;
    - We tried the 10.4.10, problem returned, that was when we did a full format and reinstall.
    - The new users works, for a while. I suspect a cron job is the culprit, is there anything modifing perms (expecialy cookie permissions) on a schedule?
    - Firewall? no. There is nothing in the Linksys that should block access, I had my wife leave her Mac firewall OFF. My XP Pro machine uses the same network. We are all on DHCP. I had two servers in here last week, another work laptop, and three VMWare guests all running and having no issues accessing the internet.
    I hesitate to go to an Apple store, if they tell me an upgrade to 10.5 will fix the problem I will spaz out. I am also not too keen on paying to fix an issue I see as not a user created problem.
    I need direction, advice, a drink. The Macs are all but unusable for internet access at this point, if a website requires a login it's a crapshoot whether it will work or not. My wife has artwork and several classes on Flickr and Yahoo, right now she can't do anything.
    Help.

  • If my macbook's memory pressure goes red with just Safari and Word open, is it just a memory issue?

    Hello all,
    I'd really appreciate any input on this issue. I'm not especially expert with regard to computer systems and software, so I ask that you please bear with me; I'll try to provide the best information I can. What has been happening with my computer is that it has been freezing and crashing, even with only Safari and Microsoft Word open. More information about the system as well as what I've done so far is below.
    I have a mid-2012 13-inch Macbook Pro with a 2.5 GHz Intel Core i5 processor, 4 GB 1600 MHz DDR3 memory (two 2 GB cards), and an Intel HD Graphics 4000 card. I am running I have approximately 280 gigs free on my 500 GB Apple HDD. I am running OS X 10.9.3 (13D65), Kernel version Darwin 13.2.0.
    In March or April of this year, my computer started seriously slowing down and freezing and crashing. (I think that this was around the time I upgraded to Mavericks, but am not 100% positive.) Since it is my only computer and I'm a PhD student, it took me until May to seriously address the issue. I ran Apple hardware diagnostics and the disk utility (verified the disk; verified & repaired the permissions), and tried uninstalling programs I thought might be causing issues, but nothing improved. Since it didn't appear to be a hardware issue, I decided to do a clean install of Mavericks with a full software update [and didn't use a time machine backup like I'd done in the past; I only backed up files and bookmarks this time and installed new versions of all my programs]. Although my computer ran better for a few weeks, it started slowing down again, and lately has been crashing on a near-daily basis.
    After reading through the fora, I re-ran disk utility (disks check out fine; one permission -- for Safari -- seems to refuse to be repaired), re-ran Apple Hardware test twice (no issues found), and have been running the Activity Monitor [I put it in my dock with the bars showing CPU usage]. Today, when my computer started seriously slowing while I had only two programs open (Safari & Microsoft Word), the Activity Monitor icon on the dock showed all four bars at max.
    I managed to get a few screencaps of the Activity Monitor:
    So, this suggests to me that either (a) I have insufficient RAM to run Mavericks and run basic computer programs, or (b) there is some other issue.
    Do you all have any recommendations as to the best way to proceed? I don't have a lot of cash, so I can't really spend money unless it is really warranted. Would it be worth running OnyX first? Or is this a pretty clear indication that I need new RAM? Alternately, are there any other issues that seem likely (an undetected hard drive problem, etc.)?
    Thank you!

    Hi Melophage,
    Thank you. Although it is possible something was running in the background, in Force Quit, the only applications visible were Finder, Microsoft Word, and Safari.
    I ran Etrecheck and have included the output here:
    EtreCheck version: 1.9.12 (48)
    Report generated July 25, 2014 at 2:17:04 PM EDT
    Hardware Information:
        MacBook Pro (13-inch, Mid 2012) (Verified)
        MacBook Pro - model: MacBookPro9,2
        1 2.5 GHz Intel Core i5 CPU: 2 cores
        4 GB RAM
    Video Information:
        Intel HD Graphics 4000 - VRAM: (null)
            Color LCD 1280 x 800
    System Software:
        OS X 10.9.3 (13D65) - Uptime: 1 day 2:16:0
    Disk Information:
        APPLE HDD HTS547550A9E384 disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted>: 209.7 MB
            Macintosh HD (disk0s2) / [Startup]: 399.25 GB (220.13 GB free)
            Recovery HD (disk0s3) <not mounted>: 650 MB
            BOOTCAMP (disk0s4) /Volumes/BOOTCAMP: 100 GB (58.85 GB free)
        HL-DT-ST DVDRW  GS31N 
    USB Information:
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Computer, Inc. IR Receiver
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
    Thunderbolt Information:
        Apple Inc. thunderbolt_bus
    Gatekeeper:
        Mac App Store and identified developers
    Kernel Extensions:
        [not loaded]    com.millisecond.driver.InquisitParallelPort (2285 - SDK 10.8) Support
        [not loaded]    edu.sissa.iokit.ioLabResponseBox (2.0 - SDK 10.6) Support
    Problem System Launch Daemons:
        [failed]    com.apple.installd.plist
        [failed]    com.apple.wdhelper.plist
    Launch Daemons:
        [loaded]    com.adobe.fpsaud.plist Support
        [running]    com.daz3d.content_management_service.plist Support
        [loaded]    com.google.keystone.daemon.plist Support
        [loaded]    com.microsoft.office.licensing.helper.plist Support
        [loaded]    com.oracle.java.Helper-Tool.plist Support
        [loaded]    net.cloudpath.HelperTool.plist Support
    Launch Agents:
        [loaded]    com.google.keystone.agent.plist Support
        [loaded]    com.oracle.java.Java-Updater.plist Support
    User Login Items:
        iTunesHelper
        RescueTime
        Dropbox
        Activity Monitor
    Internet Plug-ins:
        FlashPlayer-10.6: Version: 14.0.0.145 - SDK 10.6 Support
        Default Browser: Version: 537 - SDK 10.9
        Flash Player: Version: 14.0.0.145 - SDK 10.6 Support
        QuickTime Plugin: Version: 7.7.3
        o1dbrowserplugin: Version: 5.4.2.18903 Support
        SharePointBrowserPlugin: Version: 14.4.3 - SDK 10.6 Support
        googletalkbrowserplugin: Version: 5.4.2.18903 Support
        Silverlight: Version: 5.1.30317.0 - SDK 10.6 Support
        MeetingJoinPlugin: Version: (null) - SDK 10.6 Support
        JavaAppletPlugin: Version: Java 7 Update 55 Check version
    Safari Extensions:
        Ebates: Version: 3.0.2.5
        Save to Pocket: Version: 1.9.1
        PriceBlink: Version: 4.1
        Evernote Web Clipper: Version: 6.1.3
        Hukkster: Version: 1.1
        Add To Amazon Wish List: Version: 1.8
        Instapaper: Version: 1.2.1
        Coupons at Checkout: Version: 1.1
    Audio Plug-ins:
        BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
        AirPlay: Version: 2.0 - SDK 10.9
        AppleAVBAudio: Version: 203.2 - SDK 10.9
        iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
        Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    3rd Party Preference Panes:
        Flash Player  Support
        Java  Support
    Time Machine:
        Time Machine not configured!
    Top Processes by CPU:
            23%    firefox
             4%    WindowServer
             0%    fontd
             0%    Activity Monitor
             0%    sysmond
    Top Processes by Memory:
        818 MB    firefox
        111 MB    com.apple.IconServicesAgent
        102 MB    Finder
        98 MB    Microsoft Word
        94 MB    mds_stores
    Virtual Memory Information:
        311 MB    Free RAM
        1.49 GB    Active RAM
        1.22 GB    Inactive RAM
        895 MB    Wired RAM
        3.49 GB    Page-ins
        159 MB    Page-outs
    [Looking at the output, I would like to point out that Daz 3D is newer than the issues I've been having; I just recently installed it for a research project.]
    Does anything stand out to you? Thanks!

  • DataGrid, HTML Text, and WORD WRAPPING

    I have a datagrid, with 2 columns:
    - comment
    - date
    The dataprovider that feeds the datagrid is an array
    collection, with each object containing the following fields:
    - comment
    - date
    - viewed
    What I want to do is BOLD the comment cell if the comment has
    not yet been viewed. What I first tried doing was to just insert
    the <b></b> tags on the server and then feed them up to
    Flex. So here's the code that I had tried to do this with:
    <mx:DataGridColumn>
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Label htmlText="{data.comment}" />
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    This works, but I lose the word wrapping for long comments (I
    have wordwrap="true" defined on my DataGrid).
    Then I tried changing my approach and doing something a
    little more simple to try and preserve the word wrapping, like
    this:
    <mx:DataGridColumn dataField="comment" width="100"
    wordWrap="true" fontWeight="{(data.viewed==0 ? 'bold' : 'normal')}"
    />
    Yet that doesn't seem to work either, it appears to just
    completely ignore everything... no bolding whatsoever.
    So my question is: what's the best to to control the BOLDING
    of a DataGrid cell while at the same time retaining the word wrap
    features?
    Thanks,
    Jacob

    <mx:DataGridColumn>
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Label htmlText="{data.comment}"
    wordWrap="true" height="100%"/>
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    You might also have a little more luck working with a
    TextArea

  • Text area and Word Wrapping

    I am creating a email form and am having problems with word
    wraping in the text area. You can view the page and the output if
    you put your email address in the form. The problem is the text
    areas word wrap when inputting your information but all formatting
    is lost in the email. Even if I add spacing for paragraphs. All
    data is just a big run on sentence.
    Here is the
    Page.
    I am using Dreamweaver * and php.
    Thanks

    Someone may have tried this because I received this output in
    an email. You can see the formattint is lost.
    Gear Ad:
    Description:
    This is a test. Line 1 Line 2 Line 3 Line 4 -
    Test...test...test...test...test...test...test...test...test...test...test...test...test. ..test...test...test...test...test...test...test...test...test...test...test...test...test ...done!
    Price:
    test
    Contact:
    This is a test.

  • [Solved]Conky and word wrapping - Is there a way?

    So I have a very limited area to work with, something like 176x360 (+/- a few pixels), and I want the ability to show an RSS feed. Well, the feed works of course, but due to the limited width, I'm in great need of word wrapping, and for that problem I have found no solution and going on for 2-3 hours straight, my head hurts
    Anyway, here's my .conkyrc, not that it's needed of course.
    # ~/.conkyrc
    double_buffer yes
    use_xft yes
    xftfont Bitstream Vera Sans Mono:size=8
    xftalpha 0.8
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_colour hotpink
    own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
    minimum_size 176 360
    maximum_size 176 360
    maximum_width 176
    draw_shades no
    draw_outline no
    draw_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color green
    default_shade_color green
    default_outline_color green
    alignment bottom_right
    gap_x 16
    gap_y 16
    no_buffers yes
    uppercase no
    TEXT
    $alignc${nodename}
    $alignc${sysname} ${kernel}
    $hr
    CPU:$alignr$cpu% ${cpubar 10,106}
    RAM:$alignr$memperc% ${membar 10,106}
    HDD:$alignr${fs_used_perc /}% ${fs_bar 10,106 /}
    BAT:$alignr${battery_percent}% ${battery_bar 10,106}
    $hr
    Download: Upload:
    eth0 ${downspeed eth0} $alignr${upspeed eth0}
    wlan0 ${downspeed wlan0} $alignr${upspeed wlan0}
    $hr
    ${alignc}ARCH NEWS
    ${rss http://www.archlinux.org/feeds/news/ 1 item_titles 10 }
    I know this looks confusing and probably is full of critical error, but that simple because I'm a conky noob. I basically just downloaded a profile I liked and completely changed it over the course of a few hours.
    Anyway, I'm rambling again, but if you've got any idea's, please do let me know.
    Best regards.
    Last edited by zacariaz (2012-08-27 17:19:35)

    Okay, so I've found sort of a solution to part of the problem, so what I have so far look like this:
    wget -quiet -O - archlinux.org/feeds/news/ | fmt -w 25 -g 25
    It works as long as there are no words longer than 25 character, which I should think is rare, even including package names and such.
    However there's still the issue parsing the xml so I get only what I want:
    <item><title>$content</title><link>
    This may be solved using some sort of terminal rss parser, but I would rather prefer not to.
    Then there's the issue with reloading.
    My current conky is set to reload every second, but of course one can't just pull the feed every second and I'm not convinced that conky has any built in solution for that problem. Of course I can always start a cronjob and save it all to a file, but portability would be nice.
    anyway, I'll return later.

  • Prob with fixed column widths and word wrapping in viewer

    i have a report where each record has a very long paragraph of text in it.
    In desktop and plus, the text column is at a fixed width and the text just wraps nicely according to the column width.
    But in Viewer, the column widths do not stay fixed, the text does not wrap, and the long text is displayed in a single line that completely stretches the column width off the page and requires a horizontal scroll bar.
    is there anyway to fix the column width in viewer, have the text naturally wrap, and prevent the column stretching. All word wrapping settings are on, but seem to have no effect. I can't seem to find any solution to this.
    Thanks...

    Hi Pritam,
    Per my understanding that you can't see the vertical scrollbar of the ReportViewer controls 2012 to scroll for the grid rows, but can see the vertical scrollbar of the web application, you also can't fix the headers while scrolling, right?
    I have tested on my local environment and can't reproduce your issue, but you have an alternative way to add some css  to the web form's source code to display the vertical scrollbar.
    Details information below for your reference:
    Please check below properties setting of the reportviewer which control the visibility of the scrollbar:
    AsyncRendering="true"
    SizeToReportContent="false"
    Please check if this problem also occur on other version of IE and other type of browser.
    Please check if you have done correct setting of the Fix data to freeze the table header as the step of below:
    http://technet.microsoft.com/en-us/library/bb934257(v=sql.100).aspx
    If step1 doesn't work, please click the source of webform.aspx and add below CSS to add the vertical scrollbar manually:
    #ReportViewer1 {
              overflow-y: scroll;
    Run the application you will see it display as below:
    Similar thread for your reference:
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/f96b3b56-e920-411b-82ea-40467c922e66/reportviewer-control-vertical-scroll-bars
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Oops alv no_zero and 'word wrap' in fieldcatalog

    Hi All,
    I have 2 queations
    1)  Can I have word wrap option in alv, ie any option to display the same cell information in multiple lines and
    2) I am trying to use no_zero of fieldcatalog as shown in below code
        wa_billets_fcat-fieldname = 'ACTUAL_QTY'.
        wa_billets_fcat-inttype  = 'C'.
        wa_billets_fcat-outputlen = '13'.
        wa_billets_fcat-coltext   = 'Actual Qty'.
        wa_billets_fcat-seltext   = 'Actual Qty'.
        wa_billets_fcat-edit      = 'X'.
        wa_billets-no_zero         = 'X'.
        APPEND wa_billets_fcat TO billet_fcat.
        CLEAR wa_billets_fcat.
    but it is giving the error as bellow
    Field "WA_BILLETS-NO_ZERO" is unknow. it is neither is one of the specified tables nor defined by a 'DATA" statement.
    Please help me
    Thanks in advance.

    hi check this....
    wa_billets_fcat-fieldname = 'ACTUAL_QTY'.
    wa_billets_fcat-reptext_ddic = 'Actual quantity'.
    wa_billets_fcat-no_zero = 'X'.
    APPEND wa_billets_fcat TO billet_fcat.
    CLEAR wa_billets_fcat.
    hope this will help for the word wrap..
    http://www.sap-img.com/fu037.htm
    regards,
    venkat
    Edited by: venkat  appikonda on May 10, 2008 4:46 PM

  • Resizing ListCellRenderers using JTextArea and word wrap

    Hi,
    I'm trying to create a ListCellRenderer to draw nice cells for a JList. Each cell has a one line title and a description of variable length. So, I create a custom ListCellRenderer, which consists of a JPanel containing a JLabel for the title and a JTextArea for the description. I set the JTextArea to do wrapping on word boundried and it all almost works.
    But, the list cells don't resize to accomodate the variable height of the cells. They show only 1 line for the title and 1 line for the description.
    I have seen a few threads relating to this including the article, "Multi-line cells in JTable in JDK 1.4+" in the Java Specialists' Newsletter, which seems to do a similar trick for JTables. But so far nothing I've tried works.
    Curiously, using println debugging, my getListCellRenderer method seems to get called for each cell twice while my GUI is being drawn. It looks to me like the TextUI view that draws the JTextArea seems to do the word wrapping after the first set of getListCellRenderer calls. But, it's the first set of calls that seems to establish the layout of the list.
    Any help would be appreciated. I've pulled out quite enough hair over this one.
    -chris
    package bogus;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Font;
    import java.util.ArrayList;
    import java.util.List;
    import javax.swing.*;
    public class CellRendererTest {
         public static void main(String[] args) {
              final CellRendererTest test = new CellRendererTest();
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        test.createGui();
         public void createGui() {
              JFrame frame = new JFrame("Testing Bogus ListCellRenderer");
              JList list = new JList(createBogusListItems());
              list.setCellRenderer(new MyListCellRenderer());
              frame.add(list);
              frame.setSize(200, 400);
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         private MyListItem[] createBogusListItems() {
              List<MyListItem> items = new ArrayList<MyListItem>();
              items.add(new MyListItem("First item", "This is a nice short description."));
              items.add(new MyListItem("Another one", "This is a longer description which might take up a couple of lines."));
              items.add(new MyListItem("Next one", "This is a ridiculously long description which is total gibberish." +
                        "Blah blah blabber jabber goo. Blither blather bonk. Oink boggle gaggle ker-plunk."));
              items.add(new MyListItem("No Desc", null));
              items.add(new MyListItem("Last one", "Boink!"));
              return items.toArray(new MyListItem[items.size()]);
         static class MyListCellRenderer extends JPanel implements ListCellRenderer {
              private JLabel title;
              private JTextArea desc;
              // hack to see if this is even possible
              private static int[] rows = {1, 2, 3, 0, 1};
              public MyListCellRenderer() {
                   setLayout(new BorderLayout());
                   setBorder(BorderFactory.createEmptyBorder(6, 4, 6, 4));
                   setOpaque(true);
                   title = new JLabel();
                   title.setFont(new Font("Arial", Font.ITALIC | Font.BOLD, 11));
                   add(title, BorderLayout.NORTH);
                   desc = new JTextArea();
                   desc.setFont(new Font("Arial", Font.PLAIN, 9));
                   desc.setOpaque(false);
                   desc.setWrapStyleWord(true);
                   desc.setLineWrap(true);
                   add(desc, BorderLayout.CENTER);
              public Component getListCellRendererComponent(JList list, Object value,
                        int index, boolean isSelected, boolean cellHasFocus) {
                   MyListItem item = (MyListItem)value;
                   title.setText(item.title);
                   if (item.description != null && item.description.length() > 0) {
                        desc.setText(item.description);
                        desc.setVisible(true);
                   else {
                        desc.setVisible(false);
                   // uncomment next line to to somewhat simulate the effect I want (hacked using the rows array)
                   // desc.setRows(rows[index]);
                   if (isSelected) {
                        setBackground(list.getSelectionBackground());
                        setForeground(list.getSelectionForeground());
                   else {
                        setBackground(list.getBackground());
                        setForeground(list.getForeground());
                   return this;
         static class MyListItem {
              String title;
              String description;
              public MyListItem(String title, String description) {
                   this.title = title;
                   this.description = description;
    }

    This seems to work
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Insets;
    import java.util.ArrayList;
    import java.util.List;
    import javax.swing.*;
    import javax.swing.text.View;
    public class CellRendererTest {
         int WIDTH = 220;
         public static void main(String[] args) {
              final CellRendererTest test = new CellRendererTest();
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        test.createGui();
         public void createGui() {
              JFrame frame = new JFrame("Testing Bogus ListCellRenderer");
              JList list = new JList(createBogusListItems());
              final MyListCellRenderer renderer = new MyListCellRenderer();
              list.setCellRenderer( renderer );
              JScrollPane listScrollPane = new JScrollPane(list);
              frame.add(listScrollPane);
              frame.setSize(WIDTH, 400);
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         private MyListItem[] createBogusListItems() {
              List<MyListItem> items = new ArrayList<MyListItem>();
              items.add(new MyListItem("First item", "This is a nice short description."));
              items.add(new MyListItem("Another one", "This is a longer description which might take up a couple of lines."));
              items.add(new MyListItem("Next one", "This is a ridiculously long description which is total gibberish." +
                        "Blah blah blabber jabber goo. Blither blather bonk. Oink boggle gaggle ker-plunk."));
              items.add(new MyListItem("No Desc", null));
              items.add(new MyListItem("Last one", "Boink!"));
              items.add(new MyListItem("Ooops this one breaks things by being longer than my fixed width", "Blabber babble gibber flipper flop."));
              return items.toArray(new MyListItem[items.size()]);
         static class MyListCellRenderer extends JPanel implements ListCellRenderer {
              public JLabel title;
              public JTextArea desc;
              Color altColor = new Color(0xeeeeee);
              public MyListCellRenderer() {
                   setLayout(new BorderLayout());
                   setBorder(BorderFactory.createEmptyBorder(6, 4, 6, 4));
                   setOpaque(true);
                   title = new JLabel();
                   title.setFont(new Font("Arial", Font.ITALIC | Font.BOLD, 11));
                   add(title, BorderLayout.NORTH);
                   desc = new JTextArea();
                   desc.setFont(new Font("Arial", Font.PLAIN, 9));
                   desc.setOpaque(false);
                   desc.setWrapStyleWord(true);
                   desc.setLineWrap(true);
                   add(desc, BorderLayout.CENTER);
              public Component getListCellRendererComponent(JList list, Object value,
                        int index, boolean isSelected, boolean cellHasFocus) {
                   Insets insets = desc.getInsets();
                int rendererLeftRightInsets = insets.left + insets.right + 8;  // 8 from panel border
                int topDownInsets = insets.top + insets.bottom;
                int listWidth = list.getWidth();
                int viewWidth = listWidth;
                   int scrollPaneLeftRightInsets = 0;
                   JScrollPane scroll = (JScrollPane) SwingUtilities.getAncestorOfClass( JScrollPane.class, list );
                   if ( scroll != null && scroll.getViewport().getView() == list ) {
                        Insets scrollPaneInsets = scroll.getBorder().getBorderInsets(scroll);
                     scrollPaneLeftRightInsets = scrollPaneInsets.left + scrollPaneInsets.right;
                     listWidth = scroll.getWidth() - scrollPaneLeftRightInsets;
                     JScrollBar verticalScrollBar = scroll.getVerticalScrollBar();
                     if (verticalScrollBar.isShowing()) {
                         listWidth -= verticalScrollBar.getWidth();
                     viewWidth = listWidth - rendererLeftRightInsets;
                   MyListItem item = (MyListItem)value;
                   title.setText(item.title);
                   if (item.description != null && item.description.length() > 0) {
                        desc.setText(item.description);
                        desc.setVisible(true);
                        View rootView = desc.getUI().getRootView(desc);
                     rootView.setSize( viewWidth, Float.MAX_VALUE );
                    float yAxisSpan = rootView.getPreferredSpan(View.Y_AXIS);
                        Dimension preferredSize = new Dimension( viewWidth, (int)yAxisSpan + topDownInsets );
                        desc.setPreferredSize( preferredSize );
                   } else {
                        desc.setVisible(false);
                   title.setPreferredSize( new Dimension( viewWidth, title.getPreferredSize().height ) );
                   // uncomment next line to to somewhat simulate the effect I want (hacked using the rows array)
                   //desc.setRows(rows[index]);
                   if (isSelected) {
                        setBackground(list.getSelectionBackground());
                        setForeground(list.getSelectionForeground());
                   else {
                        if (index % 2 == 0)
                             setBackground(altColor);
                        else
                             setBackground(list.getBackground());
                        setForeground(list.getForeground());
                   return this;
         static class MyListItem {
              String title;
              String description;
              public MyListItem(String title, String description) {
                   this.title = title;
                   this.description = description;
    }

Maybe you are looking for

  • Pinned/saved websites in the "new tab page" disappear when restarting PC

    I'm having some problems with the new tab page. I pinned 9 websites that I use on a regular basis but this morning when I went online again, the pinned websites weren't on that page any more, instead, random websites. How do I save them ?

  • MacBook Pro Retina - Track Pad problem - not responding

    the main click portion of the track pad hardly clicks when using it, and sometimes is not responsive. The right click portion of the track pad is fine. 

  • Method To Prevent Safari 4.0  Webpreview Caching

    This is an experimental technique to disable Safari 4.0 from generating standard, and Webpreview, caches. I am interested in feedback from brave souls :>) It's best to use a test-bench OS. Don't use your everyday OS, or any drive you depend on. Use '

  • Xml data source limit

    Hi I've been having trouble finding information on this, but is there a limitation on the file size of the xml data produced by an apex report query? If I download the xml data in the application builder, I'm finding once the expected xml data size g

  • Consolidation Frequency

    Due to business reasons  consolidation is required on quarterly basis only. Added the 0CALQUARTER infoobject for this purpose to BCS cube. All BCS task need to be executed on quarterly basis only. Now what is the role to assigned to this infoobject,