Border title cut off

I have created a titled border for a panel nested within another panel using:
panel.setBorder(BorderFactory.createTitledBorder("blahblah");
Unfortunately, the title is longer than the panel, so only part of the title is visible. Is there some way to force the panel size to match the border title, without resorting to absolute positioning? I am using layout managers and the title will be translated into different languages.
Thanks.

You should know the font for your title, then use FontMetrics (a class) to "measure" the width of the new title. Then you can resize your panel accordingly.
Cheers

Similar Messages

  • Credit Scroll - Title Effect - Cannot Adjust Border - Text Cut Off

    QUESTION:
    How can I insert 2 - 3 paragraphs into the credit scroll text effect, format it so the sides of it are not cut off, and prevent Final Cut Pro from reverting back to the default text that comes with the video effect?
    SUMMARY:
    I am trying, in vain, to copy and paste 2 - 3 paragraphs that I want to scroll across the page as if they were credits. Furthemore, I am trying to justify the whole thing to the left. The left and right edges of the paragraphs are cut off when I render the video using compressor. There is some kind of white box that holds the text. It appears to be the boundary of the text effect.The text bumps up against the boundary, but I cannot easily tell the text to give itself some space between it and the white boundary. If I double click the text effect I bring up a few difficult-to-use formatting tools. There are little white circles and triangles that appear to represent left tab, center tab, and right tab. Everything I do with these circles and triangles seems to have no impact or screws it up. To further complicate matters it seems when anytime I interact with this rudimentary formatting tool set I cause the entire text effect to default to its original form. I have to quit out of Final Cut Pro and reopen it and repeat the process by repasting the text.

    I gave up and just made an image in photoshop. I then keyframed the image to scroll across as the credit scroll effect should have done.

  • Exporting movie to idvd, titles cut off

    After searching other users problems w/this issue I've tried switching the movie aspect to 4:3 (standard), no luck. Title/captions that are in the upper left, lower right get cut off. In idvd you can use the tv safe area to help you avoid problems like this, but there isn't one (is there?) in imovie.
    ONCE exported to idvd is there a way to shift the captions/titles over, so they are completely visible?
    OR do I have to go back to the movie & re do all the captions/titles?
    thanks!
    using imovie9, MBP, OS 10.5.8

    After searching other users problems w/this issue I've tried switching the movie aspect to 4:3 (standard), no luck. Title/captions that are in the upper left, lower right get cut off. In idvd you can use the tv safe area to help you avoid problems like this, but there isn't one (is there?) in imovie.
    ONCE exported to idvd is there a way to shift the captions/titles over, so they are completely visible?
    OR do I have to go back to the movie & re do all the captions/titles?
    thanks!
    using imovie9, MBP, OS 10.5.8

  • IPhoto Slideshow to iDVD, then dvd to television: titles cut off.

    iPhoto '08(7.1.5) and iDVD '08(7.0.4)
    Created a slideshow in iPhoto using 16:9 format. Exported to iDVD and set dvd to 16:9 format and burned the dvd. The slideshow shows fine on the computer, and the dvd preview also looks fine. When taking the dvd to the television, both a widescreen HD tv and a standard 4:3 tv, the dvd distorts the pictures and the titles on the upper left are cut off. Any suggestions on how to resolve this?
    Thanks
    Kelly

    Kelly:
    Welcome to the Apple Discussions. I believe you can get the entire slideshow image into the TV Safe area this way:
    1 - go to your User/Movies folder and locate the slideshow QT file that iPhoto saved there during the export to iDVD.
    2 - open iDVD and, using the "+" button create a slideshow.
    3 - drag the QT movie file from the Movies folderinto the slideshow window.
    4 - go to the iDVD/Slideshow preference pane and check the "Always scale slides to TV safe area" checkbox.
    5 - go to the main menu and delete the movie that was added directly by iPhoto.
    This will scale the movie to the TV safe area and keep the titles in the viewable area.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

  • Print border cut off

    Hello, I just got a Pixma Pro 10 yesterday and after several hours figuring stuff out (downloading the right software, etc) as my cd/dvd drive is not working. I finally was able to print a test print.
    My issue is that after I made a print, on one side of the print the border is cut off, there's like only a hair's width of a border on the left side, I'm printing in Landscape orientation if that helps. . So only three sides have the white border. I used Canon's Print Studio Pro as well as printing from Lightroom. Printing from Lightroom left a bit more border on the left side but not much. 
    I spent hours up trying to figure out how to fix it but to no avail. If anyone can help I'd really appreciate it. 
    iMac running Yosemite 

    First, you must not let the printer set anything.  Turn off every bit off control it has.  You can do this with the Canon My Printer under the Printer Settings tab.  Do you know how?  I will guess, yes, for now but if you don't get back to me.
    Second, you need to have your photo editor (like Photoshop) handle all the settings and color matching.  You know how to do this? I prefer Photoshop and I use AdobeRGB color space.
    And lastly, it is essential you get some settings on your monitor that somewhat matches what the printer is printing.  Your printer may be doing exactly what you are telling it to do and you have no idea it is, because your monitor is so far off.  If you don't do this step, you can forget the other steps.  However, there are only a few things that you need to be concerned with. You don't need any fancy extra add-ins to do this.  No additional software or gadgets, etc.
    Most people set their monitors too bright.
    You must get the gray-scale very close.  You need to get the brightness very close and you need the contrast very close.
    After you do these things you can make adjustments to your prints by just looking at your screen.  Because you know the monitor and printer are on the same level.  One more point, you can NOT get a printer to print every color exactly the way you saw it.  It isn't possible as all colors and adjustments effect all others.  My goal is to get the skin tones right.  That is what people notice most. Remember you are dealing with two different disciplines here.  One is colored light and the other is colored dyes.  They are not the same thing.
    All the Canon photo printers I have ever seen have a warm/magenta cast.  Canon engineers must prefer this look.  It can not be changed.  You need to "fix" it in post.
    Make sure you have the correct ICC profiles and you are using Canon brand ink and paper until you get good with the printer.  Very, very important, otherwise you don't know if the printer is doing exactly what you are telling it to or not.
    Important is, use the USB connection until everything is right.  You are just adding another issue when you try to set up the printing and the wireless all at the same time.  Just like using Canon branded products until it is a go.  Use a real printer USB cable.  Not just any old USB cable. Get everything right before you explore.
    EOS 1Ds Mk III, EOS 1D Mk IV, EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 85mm f1.2 L II USM, EF 70-200mm f2.8 L IS II,
    Sigma 120-300mm f2.8 EX APO, Photoshop CS6, ACR 9, Lightroom 6

  • Song titles are getting cut off for some reason

    I never had this problem before but for some reason the last few songs I have imported and encoded into AAC have the titles cut off after (I guess) a certain amount of characters. This has never been a problem before. Is there a preference that I need to change? I'm running 7.0.1.8 for Windows.
    I have many other songs with longer titles than the latest I have uploaded. This is a strange new occurence.
    Thanks in advance
    E
    Windows   Windows XP  

    No one else having this problem I take it. Can't find any info regarding character length restrictions.

  • Right side of placed images being cut off when exported to PDF

    Hi all,
    I'm a beginner still trying to wrap my mind around InDesign and all its features, and have encountered a problem with exporting to PDF. The right-most 1-4 pixels are cut off! I think my problem may be related to what was discussed in this thread:
    Indesign, Image problem with PDF export... right side cut-off...
    But my issue has nothing to do with Visio. I'm simply placing PNG and JPG files that have already been created and are stored locally on my computer. I found that the only way to solve this is to add a few pixel columns of white/empty space to my images so the right side frame line in the images (created by Adobe Illustrator) appear.
    Having to alter my images first before placing them in InDesign is obviously not the best or the correct solution.
    Does anyone have any ideas what might be causing this problem and how to correct it? Maybe there's a setting somewhere for image frames that needs to be adjusted?

    Hello again Willi,
    1. I'm using CS6 Version 8.0
    2. Umm... well, I'm VERY embarrassed to say Windows XP (my company is purchasing a new computer for me - I'm using what they have on hand at the moment...).
    3. The graphics are coming from Adobe Illustrator installed on a separate Windows 7 computer. I have a graphic designer colleague who creates images for the installation manuals I put together.
    4. Actually just this morning yet another colleague pointed out that PDF was the better format to use. Yet again I'm VERY embarrassed to say that I used to use Microsoft PowerPoint to create these manuals, and PowerPoint can't import PDF images. I'm trying hard to work with more professional software! That's why my colleague sent me PNG images.
    5. Here's a screenshot below. Remember I'm the guy who asked you that user manuals question in the other thread.
    To explain: the first step's image is in PDF format. The image's border appears fine. The second step's image is in PNG format, and yes, not only does the quality appear to be poorer, but even worse is the fact that the right side border is cut off. This is the same for the same image in JPG format. The other steps don't have images - they're just empty image frames with strokes specified in InDesign.
    Sure, we can use PDFs from now on, but still, the fact that other formats have this issue is bothersome. In Microsoft PowerPoint this wasn't an issue. Any idea?

  • LG Flatron L245WP-BN monitor is cut off at top and has a black border at the bottom of the screen

    LG Flatron L245WP-BN monitor is cut off at top and has a black border at the bottom of the screen. Connected to HP Pavillion laptop via an HDMI cable. Is there any way to align the monitor so the full screen is showing?
    Please help!!
    Thanks
    This question was solved.
    View Solution.

    navers wrote:
    Sorry! It is an HP Pavilion 15 Notebook PC. I can give you the product number if you want? Running on Windows 8.1 64-bit
    Thank you for the additional information.
    Yes, the product number would be helpful.  Please don't provide the Serial #, however.
    I believe your problem may be that the monitor is not compatible with Win 8.1.  The only updates that are available are for Win XP and Vista.  You can find this information in the link that I provided under the section titled "Software Update".
    I suggest contacting LG Customer Service to see if they can help you.
    Please click the "Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • How can I prevent Firefox from cutting off the title of a webpage for use as a file name when printing/saving as PDF if there's a / in it?

    Like it says in the question - when I try to print/save a webpage as a PDF, Firefox (version 36.0, Windows 8.1 64bit, German) usually uses the page's title as the file name. Slashes are, of course, not allowed in file names, but instead of just leaving leaving it out or replacing it with a hyphen, the title is cut off and everything before the last slash is gone, which in some cases results in very odd and misleading file names.
    Is this a known bug? I couldn't find anything. So I'm just wondering if there's either going to be a fix anytime soon, or whether there is a simpler solution than to generate a different title sans slashes specifically for Firefox users.
    Thanks in advance for Your help!

    There is more than one proxy type.<br />
    Only an anonymous proxy will hide the IP and build two connections, one between you and the proxy and a second connection between the proxy and the website that uses an IP from that proxy.<br />
    A normal proxy merely passes all traffic without affecting it, so websites see your IP in such a case.
    *http://en.wikipedia.org/wiki/Proxy_server

  • Gallery title text cut off and cover image not updating

    Hello,
    I've been struggling with this for a couple of weeks now, and it's driving me mad. I've been making a book in iBook Author on my iMac (10.10.2). When I preview it in iBooks on the mac it all looks fine, but when I send it to my iPad2 (iOS 8.2), which I do via dropbox, the front cover image reverts to the default for the template I choose, and gallery and interactive widget title text gets cut off (see attached pic) regardless of the size I make it, or the indent I specify.
    I've tried deleting the book several times, restarted the iPad, and whatever I do it still appears the same.
    I'd be grateful for any suggestions.
    Cheers,
    Kev.

    Hi Christine,
    When you say " It's not there when viewed outside of Cp/swf. Using v5.5.l", does that mean this problem only occurs in a specific output?
    Try this -- Go to preferences-- SWF Size and Quality and under customer, uncheck Advance Project Compression, republish the course and check the results.
    Thanks,
    Anjaneai

  • Text / Titles Get Cut Off After 3 Lines?

    I did some searching but couldn't find a discussion on this. When I add a Title of any kind and try to fill it with more words that fit on the screen (in vertical space) it just cuts them off at the bottom. I've attached an image that shows the third "wednesdays" text in my project and you can see it cuts off the bottom of the Y. If I add a fourth "wednesdays" you don't see it at all. Using the transform tool only stretches the text, it doesn't increase the vertical space available for more text. I am running Lion if it matters.
    Has anyone found a fix for adding more vertical space for text or is this a known bug? Or am I missing something really easy?
    Thanks!

    You should turn on the TV Safe Area and make sure that everything that you care about is within this area. Anything outside the area is subject to the over-scan of TV sets.

  • Song Titles Get Cut Off

    I have decided to convert all of the music on my computer from MP3 to AAC format, but when i convert songs the titles tend to be cut off after 35 characters or less. A good portion of my music has rather long names in the file titles because some of them have either those featured on the song or the name of the album within the file title while they are MP3, but after having converted them to AAC this causes an inconvenience because the title will be cut off at odd places such as just after the "artist - album title" or for example if the song title itself was "portion of the song title" the newly created AAC file will only display "artist - album title - portio" rather than "artist - album title - portion of the song title" as would be preferred. I have tried turning of the option of "Automatically retrieve CD track names from the Internet" and this has not helped at all.
    Is the shortening of the song titles simply an issue that I will just have to live with or is there some other option/possibly downloadable patch that could stop this from happening to my selection of music? I would love to convert the music to AAC but i also enjoy not having sore eyes and a headache from tedious tasks like copying and pasting the song names from a website into the file names for hours. Any help would be greatly appreciated.

    it wouldnt be such a problem if the conversion process just cut out the album title in the name of the file, but it's the fact that the album title remains part of the file title and the song name will be cut off instead so when viewing the files in the folder they all have either the exact same name minus and appended number or they all have only a portion of the title to the track

  • Titles get cut off when playing after the burn

    The title created in the movie are too wide and get cut off when playing it in a DVD player into a TV. Is there a setting I should use before burning?
    Any help is appreciated.

    You should turn on the TV Safe Area and make sure that everything that you care about is within this area. Anything outside the area is subject to the over-scan of TV sets.

  • Title on spine of hardcover book cut off

    Hi!
    I've been ordering books via iPhoto for many years and was shocked at the latest batch I received this week.
    I had chosen to do a hardcover book with wrap around cover.  The title on the spine was cut off, featuring only part of it which was odd and looks strange.  It should match what is on the front cover.  
    As usual, I did a preview before ordering it.  The spine was not visible in the preview and I had no way of actually making any changes to it since
    I can't see it in iPhoto.
    These books are Christmas gifts for my family and I'm horrified that it was printed incorrectly. 
    I'm hard of hearing and can't use the phone - I have not been able to contact Apple since they only list phone numbers - does anyone know how to connect with them directly via email?  Help!
    Here's an attachment that shows the problem.
    > Mac OS X (ver. 10.6.8) iPhoto 11 - ver. 9.1.3 (607)

    The group you want to get in contact with is called Print Products, they are part of the Apple Online Store. You are correct, they do not have an email contact, only support via phone. I did see on the Apple "contact us" page a support number for hearing and visually impared, says they have advisors trained in accesibilty services, they may be able to help. the number is 877-204-3930. Can be found on link below
    http://www.apple.com/contact/

  • Folder Titles are cut off.

    Hi Guys,
    I need some advice on why my album folders are not complete but only cut off. Long Album titles are reduced.

    Hi Garth,
    If the *Keep iTunes Music folder organised* feature is enabled iTunes will rename files and folders that are within the iTunes Music folder. If you add files to the library or make changes to tags the files will be automatically renamed to reflect this. The general layout is:
    <Artist>\<Album>\[<Disc No.>-]<Track No.> <Track Name>.<Ext>
    If *Part of a Compilation* is true then a value of Compilations will be used instead of <Artist> above. Likewise, if the *Album Artist* field is set this will be used to set the <Artist> value which will make a difference if there are guest artists credited on the album or have a Various Artists album not marked as a compilation. The <Disc No.> is only prepended to the filename if there is more than one disc in the collection. All characters which are invalid within filesnames are replaced with an underscore. File & folder names are truncated to 40 characters inclusive of extention. If two or more files would have the same filename, the second filename is (where neccesary) shortened by a couple of charaters and given a trailing index of 1, the next 2 and so on. (Earlier versions of iTunes would replace the existing file with the new one of the same name potentially destroying data - although long since fixed this is another reason for my preference.)
    Whether disc & track numbers are included in the filenames used to be optional within the iTunes preferences and, if desired, can still be disabled via a suitable hack.
    If you disable the *Keep iTunes Music folder organised* option these rules will still be used for any music that you download from the store or rip from CDs. Likewise if you have the option *Copy files to iTunes Music folder when adding to library* enabled and import files from outside the iTunes Music folder, the new copies will be created with the same naming conventions. What will be different is that if you make a change in iTunes this will not be reflected by updating the filename. If however you name files according to your own conventions and then add them to the library, iTunes will not rename them. Unlike Windows Media Player, iTunes will lose track of any files you manually rename so if you do go down this road you then have the extra effort of removing and reimporting files that you choose to modify.
    I should make it clear that manually organising my music folders is a personal preference and not one I necessarily recommend to others - it's a lot more effort for no real gain. For a long while I had an iRiver H140 which I synchronised with my music folders. To make the iRiver easier to use I created a folder structure which separated out some sections of my library from others e.g. Comedy, Classical, Soundtracks etc. I also set my own rules for invalid character replacement and for compilations appended the artist to the track name. Although I no longer use the iRiver I prefer to keep this structure.
    I used to keep the bulk of my library in the Windows "My Music" folder and only let iTunes manage the podcasts however the last time I did a full rebuild of the library I put everything inside the iTunes Music in order to take advantage of the ability to relocate a self-contained set of iTunes library folders. I know I should really commit to iTunes and stop worrying about exactly how my data is orgainsed but there it is... we can't change our nature.
    tt2

Maybe you are looking for