JOptionPane chopping off longest line

I am using JOptionPane and am seeing a strange behavior
on Solaris platform ... the longest line is always
chopped off at the end. For instance, if the last
word is "help", then it will show "h...".
I have tried adding "\n" to shorten the line, but then
the next longest line will have its end chopped off the
same way!
I'm using the showMessageDialog() member function.
This undesirable behavior does not happen on PC machines.
All help is appreciated!
Thanks.

Hi mwong,
Even i had that problem. I added html tags with br inbetween in the String and it worked. I have added a piece of code below. check that.
JOptionPane.showMessageDialog(frame,"<html>Eggs aren't supposed to be green. <br>Eggs aren't supposed to be green. <br>Eggs aren't supposed to be green. <br>Eggs aren't supposed to be green. <br>Eggs aren't supposed to be green. <br>Eggs aren't supposed to be green. <br>Eggs aren't supposed to be green. <br>Eggs aren't supposed to be green. <br>Eggs aren't supposed to be green.</html>");

Similar Messages

  • Adobe 9 Viewing Problem - Lines being chopped off

    Our older documents can not be read in Adobe 9 and it appears as if each row is being chopped off horizontally. Sometimes there will be an error message, "Cannot extract the embedded font 'F0'".
    All searches on this shows that this was a bug when Adobe 8 was first released and a patch was produced to fix it.
    Anyone know of a solution? It's really affecting us.
    Thanks.

    I'm having the same problem and it's disconcerting. I'm running Windows XP SP3 and PDFs from certain sources (all external) will not render properly; the bottom half of each line is missing. I've opened these files with Preview (Mac) and Foxit (Windows) and they render fine, so it's not the PDF file.
    I checked the file properties on the files that don't work and they have the same basic properties as files that do work (PDF version 1.3). I tried changing numerous settings in the Preferences of Reader with no luck.
    I finally had to uninstall 9 and install 8.1.3 to get around this issue.
    Adobe needs to address this problem.
    D. Haines
    IT Manager

  • Text wrap issue:ShowDetaillItem chop-off in the PanelAccordion.

    Issue: Text wrap issue in ShowDetailItem header. Tittle of the S+howDetaillItem+ chop-off does not display completely in the PanelAccordion.
    I have a few texts that does not wrap in ShowDetailItem Header used for the panel accordion. I could not fix it after trying a few options like changing the css skin, and in the design property inspector.
    Please suggest a way to fix this.
    Oracle Jdeveloper 11.1.1.5 is the version.
    Windows XP professional sp3
    Edited by: 899970 on Nov 30, 2011 11:34 AM

    Thanks for your response.
    Yes, we dont have enough room on the page.
    I want the text to wrap and display in the second line as it has more no. of letters compared to the other texts available.
    Please suggest me a way to get the text displayed the way I want it to be.
    Thanks
    Sam
    Edited by: 899970 on Nov 30, 2011 3:13 PM

  • VB 2008 and CR 2008 (chopped off vertical text)

    I have an annoying error that does not make any sense to me.  My development environment consists of Visual Basic 2008 Professional as well as Crystal Reports 2008.  I was first using the Crystal Reports 2008 Basic that came packaged with Visual Basic, but I found myself needing more control over my reports.
    In my application I also use the Visual Basic 2008 PrintPreview and PrintDocument classes to generate custom printing code.  
    All my reports in my project are embedded.  They all work fine when previewed/printed and there are no problems whatsoever.  The only problem is if I call my custom printing code that uses the Visual Basic 2008 PrintPreview and PrintDocument classes.
    If I call my custom code, any report I try to preview/print through the Crystal Report Viewer has all the vertical lines chopped off.  I tried increasing the text size of my fields, made sure CanGrow was selected, and made sure the Page Setup in my report was using the "No Printer" option.
    Here is what I am talking about (click link):
    [http://www.trendytechnology.com/bad_report.JPG]
    In comparison, here is what the report should really look like:
    [http://www.trendytechnology.com/good_report.JPG]
    Is there anything I should be looking at in the PrintOptions object in Crystal Reports?

    Which printer are you using?
    Is the printer local or a network printer?
    Is your app a Windows or WEB application?
    Do you have any third party Custom frame controls installed that can modify the windows frame size and color etc. installed?
    Have you tried selecting different printers? You can install any Printer for testing, set the output or Port to a file or LPT1 and then pause the printer. You can then delete the print jobs.
    Try setting the report to your default printer and adjust the margins so there is plenty of space around the margins. By default if no printer is defined we use MS's Generic Print driver, I have heard there are problem with it too.

  • Mavericks Mail Message List Font Chopped Off

    Has anyone seen this?
    After upgrading to Mavericks my friend now sees his Mail Message List rather limited.  My question concerns the "From" text line and the "Subject" text line that appears chopped off in the screenshot shown above (I've blurred a portion of the addresses, and those messages really have "no content").
    Any idea as to what would be causing this?  The text font appears oversized and not in alignment with the date but I don't know how to fix it.
    Thanks

    Problem solved.
    TinkerTool was installed and was configured with large text fonts.  Changed font size back down to size 12 and everything now looks normal.

  • Part of the letter W chopping off ! - need help

    Hi
    I wonder if anyone can help. I sometimes get part of the
    letter W chopped off when it is an uppercase W and the first
    character in a line of text. Havent had this problem for many
    years. This only happens in IE (6&7)
    There is a solution around it of course which is to add a
    couple of pixel of padding to the text or the div but i was
    wondering why it happens and if there is another fix for it so i
    dont have to alter all of my padding setting throughout the site
    which will mean i'll have to tweak all my grids etc.
    Havent had the problem for a while now but this has raised
    its head again and cant find much about it when i google for the
    problem which means i would have thought its not that commen,
    leading me to think its something else im doing??
    Any help would be greatfully appreciated. To see it in action
    view
    http://www.positivenewmedia.co.uk/preview/_jenkstest/employesurveys/about_us_section/about us.asp
    in internet explorer.
    Cheers
    Mike

    Your "W" look fine on my computer in IE7. Could this be a
    display issue on
    your monitor .. or perhaps a text size setting problem in IE
    on your
    machine?
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Mrjenks" <[email protected]> wrote in
    message
    news:f97cm9$cms$[email protected]..
    > Hi
    >
    > I wonder if anyone can help. I sometimes get part of the
    letter W chopped
    > off
    > when it is an uppercase W and the first character in a
    line of text.
    > Havent had
    > this problem for many years. This only happens in IE
    (6&7)
    >
    > There is a solution around it of course which is to add
    a couple of pixel
    > of
    > padding to the text or the div but i was wondering why
    it happens and if
    > there
    > is another fix for it so i dont have to alter all of my
    padding setting
    > throughout the site which will mean i'll have to tweak
    all my grids etc.
    >
    > Havent had the problem for a while now but this has
    raised its head again
    > and
    > cant find much about it when i google for the problem
    which means i would
    > have
    > thought its not that commen, leading me to think its
    something else im
    > doing??
    >
    > Any help would be greatfully appreciated. To see it in
    action view
    >
    http://www.positivenewmedia.co.uk/preview/_jenkstest/employesurveys/about_us_sec
    > tion/aboutus.asp
    > in internet explorer.
    >
    >
    > Cheers
    > Mike
    >

  • How can I get TV shows viewed through Hulu Plus on the Apple TV 3 to show as widescreen with black bands above and below the screen shot instead of chopping off the sides on my non-widescreen TV?

    I just bought a new Apple TV 3 today so I can watch shows from Hulu Plus without having to physically plug in separate audio and video cables from my Macbook Air to the TV every time. I have a non-widescreen TV and when I normally watch Hulu Plus on the TV (though Safari on my plugged in Macbook Air as mentioned above), the entire wide screen shot is shown with black bands above and below the sceen shot since I am watching a widescreen program on a non-widescreen TV.
    However, I noticed that when I watch the same show through Hulu Plus on my new Apple TV 3, the left and right edges of the shot are chopped off to make the program fill my non-widescreen TV. This bothers me because I would like to see the full shot and not just the chopped off middle portion. This is a real bummber because watching Hulu Plus without having to plug in my laptop is the only reason I bought the Apple TV. Is there anything I can do about this?
    Thanks!
    (FYI: I have the very first Macbook Air that is not capable of mirroring)

    How are you actually connected to the TV?  Does it have HDMI?  Most non-widescreen TVs would not.
    I would suspect a converter is either not outputting properly, your TV not interpreting the signal properly or you have some form of Zoom setting enabled on the TV.
    How does your TV handle widescreen from say cable or terrestrial TV sources ?
    Unfortunately AppleTV is not designed to be used with non-widescreen TVs so there's no setting on AppleTV to tweak.
    AC

  • TS3989 Photos are ok in aperture and iphoto but in photostream on ipad and iphone the top of all portrait photos is chopped off. I tried switching photostream off and on but got the same. Only happened with photos added today, all past photos are fine

    I have never had any problems before but all portrait photos added today have the top chopped off. For example , people's heads are missing or roofs or buildings are chopped off. Photos are fine on the camera and on my mac in iphoto and aperture. Switched off photostream on my ipad...all photos were deleted. Switched photostream back on and all photos uploaded again and portrait photos are cropped again

    It sounds like while trying to import the photos with insufficient disk space those image files were damaged and not copied fully.  Now that you have sufficient space (a minimum of 10 GB is recommended) the latest imports are good.
    What do you get if you export one of the problem photos out of iPhoto as Kind=Original and try to open it with Preview.  If it appears the same then there's nothing you can to do recover them.
    OT

  • 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

  • Problem with Flex print- characters are being chopped off

    help please

    Bottom of the page characters are being chopped off I am
    using
    private function doPrint():void {
    var myPrintJob:FlexPrintJob = new FlexPrintJob();
    myPrintJob.start();
    myPrintJob.addObject(printArea1);
    myPrintJob.send();
    Code is:
    <mx:Canvas backgroundColor="white" height="70%"
    width="100%" visible="true">
    <!-- The following part of the code being executed when
    user clics on Print Button -->
    <mx:VBox width="90%" height="100%" visible="true"
    id='printArea1' includeInLayout="true">
    <mx:VBox paddingLeft="0" paddingRight="0"
    horizontalGap="0" >
    <mx:HBox>
    <mx:VBox width="20%">
    <mx:HBox>
    <mx:Label styleName="printFont" text="Role:"
    width="50"/>
    <mx:Label styleName="printFont"
    text="{role.selectedItem.DAFYROLE}"/>
    </mx:HBox>
    </mx:VBox>
    <mx:VBox width="40%">
    <mx:HBox id='idPrintFacility'>
    <mx:Label styleName="printFont" text="Facility:"/>
    <mx:Label styleName="printFont"
    text="{facs.selectedItem.LABEL}"/>
    </mx:HBox>
    </mx:VBox>
    <mx:VBox width="30%">
    <mx:HBox>
    <mx:Label styleName="printFont" text="Patient:"/>
    <mx:Label styleName="printFont"
    text="{patient.selectedItem.LABEL}"/>
    </mx:HBox>
    </mx:VBox>
    </mx:HBox>
    <mx:HBox>
    <mx:VBox width="20%">
    <mx:HBox>
    <mx:Label styleName="printFont" text="Filter By:"/>
    <mx:Label styleName="printFont" text="{filter.text}"/>
    </mx:HBox>
    </mx:VBox>
    <mx:VBox width="40%">
    <mx:HBox>
    <mx:Label styleName="printFont" text="From"/>
    <mx:Label styleName="printFont"
    text="{fromDate.text}"/>
    <mx:Label styleName="printFont" text="To"/>
    <mx:Label styleName="printFont" text="{toDate.text}"/>
    </mx:HBox>
    </mx:VBox>
    </mx:HBox>
    </mx:VBox>
    <mx:Repeater id="idCatsx" dataProvider="{myNotes}"
    width="100%" >
    <mx:HBox id="idCatLabel">
    <mx:HBox>
    <mx:Label styleName="printFontBold"
    text="{idCatsx.currentItem.LABEL}" fontWeight="bold" />
    </mx:HBox>
    <mx:HBox>
    <mx:Spacer width="10"/>
    </mx:HBox>
    </mx:HBox>
    <mx:HBox width="100%">
    <mx:VBox width="10%">
    <mx:Spacer width="10"/>
    </mx:VBox>
    <mx:VBox width="90%" height="100%">
    <mx:Repeater id="idTipsx"
    dataProvider="{idCatsx.currentItem.NOTES}" >
    <mx:HBox width="100%" verticalGap="0" >
    <mx:VBox>
    <mx:Label styleName="printFont"
    text="{idTipsx.currentItem.NOTES_DATE}" />
    </mx:VBox>
    <mx:VBox height="100%">
    <mx:HBox height="100%">
    <mx:Text width="500" styleName="printFont"
    text="{idTipsx.currentItem.NOTE_TEXT}" />
    </mx:HBox>
    <mx:HBox height="100%">
    <mx:Text styleName="bold" width="600"
    text="{idTipsx.currentItem.ADDMODIFYTEXT} on
    {idTipsx.currentItem.TIME_STAMP} for Assessment
    Date:{idTipsx.currentItem.ENCDATE_DATE}" />
    </mx:HBox>
    </mx:VBox>
    </mx:HBox>
    <mx:HBox verticalGap="0">
    <mx:VBox width="100%" verticalAlign="top" verticalGap="0"
    height="100%">
    <mx:VBox >
    <mx:Repeater id="idHistx"
    dataProvider="{idTipsx.currentItem.HIST}">
    <mx:HBox width="100%" >
    <mx:VBox>
    <mx:Spacer width="115"/>
    </mx:VBox>
    <mx:Canvas height="100%">
    <comp:StrikeThroughText width="500" height="100%"
    styleName="printFont"
    text="{unescape(idHistx.currentItem.NOTE_TEXT)}"/>
    </mx:Canvas>
    </mx:HBox>
    <mx:HBox>
    <mx:VBox>
    <mx:Spacer width="115"/>
    </mx:VBox>
    <mx:VBox height="100%" width="100%">
    <mx:Text width="600" styleName="bold" text="Notes
    {idHistx.currentItem.ADDMODIFYTEXT} on
    {idHistx.currentItem.TIME_STAMP} for Assessment
    Date:{idTipsx.currentItem.ENCDATE_DATE}" />
    </mx:VBox>
    </mx:HBox>
    </mx:Repeater>
    </mx:VBox>
    </mx:VBox>
    </mx:HBox>
    </mx:Repeater>
    </mx:VBox>
    </mx:HBox>
    </mx:Repeater>
    </mx:VBox>
    </mx:Canvas>

  • SSRS web based report viewer control rendering issues - text getting clipped chopped off

    Hi,
    I am using web based SSRS report viewer control to display SSRS reports in browsers like Chrome, FF, IE, Safari etc. My issue is some text is getting chopped off (clipped) in all cells of some reports. I investigated on my end by analyzing generated HTML
    and I could see a problem in the HTML that report viewer control is generating. But I am afraid to apply any HTML or Javascript hacks at the moment considering we have hundreds of reports.
    You can see in above image how text got chopped off. The problem in HTML (given below) is the text has been wrapped in a div tag with a fixed height. If I remove the height and also padding on parent TD, the text appears properly.
    <td class="A23dfe7c5f99245f2a0db522a22a6035597c" style="HEIGHT:5.00mm;background-color:#d3d3d3;"><div style="HEIGHT:3.24mm;overflow:hidden;"><table lang="en-US" cellspacing="0"
    cellpadding="0" border="0" class="Pd9776e5f7eaf4df696265b8b49d1da39_1_r17"><tbody><tr><td class="A23dfe7c5f99245f2a0db522a22a6035597" style="word-wrap:break-word;white-space:pre-wrap;">MyType11</td></tr></tbody></table></div></td>
    Please let me know if you have faced a similar scenario before.
    Here is link to stackoverflow thread -
    Stackoverflow thread
    Regards
    Murtaza

    Hi Murtaza,
    According to your description, when you display the report with Report Viewer control, the data within the text is cutoff.
    Based on my research, the issue could cause by that Arial Unicode MS font hasn’t been installed on the server where Reporting Services run. Besides, when we use ReportViewer control to render report, we’d  better set
    AsyncRendering="true" in the Report Viewer control. Also please run the IE with compatibility mode. For more information, please refer to similar threads below:
    Data in column getting cut-off in report viewer control
    SSRS Rendering Issues
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • When I Share my project using QuickTime the top of my video is chopped off, how do i fix this?

    when I Share my project using QuickTime the top of my video is chopped off, how do i fix this?

    What version of Premiere Elements and on what computer operating system is it running?
    - Mac OSX; Premier Elements 11 v11
    Where is the audio in the project - numbered audio tracks, Narration Track, and/or Soundtrack? Any chance that you are using a XviD.avi file?
    - audio is either in the soundtrack , or in audio 2 when part of a video
    Besides the full properties of your source file including file extension, what are the full export settings that you are using presumably for Publish+Share/Computer/MPEG?
    - i was just using the default for MPEG, which is the NTSC DVD standard, file type MPEG2-DVD
    What player are you using? Does the file playback video and audio using the VLC player? Does the problem exist in a new project?
    - i have tried in quicktime and VLC, both have the same effect (picture works, staccato background noise).  I have not tried in another file, but will do so now.

  • Landwide(pasta) report gets chopped off on right hand side

    Hi
    I am printing a report(Transaction Register) in landwide(HPW drivder), using Pasta and the report is getting chopped off on the right-hand-side.
    What do I need to do to fix this?

    Could you please share the initialization, because I have the same issue but mine was chppoed off left hand side. Which initialization i need to fix? thanks

  • Illustrator is chopping off a part of my image when exporting

    Okay so I have an image I created on a canvas that is larger than the image. When I export the image as a png, I get the image without any of the white space there was surrounding in illustrator and a very small part of the image is actually chopped off ... Is there anyway I can get illustrator to export the entire canvas or at least not chop off a part of the image if it is going to auto-crop?
    Thanks

    Add a rectangle the size of your artboard, or at least larger than the rest of the artwork, fill it with white but no stroke and send it behind the rest of the artwork. Save and export. The result should be the size of the white background.
    Not a good solution if you want the background transparent. In that case, put a stroke around the rectangle but no fill. Then, upon export, open it in Photoshop and crop out the stroke around the outside. If you are using some other program to manipulate it, you should be able to crop out the stroke there as well.

  • I customize my paper size and print size and am then viewing a photo on my screen. I print it out and it chops off about 5% of all edges of my original photo on the screen. Why does it do that? It is driving me crazy. I use an Epson Photo 2200 printer.

    I customize my paper size and print size and am then viewing a photo on my screen. I print it out and it chops off about 5% of all edges of my original photo on the screen. Why does it do that? It is driving me crazy. I use an Epson Photo 2200 printer

    What print and paper sizes are you using?  Are you trying to print a borderless print?  Does your printer support borderless for that particular size?  Are you printing to the custom stock size or to a larger stock size?
    OT

Maybe you are looking for

  • Finder repeatedly beachballs in Mavericks on 2009 iMac.

    I have a 3.06 GHz Core 2 Duo iMac with 8gb ram running Mavericks. In both 10.9.2 and 10.9.4 it will beachball for 15-30 seconds every time I try to do anything in finder. Force Quit Applications will show Finder (not responding) while this is happeni

  • New account modifier for movement type 453

    Hi, I want to define new account modifier ZZZ in addition to the existing account modifier VAX for the account key GBB and movement type 453. Using SM30 i tried to update new entry  in V_156X_VC  but it is giving the error   "Target key must be diffe

  • Mac crashing...Help!

    Hi there. I have had my Macbook Pro since Jan 2010 and have had the occasional problems. In Nov last year I decided to reinstall Mac again due to lack of space and my Mac getting slow. This all went well, I installed it succesfully and I was using Bo

  • AI/PDF/... - SWF with *original* images?

    Using Xara, I have created a vector illustration. However, when exporting it to SWF, Xara re-rasterizes all images to a common resolution. I do not want that! I want to have the images untouched, because later I want to zoom in on them (in Prezi). I

  • "Account" application not found.

    Recently, I wanted to change my password. But when I opened System Preferences, I could not find an "Account". Is there supposed to be a file/folder somewhere so I can open this application? I tried by using "help", but all I get is "may be disabled