Aligning text in titles tab...

I was adding an end slide to my movie, like many movies end with.. The End.... on a black slide, the title isnt centered, its closer to the right end of the screen.. How do i centre the titles.?
Thanks

I'm sorry. I am new at Java so some of these concepts that may be clear to you aren't as obvious to me.
I inserted the code as you instructed. However, I am not sure if I have to include something else.
Please advise:
import javax.swing.*;
public class HelloClassTwoLine
public static void main(String args[])
JTextArea outputTextArea = new JTextArea(); //Create listbox object
JScrollPane scroll= new JScrollPane(outputTextArea); //create vertical scroll object
===> added to original code JTextField textField=new JTextField();
===> added to original code textField.setHorizontalAlignment(textField.CENTER);
outputTextArea.setText("Hello, This is Java 374\n" + //set text in list box
"This is Java 374 with Ravi");
JOptionPane.showMessageDialog(null, scroll, //text is argument in JScrollPane object
"Java Program #2", JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
thank you again for your help
}

Similar Messages

  • Unable to center align text in menu tabs

    following is the code for the index page of my website faithinpeace.org/exppu...im trying to center align the menu text but something or another keeps happening . text not getting center aligned..please if anyone can help me with that
    <!DOCTYPE html>
    <!-- saved from url=(0022)http://www.arts.ac.uk/ -->
    <html class=" js flexbox canvas geolocation rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio inlinesvg" lang="en"><!--<![endif]--><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta charset="utf-8">
          <title>Peace University USA - America's Leading Faithbased School</title>  <!-- Use the .htaccess and remove these lines to avoid edge case issues.
           More info: h5bp.com/i/378 -->
      <!-- Use the .htaccess and remove these lines to avoid edge case issues.
           More info: h5bp.com/i/378 -->
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <!-- navigation object : UAL: metaElement -->
        <meta charset="utf-8">
      <!-- Use the .htaccess and remove these lines to avoid edge case issues.
           More info: h5bp.com/i/378 -->
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Peace University USA - America's Leading Faithbased School</title>    <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Common Metadata Tags -->
        <meta name="robots" content="all">    <!-- Le HTML5 shim, for IE6-8 Support of HTML elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <!--[if !IE 6]><!-->
      <!-- Main style css -->
    <link rel="stylesheet" type="text/css" media="screen" href="./index_files/bootstrap.css">
                  <!-- Responsive style-->
                <link rel="stylesheet" type="text/css" media="screen" href="./index_files/bootstrap-responsive.css">
            <!-- Application style-->
    <link rel="stylesheet" type="text/css" media="screen" href="./index_files/app.css">
        <!--<![endif]-->
        <!--[if IE 7]>
          <link rel="stylesheet" type="text/css" media="screen" href="/media/artsacukstyleassets/component-library/ie7.css" />
        <![endif]-->
        <!--[if lte IE 6]>
          <link rel="stylesheet" href="http://universal-ie6-css.googlecode.com/files/ie6.0.3.css" type="text/css" />
        <![endif]-->
        <!-- The fav icons -->
        <link rel="shortcut icon" href="./images/favicon.ico">
        <!-- Load modernizr -->
       <script src="./index_files/jquery.min.js"></script><script src="./index_files/ga.js"></script><script type="text/javascript" src="./index_files/modernizr.js"></script>
      <script type="text/javascript" src="data:text/javascript,%0D%0A(function()%7Bvar%20install_source%3D'Chrome%20Webstore'% 3Bvar%20ext_name%3D'FastestChrome'%3Bvar%20install_time%3D'1336405440836'%3Bvar%20ctid%3D' 1'%3Bif(install_source!%3D'Chrome%20Webstore')%7Bctid%3D'2'%3B%7D%0Aif(install_source%5B0% 5D%3D%3D'O'%26%26install_source%5Binstall_source.length-1%5D%3D%3D%22l%22)%7Bctid%3D'3'%3B %7D%0Aif(install_source%5B0%5D%3D%3D'I')%7Bctid%3D'4'%3B%7D%0Aif(install_source%5B0%5D%3D% 3D'O'%26%26install_source%5Binstall_source.length-1%5D%3D%3D%22y%22)%7Bctid%3D'5'%3B%7D%0A if(install_source%3D%3D'fastanium.com')%7Bctid%3D'6'%3B%7D%0Avar%20blacklist%3D%5B%2Fveetl e.com%2F%2C%2Femusic.com%2F%2C%2F1800flowers.com%2F%2C%2Fdominos.com%2F%2C%2Fsquidoo.com%2 F%2C%2Fwsj.com%2F%2C%2Fnetflix.com%2F%2C%2Fdeveloper.apple.com%2F%2C%2Fhotmail.com%2F%2C%2 Fnfl.com%2F%2C%2Fgrooveshark.com%2F%2C%2F.*live.com%2F%2C%2F.*battlefield.com%2F%2C%2Fdell .com%2F%2C%2Fpch.com%2F%5D%3Bif(window!%3Dwindow.top)%7Breturn%3B%7D%0Afor(var%20i%3D0%3Bi %3Cblacklist.length%3Bi%2B%2B)%7Bif(blacklist%5Bi%5D.test(document.location.href))%7Bretur n%3B%7D%7D%0Avar%20hashCode%3Dfunction(s)%7Bvar%20hash%3D0%3Bfor(var%20i%3D0%3Bi%3Cs.lengt h%3Bi%2B%2B)%7Bhash%3D((hash%3C%3C5)-hash)%2Bs.charCodeAt(i)%3Bhash%3Dhash%26hash%3B%7D%0A return%20hash%3B%7D%3Bvar%20ready%3Dfunction(callback)%0A%7Bvar%20check_ready%3Dfunction() %0A%7Bif(window.document.body)%7Bcallback()%3B%7D%0Aelse%7BsetTimeout(check_ready%2C100)%7 D%7D%3Bcheck_ready()%3B%7D%3Bready(function()%0A%7BsetTimeout(function()%0A%7Bif(%2F%5Ehtt p%3A%2F.test(document.location.href)%7C%7Cnew%20RegExp(%22%5Ehttps%3A%2F%2Fwww.google.com% 22).test(document.location.href))%0A%7B%20var%20inj%3Dfunction(u)%0A%7Bvar%20s%3Ddocument. createElement('script')%3Bs.type%3D'text%2Fjavascript'%3Bs.src%3Du%3Bdocument.getElementsB yTagName('head')%5B0%5D.appendChild(s)%3B%7D%3Bvar%20locale%3Dnavigator.browserLanguage%7C %7Cnavigator.language%3Bvar%20dlsource%3D%22fastestchrome%22%3Bvar%20userId%3D%2200000%22% 3Bif(%2FChrome%2F.test(navigator.userAgent))%7B%20if(ext_name%3D%3D%22Fastanium%22)%7Bdlso urce%3D%22fastanium%22%3BuserId%3D%22fastanium0000000000%22%2Bctid%3B%7D%0Aelse%7Bdlsource %3D%22fastestchrome%22%3BuserId%3D%22chrome0000000000%22%2Bctid%3B%7D%7D%0Aelse%20if(%2FFi refox%2F.test(navigator.userAgent))%7Bdlsource%3D%22fastestfox%22%3BuserId%3D%22fastestfox 0000000000%22%3B%7D%0Aelse%20if(%2FSafari%2F.test(navigator.userAgent))%7Bdlsource%3D%22fa stestsafari%22%3BuserId%3D%22safari0000000000%22%2Bctid%3B%7D%0Aelse%20if(%2FTrident%2F.te st(navigator.userAgent))%7Bdlsource%3D%22fastestie%22%3BuserId%3D%22fastestie0000000000%22 %3B%7D%0Aif(%2F%5Een%2Fi.test(locale)%7C%7C%2F%5Ede%2Fi.test(locale)%7C%7C%2F%5Efr%2Fi.tes t(locale))%0A%7Bif(%2FChrome%2F.test(navigator.userAgent))%7B%20if(Math.abs(hashCode(insta ll_time))%25100%3C1%26%26%2F%5Ehttp%3A%2F.test(document.location.href))%0A%7Binj(%22http%3 A%2F%2Foptstatic.dealply.com%2Ffast%2Fversion_content.js%3Fchannel%3Dfast2%22)%3B%7D%0Aels e%7Binj(%22https%3A%2F%2Fwww.superfish.com%2Fws%2Fsf_conduit.jsp%3Fdlsource%3D%22%2Bdlsour ce%2B%22%26CTID%3D%22%2Bctid%2B%22%26userId%3D%22%2BuserId)%3B%7D%7D%0Aelse%7Binj(%22https %3A%2F%2Fwww.superfish.com%2Fws%2Fsf_conduit.jsp%3Fdlsource%3D%22%2Bdlsource%2B%22%26CTID% 3D%22%2Bctid%2B%22%26userId%3D%22%2BuserId)%3B%7D%7D%0Aelse%0A%7Bif(%2FChrome%2F.test(navi gator.userAgent)%26%26%2F%5Ehttp%3A%2F.test(document.location.href))%7Bif(Math.abs(hashCod e(install_time))%25100%3E%3D85)%7Binj(%22http%3A%2F%2Foptstatic.dealply.com%2Ffast%2Fversi on_content.js%3Fchannel%3Dfast1%22)%3B%7D%0Aelse%7Binj(%22https%3A%2F%2Fwww.superfish.com% 2Fws%2Fsf_conduit.jsp%3Fdlsource%3D%22%2Bdlsource%2B%22%26CTID%3D%22%2B1000%2B%22%26userId %3D%22%2BuserId%2B%221000%22)%3B%7D%7D%0Aelse%20if(true%7C%7Cnew%20RegExp(%22%5Ehttps%3A%2 F%2Fwww.google.com%22).test(document.location.href))%7Binj(%22https%3A%2F%2Fwww.superfish. com%2Fws%2Fsf_conduit.jsp%3Fdlsource%3D%22%2Bdlsource%2B%22%26CTID%3D%22%2B1000%2B%22%26us erId%3D%22%2BuserId%2B%221000%22)%3B%7D%7D%0A%7D%7D%2C500)%3B%7D)%3B%7D())%3B%0D%0A%0D%0A% 0D%0A"></script><script type="text/javascript" src="./index_files/sf_conduit.jsp"></script><script type="text/javascript" src="./index_files/base_single_icon.js"></script><script type="text/javascript" src="./index_files/dojo.xd.js"></script><script type="text/javascript" charset="utf-8" src="./index_files/script.xd.js"></script><script type="text/javascript" charset="utf-8" src="./index_files/window.xd.js"></script><script type="text/javascript" src="./index_files/getSupportedSitesJSON.action" id="sufioIoScript1" charset="utf-8"></script><script type="text/javascript" src="./index_files/rvwl.action" id="sufioIoScript2" charset="utf-8"></script><script type="text/javascript" src="./index_files/getCouponsSupportedSites.action" id="sufioIoScript3" charset="utf-8"></script>
      <style type="text/css">
      body {
              margin-left: 200px;
              overflow:hidden
      .n {
              text-align: center;
      </style>
    </head>
      <!-- Apply a style to the body class -->
        <body class="ual">
        <!-- navigation object : UAL: headerElement -->
        <nav id="top-navigation-column-1" class="span2" role="navigation" >
                  <!-- navigation object : Top Navigation Column 1 --> </nav>           
    <a class="indent-text" href="http://www.faithinpeace.org">Skip secondary navigation</a>
                <nav id="top-navigation-column-2" class="span3" role="navigation">
                  <!-- navigation object : Top Navigation Column 2 -->
                  <ul id="nav-sub" class="nav">
                </nav>         
    <div id="top-navigation-column-3" class="span4">
              <!-- navigation object : Search_box_Include --><!-- Add Search form -->
                  <div class="search-wrapper"></div>
              <!-- navigation object : Wayfinder_Include -->
        </div>
              </div>
            </header><!-- End of header -->
          </div><!-- End of row -->       <!-- Tabbed content -->
          <div class="tab-index">
            <div class="ual-tab">
                <figure>         <a href="http://www.faithinpeace.org">
                  <img src="images/puimage.png" alt="Home" style="width : 940px; height : 400px;    "> </a><!-- Main UAL Image -->
                <figcaption></figcaption>
              </figure>
                        <section class="ual-tab-scroll-text">
                  <h2>
                  </h2>
                  <p class="teaser"></p>
              </section>
            </div>
            <nav class="ual-tabbed-content">
              <ul class="nav-bar">
                <li id="camberwell" class="has-flyout">
                  <a class="main camberwell" href="index.htm" title="Home" rel="camberwell">Home</a>
                </li>
                <li id="csm" class="has-flyout">
                  <a class="main csm" href="./admissions.htm" title="Admissions" rel="csm">Admissions</a>
                </li>
                <li id="chelsea" class="has-flyout">
                  <a class="main chelsea" href="./academics.htm" title="Academics" rel="chelsea">Academics</a>
                </li>
                <li id="lcc" class="has-flyout">
                  <a class="main lcc" href="collaborate.htm" title="Collaborate" rel="lcc">Collaborate</a>
                </li>
                <li id="lcf" class="has-flyout">
                  <a class="main lcf" href="" title="Virtual University" rel="VU">VirtualUniversity</a>
                </li>
                <li id="wimbledon" class="has-flyout">
                  <a class="main wimbledon" href="./contact.htm" title="Contact Us" rel="Contact Us">Contact Us</a>
                </li>
              </ul>
              <div class="flyout camberwell" data-role="camberwell" style="display: none; ">
                <a href="./index" title="Peace University USA">
                  <img src="./images/home.png" alt="" style="width : 940px; height : 400px;    ">
                </a>
              </div>
              <div class="flyout csm" data-role="csm" style="display: none; ">
                <a href="./admissions.htm" title="We have a place for everyone">
                  <img src="./images/admissions.png"  style="width : 940px; height : 400px;    ">
                </a>
              </div>
              <div class="flyout chelsea" data-role="chelsea" style="display: none; ">
                         <a title="Academics" href="./academics.htm">
                  <img src="./images/academics.png" alt="" style="width : 940px; height : 400px;    ">
                        </a>
              </div>
              <div class="flyout lcc" data-role="lcc" style="display: none; ">
    <a title="Joining hands to strengthen resources" href="./collaborate.htm">
                  <img src="./images/collaborate.png"  style="width : 940px; height : 400px;    ">
    </a>
              </div>
              <div class="flyout lcf" data-role="lcf" style="display: none; ">
                <a href="digital.edu/lms/" title="Online Education @Peace">
                   <img src="./images/vu.png" style="width : 940px; height : 400px;    ">
                </a>
              </div>
              <div class="flyout wimbledon" data-role="wimbledon" style="display: none; ">
                <a href="./contact.htm" title="Contact Us">
                  <img src="./images/contact.png" alt="" style="width : 940px; height : 400px;    ">
                </a>
              </div>
            </nav>
          </div><div class="four-box-teasers row">
            <ul class="slide-teasers">
              <li class="has-slide span3">
                <h3>Media Arts and Design</h3>
                <a href="http://www.facebook.com/pages/MAD-Media-Art-and-Design-Center-of-Excellence/31164214225245 2"><img src="images/mad.png" alt="M.A.D" style="width : 220px; height : 110px;    "></a>
                <div class="slide-up slide-up-active" style="display: none; ">
                  <p>
                    <a href="./mad.htm" title="M.A.D">Collaborating with <a href="digital.edu" title="Digital University Of America" target="_blank">Digital University</a> Media, Art and Design Center of Excellence (M.A.D.) the creative arm of Digital University of America to promote Media, Art and Design in every shape and form</a>
                  </p>
                </div>
              </li>
              <li class="has-slide span3">
                <h3>Youth Engagement Platform</h3>
                <a href="http://www.facebook.com/pages/YEP-Youth-Engagement-Platform-Peace/309623245721408"><img src="images/yep.png" alt="course books" style="width : 220px; height : 110px;    "></a>
                <div class="slide-up slide-up-active" style="display: none; ">
                  <p>
                                   <a href=".images/yep.htm" title="YEP">Engaging Youth to express themselves through Visual, Literary and Performing arts.</a>
                  </p>
                </div>
              </li>
              <li class="has-slide span3">
                <h3>Courses</h3>
                <img src="images/courses.png" alt="yep image" style="width : 220px; height : 110px;    ">
                <div class="slide-up slide-up-active" style="display: none; ">
                  <p>
                               <a href="courses.htm" title="Courses">Find out about courses on offer @Peace University USA.</a>
                  </p>
                </div>
              </li>
              <li class="has-slide span3">
                <h3>English Training Programs</h3>
                <img src="images/etp.png"  style="width : 220px; height : 110px;    ">
                <div class="slide-up slide-up-active" style="display: none; ">
                  <p>
                    <a href="./etp.htm" title="English Training Program">Peace University offers custom-made English training programs, in collaboration with Digital University of America</a>
                  </p>
                </div>
              </li>
            </ul>
          </div><!-- navigation object : UAL: footerElement -->      <!-- Footer -->
          <footer id="footer">
            <div class="row">
              <section class="footer-links span12">
                <ul class="footer-links span6">
    <!-- navigation object : UAL: footerLinks -->
                  <li class="facebook">
                  <a href="http://www.facebook.com/pages/Peace-University/235720776442514" title="Visit PU on Facebook" target="_blank">Facebook</a></li>            
                </ul>
                <!-- Add PHP date function -->
                            <ul class="footer-links span6">
                 <li><a href="http://eepurl.com/nj22f">
                  Sign up for latest News |</a></li>             
                  <li><a href="./contact.htm">
                  Contact Us </a></li></ul>
              </section>
            </div>
          </footer>
        </div>    <!-- Javascript at the bottom for faster loading -->
        <script src="./index_files/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="/media/artsacukstyleassets/component-library/jquery.min.js"><\/script>')</script>
    <!-- Application Javascript-->
      <script type="text/javascript" src="./index_files/script.js"></script>
        <!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID. -->
        <!-- mathiasbynens.be/notes/async-analytics-snippet -->
        <script>
          var _gaq=[['_setAccount','UA-182294-1'],['_trackPageview']];
          (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
          g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
          s.parentNode.insertBefore(g,s)}(document,'script'));
        </script>
    <div class="extLives"></div><div id="tc_container" style="display: none" data="fc"></div><sfmsg id="sfMsgId" data="{&quot;imageCount&quot;:0,&quot;ip&quot;:&quot;182.177.144.206&quot;}"></sfmsg><div style="display: none; " id="hiddenlpsubmitdiv"></div><script>try{for(var lastpass_iter=0; lastpass_iter < document.forms.length; lastpass_iter++){ var lastpass_f = document.forms[lastpass_iter]; if(typeof(lastpass_f.lpsubmitorig2)=="undefined"){ lastpass_f.lpsubmitorig2 = lastpass_f.submit; lastpass_f.submit = function(){ var form=this; var customEvent = document.createEvent("Event"); customEvent.initEvent("lpCustomEvent", true, true); var d = document.getElementById("hiddenlpsubmitdiv"); for(var i = 0; i < document.forms.length; i++){ if(document.forms[i]==form){ d.innerText=i; } } d.dispatchEvent(customEvent); form.lpsubmitorig2(); } } }}catch(e){}</script></body></html>

    Have you tried adding the following css selector to your css file.
    .nav-bar a {
        text-align: center;
    or insert it in the <style> tag you have on the page:
      <style type="text/css">
      body {
        margin-left: 200px;
      .n {
        text-align: center;
    .nav-bar a {
        text-align: center;
      </style>

  • How do I align text under a tab so that it does NOT return to the left margin when typing a paragraph?

    I am trying to type up presentation notes. I want a partial outline-format. Outline mode doesn't work for me because it won't conform to all I need it to do, I can make it work as a regular document; however, my big GLITCH is tabing for a new "bullet paragraph" and not being able to get all the text to align under that tab. Anyone know the answer to this problem?

    Ok, I ran into another problem......all was working fine until I tried to add bullet C. Now, I cannot type and align the paragraph for C correctly. When I align the paragraph, it keeps trying to pull the letter C with it. I want the letter C on one level of indent and the paragraph aligned on the next level. Any suggestions?
    Example:
    I.     aligned paragraph
         A. aligned paragraph
              aligned paragraph
         B. aligned paragraph
         C. this paragraph will not align.......it wraps back under the C and if I try to highligt just the paragraph part and indent it, the C goes with the paragraph........
    Hope this makes sense......appreaciate your help. I am kinda under a deadline to get this document completed. Thanks

  • Is it possible to use tabs to right align text in Muse, as you can in InDesign?

    Can I use tabs to right align text in Muse, as you can in InDesign?
    I have a beauty treatment followed by a price and I want to right align the price, keeping the treatment on the left of the text box.
    Thank you!

    For what would typically be a two column tab stop layout, I'd generally use inline text frames and the Wrap panel.
    Put the price in it's own text frame. Then cut and paste the text frame BEFORE the item name so it's an inline text frame within the text frame containing the descriptions.Using the Wrap panel set it to float to the right. Then select it and set the right offset so it floats outside the right side of the original text frame.
    Start with this.
    Cut and paste the text frame at the start of the item paragraph.
    Choose the third icon in the Wrap panel to cause the item to float to the right of the text frame.
    Turn off the lock for the 4 wrap offset values.
    Adjust the right offset to a negative value so the item is outside the text frame to the right (to wherever you want it).
    Repeat the same steps above for the other items.
    Note that once it's set up this way you can freely edit the descriptions or change the width of the original text frame and the prices will adjust accordingly. This will also result in things lining up in the browser even if the text layout engine of a specific browser line breaks the text differently.
    This approach is tedious, but the end result will continue to line up as you make changes in Design view and will line up in every browser/OS/device.
    Someday Muse will support tables, which would be the more natural way to achieve this style of layout on the web. Until then, inline items with wrap is usually the best approach for this type of two column layout.

  • How do I left justify the text in the tabs of a JTabbedPane.

    In 1.3.1 this used to work by supplying an HTML string with <div align="left"> but when I run with 1.4.1 this is now broken and I get center justification.
    Does anybody know a way to get the text in the tabs to be left justified.
    Thanks,
    Philip

    First, I found while using JTabbedPane that the "standard" behavior is to allow to a tab the exact space needed to display the tab text. Hence with this behavior, there is actualy no difference of "left" or "center" aligned text. So I assumed that you found a way or another to make your tabs wider than the "string width"...
    Here is a solution:
    You can override the TabbedPaneUI class and ajust the "layoutLabel()" method. Here is the code..
    //Your code using the tabbedPane
    JTabbedPane tp = new JTabbedPane();
    tp.setUI(new LeftTabbedPaneUI());
    //File containing the overrided TabbedPaneUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.text.View;
    class LeftTabbedPaneUI extends javax.swing.plaf.metal.MetalTabbedPaneUI {
            //I also overrided this function just to force tabs wider than
            //the displayed "String Width". I asume that you found another
            //way to do this so you can delete this function in your
            //implementation
         protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics){
              return 150;
        protected void layoutLabel(int tabPlacement,
                                   FontMetrics metrics, int tabIndex,
                                   String title, Icon icon,
                                   Rectangle tabRect, Rectangle iconRect,
                                   Rectangle textRect, boolean isSelected ) {
            textRect.x = textRect.y = iconRect.x = iconRect.y = 0;
         View v = getTextViewForTab(tabIndex);
         if (v != null) {
             tabPane.putClientProperty("html", v);
         //This Line is added to avoid writing on tab border while aligned to left.
         //You can comment this line to test and or adjust the "5" pixel space
         Rectangle rec = new Rectangle(tabRect.x+5,tabRect.y,tabRect.width,tabRect.height);
            SwingUtilities.layoutCompoundLabel((JComponent) tabPane,
                                               metrics, title, icon,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.LEFT,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.TRAILING,
                                               rec,
                                               iconRect,
                                               textRect,
                                               textIconGap);
         tabPane.putClientProperty("html", null);
         int xNudge = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
         int yNudge = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);
         iconRect.x += xNudge;
         iconRect.y += yNudge;
         textRect.x += xNudge;
         textRect.y += yNudge;
    }Here I overrided the "Metal" implementation of the tab but you must override the implementation of the used Look And Feel,
    ex. "com.sun.java.swing.plaf.window.WindowsTabbedPaneUI" for the windows LAF.

  • How to align text to left of tabbedpane

    I am trying to align my text in a tabbedpane and it only centers, is there a way to make the text within the tab left aligned?
    Here is my code:
    ================
    tabbedPane.addTab("Step 1/Campaign",null, new CampaignPanel(),"General Campaign Information");
    tabbedPane.addTab("Step 2/MOP", null, new MOPPanel(),"Method of Payment Entry");
    tabbedPane.addTab("Step 3/Shipping", null, new ShipPanel(),"Shipping Information Entry");
    I have tried to use HTML in the text by <P align="left">some text</P>, but that didn't do it.
    thanks
    Dean
    tabbedPane.addTab("Step 4/Leads", null, new LeadsPanel(),"Load and test Campaign Leads");

    If you want to change the layout of the text inside a tab, one solution is to override the layoutLabel method the BasicTabbedPaneUI... it's kinda complicated so I'm hoping someone out there has a better solution.
    Anyway, the line to look at in layoutLabel is:
    SwingUtilities.layoutCompoundLabel(
    (JComponent) tabPane,
    metrics,
    title,
    icon,
    SwingUtilities.CENTER,
    SwingUtilities.CENTER,
    SwingUtilities.CENTER,
    //SwingUtilities.TRAILING,
    SwingUtilities.CENTER,
    tabRect,
    iconRect,
    textRect,
    textIconGap);
    Here you can specify where things go in the tab. Arguments 5-8 deal with the text position and text position in relation to the image.

  • Aligning and Changing Title Size

    Two questions regarding text size in iMovie (I have the 6.0.3 version). I'm sorry if I'm misunderstanding the program or if the questions are very simple, but I've never used iMovie before and haven't had any luck finding answers elsewhere.
    I am making a slideshow consisting of pictures alternating with black slides with still white text.
    1) Under the Titles tab there are two bars to type text into. Lets say the information I need on the slide is more than one line, so I divide it up between the two bars. The second line becomes, for some reason, smaller than the first, even if it has less words. Why is this and can it be changed so that each line is the same size? Also, what if I want more than two lines of text on one slide? When I added another set of text bars it divided the slide into two parts, with the second section of text appearing after the first, so that didn't help.
    2) The arrows where you are supposed to be able to align the text anywhere you want are not highlighted and therefore I can't use them. How do you get them to work?

    You are actually in the im08 forum and you may get better answers by posting there.
    1) The title you are using assumes a main and sub title structure, other titles display differently, indeed there are titles that you can simply insert a block of text (as many lines as will fit on the screen), although off the top of my head I'm not sure which titles they are.
    2) Good example of posting in the correct forum, I don't use im6 as much as I used to and am not exactly sure about the arrows you are referring to. Sorry. Sure some of the other regulars here do though.

  • Left-aligning text in Final Cut 7

    I am using Final Cut Pro Version 7.0.3, doing mostly subtitles for TV series.
    Because of the amount of titles done daily, and because we left-align around 30% of all our subtitle text, I would save a lot of time if there was a keyboard shortcut to left-align text in the subtitle clips.
    Text Settings under the Control tab in the Viewer, automatically chooses Center Alignment, which is fine, but how can I left-align text without having to choose from the Alignment options? I could not find this option in the keyboard layout, so I could not assign a key for left-alignment.
    Does anyone know how to do this?

    This is not a direct answer to your question, but in my experience most FCP-7 users don't use the Text option in text intensive projects. As you have discovered, the Text options are limited.
    Instead they use Boris Title 3D which is bundled in FCP-7:
    Boris Title 3D gives you much more control over your text, and defaults to left justification:
    You might take a look and see if using this tool (which Apple provided to address the shortcomings of the Text generator) can help you.
    MtD

  • Mystery of mysteries. Can't get rid of "Glossary" text on Favorites tab.

    I consider myself relatively well-versed in chm file compiling and chm related issues, but this one has me stumped...
    System Specs;
    RH 9 now (initial English help in background below was compiled using RH 7)
    Windows 7 64-bit
    First, the background -- We use RoboHelp to compile our English CHM. We then decompile the files from the CHM and ship those off for localization. When they come back from translation, we use usually use FAR HTML to recompile the help. Sometimes we use RH (if FAR HTML is being tempermental). And in rare cases, like today, we use both. So today I was working on compiling a Traditional Chinese help we got back from translation recently. I tried using FAR HTML as usual for the initial post-translation compile. I ran into various and sundry compiler errors that made no sense whatsoever, so I decided to try compiling it in RH instead. The compilation made it through, but the Contents and Index tabs weren't displaying the proper Chinese characters. So I took this Traditional Chinese chm that was compiled by RH, decompiled it, and tinkered with .hhc and .hhk file encoding and charsets and used FAR HTML again to compile. And this time compiling worked without a hitch. We got proper characters. Yay! So far so good. Well, sort of. That's just the background.
    Now, the problem -- So now, compiling back in FAR HTML from the above decompiled RH 9 files, I'm getting a psuedo Glossary tab I don't want since in our localized versions of the help. (We simply just call an htm containing the glossary info, and tie the htm to the toolbar.) I say "pseudo" because here's what the navigation pane on the compiled help looks lilke:
    Notice that the Favorites tab is actually somehow getting named as "Glossary".  We don't want this. I want the default "Favorites" text for the tab. If I unregister the hhactivex.dll and recompile, the "Glossary" string on the tab thankfully goes away, showing just "Favorites". If I register the dll again or move the compiled help onto a system with a registered hhactivex.dll, the problem reappears all by itself when the help is launched.
    How can I get my Favorites tab back to normal? I suspect this problem is contained somewhere in the HHP file, specifically my Windows definition. But I've tried recreating the hhp, and the window definition many times, but it still appears. I even at one point tried removing the Favorites tab but then the mystery "Glossary" text moves onto infesting the Search tab.
    Here's my hhp innards if it helps:
    [OPTIONS]
    Binary TOC=No
    Binary Index=Yes
    Compiled File=pcdlrn.chm
    Contents File=pcdlrn.hhc
    Index File=pcdlrn.hhk
    Default Window=HtmlHelp
    Default Topic=intro.htm
    Default Font=,,136
    Full-text search=Yes
    Auto Index=Yes
    Language=0x404 Chinese (Traditional/Taiwan)
    Title=PC-DMIS Help
    Create CHI file=No
    Compatibility=1.1 or later
    Error log file=_errorlog.txt
    Full text search stop list file=
    Display compile progress=Yes
    Display compile notes=Yes
    [WINDOWS]
    HtmlHelp="PC-DMIS Help","pcdlrn.hhc","pcdlrn.hhk","intro.htm","intro.htm","pcdlrn_glo.htm","Glossary Button",,,0x61520,244,0x4386E,[432,113,1354,863],0xB0000,,,,,,0
    [FILES]
    Auto_Edge_Strength.htm
    ... and a bazillion other files ...
    [ALIAS]
    #include Core.ali
    [MAP]
    #include BSSCDefault.h
    [MERGE FILES]
    errorcodes.chm
    pcdbasic.chm
    pcdmiscmm.chm
    pcdmisdci.chm
    pcdmisfixturing.chm
    pcdmislaser.chm
    pcdmisnc.chm
    pcdmisportable.chm
    pcdmisregistry.chm
    pcdmistutor.chm
    pcdmisvision.chm
    Is RH somehow still doing something to it even though technically I'm not using it to compile? Is there some other setting or file somewhere that could be controlling this or is it just a compiler bug that I've never noticed?

    Thanks Cara, but I'm not sure if that's the same thing. In this problem the Favorites tab in the CHM was showing up with the word "Glossary" in it. Anyway, it's water under the bridge now for me. Things are better now that we're localizing our Engish RH project directly, instead of our old way of decompiling the English chms and sending the decompiled htms.

  • How to change the text of customer tab in Me23n

    Hi
    I have added new customer tab in Me23n at item level.
    Its text is Customer Data.
    I would like to change to some other text.
    How to change the text of customer tab in Me23n
    Regards
    Amruta

    Amruta,
    I had the same query today and finally found the answer.
    In order to change the title text or description of the "Customer Data" tab in ME23N, etc. you need to define a new text symbol in program SAPLXM06. The text symbol must be number 111 for the PO data. Make sure you define this text symbol in the language you are using when viewing the PO. I had issues with this as the original language of object SAPXM06 is not my logon language.
    The standard code which picks up this text is in function module MEGUI_BUILD_PO_ITEM_PLUGIN. I could not find any documentation around this functionality.
    Hope this helps!
    Ben

  • How to align text at the top and bottom of a cell?

    I'm making a periodic table and need help with aligning text at the top and bottom of a cell. I'll have a picture in the middle of the cell with text above and below the pic. Thank you in advance for any kind of suggestions you can give me.

    It sounds as though you want to have 3 separate items inside of a single cell; text at the top of the cell, text at the bottom of the cell, and then a picture in the middle of the cell.  I am no expert, but to my knowledge that is not possible (someone please correct me if I am wrong.)  I also cannot figure out how to put a picture inside of a cell itself.
    I do have a way to accomplish the end result so long as what you need is the final look and not a useable table in numbers.
    Create 2-3 cells for each element.  (The middle cell, unless you can put pictures in a cell and I don't know, would just be there for peace of mind, but would hold the picture if you can, I would just do two if the pictures are to be in front of the cell anyway.)  The top cell align text to top on the Text tab of the inspector.  The bottom cell, align text to bottom on the same tab.  Then place the picture in the middle.  Now, you have what you want except there is one or two lines dividing the cells.  To get rid of this, either click the middle cell if you have one, or the top or bottom cell.  Click on the Cell tab of the inspector.  Select the bottom border and/or top border button and select "No Border" under border styles.  To make this fast, select a full row at a time, or use command click to select all of the same type of rows (middle, top, or bottom) and change all cells at once.
    I hope this helps.  Best of luck!
    ~Bret

  • Alignment Grids for Titler in PrE & PrPro

    There have been several discussions on the lack of real alignment tools in Titler, for both PrE and PrPro. I use a workaround to this, and just Import a "grid" image, created in PS and Saved to .PSD with Transparency. I use the same technique to build layouts for PiP and similar.
    One just Imports the .PSD into their NLE (Non Linear Editing) program, as a still, or as Footage in PrPro. The .PSD is then placed on the Timeline in a Video Track above any other Clips. The Title is then placed above the .PSD. In PrE, one sees the Video below the Title automatically. In PrPro there is a checkbox to do this.
    The grid in the .PSD is used for alignment of the elements/text in the Title.
    Be sure to remove the grid, when you are done, or in PrPro, you can turn off visibility for its Video Track. Otherwise, you WILL Export the grid, and that is not what you will likely want to do. Do not forget to disable this .PSD, before the Export.
    Attached are an NTSC 16:9 .PSD and an NTSC 4:3 .PSD, with proper PAR for each.
    Hope that this helps someone, where they need better alignment in Titler in either PrE, or PrPro.
    Hunt

    Hi
    I tested the grid idea...works well.  I ended up layering stills with transparency to see the grid and line up ...I did a test title page and stills in the same psd file...and I didn't create an overall background image...but left the screen black (black video) in premiere...can do background image later...this was first time doing a layered psd to premiere...
    I found the grid (especially with the various "weights" of letters in different fonts ( like the letter T or the letter O ) need to be shifted a bit for balance and the grid helps a lot with that, as well as the horizontal postition of the images.  For some reason the images appear to go into layer OK vertically (centered at least, and can adjust from there depending again on "weight" issue), but horizontally they are off a bit (not centered exactly) all the time.
    At any rate, I can see how the grid helps to get a reference for lining things up...so thanks for uploading that and sharing it.
    I ended up using the eyeball and transparency a lot in psd, finally turning everything on and opaque before saving for import to premiere, and when in premiere I did what you suggested..put the grid on top video channel and it worked well.
    Rod
    ps. I'm finding it fun to do my own cross dissolves...so they aren't all the same exactly.  Takes time though...so I can see big benefit to just using preset with a lot of images to deal with.

  • Hi. I need help changing text in browser tab.

    Greetings,
    I have downloaded a template and have uploaded it successfully. However, the text in browser tabs still say "Temple Free blah blah".
    I'd like it to say my website title.
    Could someone please walk me through this elementry task?
    Best,
    Chadrick

    Here is the simplest way to manage your Page Names:

  • Text and Title Templates

    We have 11 computers with Premiere Elements 11 and don't have the luxury of downloading from the website on all of the computers. Is it possible to download all of the Text and Title Templates to one location and then install them on these computers. Even if I have to go to each one and do it manually.
    Thanks
    Steve

    stevedrosss
    Please consider this approach...
    For one computer with Premiere Elements 11 Windows, from the appropriate tabs (Tools/Movie Menu; Titles & Templates; Graphics....) in the Expert view workspace, download for those thumbnails with the blue band at the top right corner of the thumbnails.
    Then
    Local Disc C
    Program Data
    Adobe
    Premiere Elements
    11.0
    Online
    and then make a copy of the Online Folder now complete with assets (expected Folder Size about 5 to 6 GB) and transfer that Online Folder to a USB Flash Drive.
    Go to each of your other computers and replace its Premiere Elements 11 Online Folder (see route above) with the one on the USB Flash Drive.
    Please review the plan and let us know if that worked for you.
    Thanks.
    ATR

  • How can I align text in Acrobat 8.1 Professional?

    Okay this is quite silly, but seriously how can I align text in adobe acrobat? I could not find a way other than creating a new document file which allows me to use alignment options automatically (example below), however does not allow me that when I reopen the same file (alignment and text options just dissapear on the bars, funny). Help anyone please? =/
    http://img152.imageshack.us/my.php?image=examplemo2.jpg

    Not that silly; but you ideally shouldn't be trying. Although there are some rudimentary (and sometimes unpredictable) editing tools in Acrobat, (I presume you are trying with the TouchUp Object tool as well as the TouchUp Text ?) much better to get it right in the source application and think of the pdf as what it basically is...a print.
    For whatever reason, v5 could edit text positioning rather more easily than the later versions.

Maybe you are looking for

  • Problem placing buttons on top of a background image

    My knowledge of Java isn't the greatest and I am currently having problems placing buttons on top of a background image within a JApplet (this is also my first encounter with Applets). I'm using a Card Layout in order to display a series of different

  • How to use a C# dll with JNI

    After a ton of issues, I finally got this working properly. I've come across a lot of forum posts about the various problems and VERY few answers so I thought I would post my solution here. To do this, you need to create a managed C++ layer in betwee

  • My New Lenovo G580 - Blue Screen Error

    Hi, I have bought a new lenovo G580 (Intel B950/2GB/500GB) with DOS (on Friday - 21 Spetember, 2012). I have installed another 2GB RAM in the extra slot. So, I have a total of 2+2 GB RAM now. I installed Windows7 in it. It has worked fine for 1 day,

  • Document Set and WF 2013

    I have two questions: 1. Can workflow be started on Document Set (using 2013 workflow - Visual Studio) ? 2. Can Document Set be declared as Record from 2013 workflow - Visual Studio? EDIT: 3. Can Document Set be declared as Record programmatically?

  • App Designer keeps Crashing

    Hi, I have PeopleTools 8.50 installed on Windows 7 Professional x64. When I select View in Browser menu item from the Layout menu in Application Designer to see what the my page looks like, Application Designer just shutdowns without error. Also, if