Problem with Border Container width and height in %

I want to use bordercontainer in Vgroup and specify its width and height in % form.
But when we try to set width less than 18% or height less than 10% it takes the default values.
Why is it so???
Thanks in advance.
Ronak Shah

Probably a minWidth and minHeight set somewhere

Similar Messages

  • How do you create aligned interactive text boxs in a PDF with the same width and height?

    how do you create aligned interactive text boxs in a PDF with the same width and height?
    Without free hand creating the sizing?

    Assuming by "interactive text boxes" you mean form fields; in Acrobat, make a form field, then copy it and paste. (GIve the pasted copy a different name so they don't genetate the same field feedback.) Now you have two fields of the exact same size. Shift-click or marquee-drag to select both, then right-click and choose a command from the Align, Distribute or Center menu.

  • Rotating and scaling a movieclip withing only its parent width and height

    Dear friends,
    I'd like to rotate a movieclip within specific area (its parent width and height) and it can't rotate out of it.
    How can I achieve that.
    When I say for exampe:
    mc.rotation = 10;
    it rotates also outside the parent area.
    How can I restrict it to only parent area.
    Thank you in advance.

    [OTTOMH]
    With each rotation step you could check the bounds of the rotating MC. If it's greater than the containing MC, you can calculate the scale factor and apply it to the x- and y-scale of the rotating clip.
    The clip would have to be deadcentre in the containing clip for this to work though.
    I suppose there would be some mathimatical way with most primitive shapes to calculate the width and height with a certain rotation, but I suppose this would be easiest.

  • Current page (not Document) width and height with JSX

    Hi,
    I am trying to create a script that saves every page of the document and add its width and height to the name.
    So far I managed to get the dimensions of the document using:
    app.activeDocument.pages.documentPreferences.pageWidth;
    app.activeDocument.pages.documentPreferences.pageHeight;
    That's ok when all the pages in the document have the same dimensions (Document Preferences).
    However, when I use custom pages that does not work.
    I tried the code below but does not work either.
    for(i=0; i<nb;i++)
         app.activeDocument.pages[i].documentPreferences.pageWidth;
         app.activeDocument.pages[i].documentPreferences.pageHeight;
    I have done some research and I don't seem to find any information regarding custom pages dimensions.
    Can you please help with this?
    Thanks in advance,
    Isko

    Main();
    function Main() {
        var doc = app.activeDocument,
        pages = doc.pages,
        page, width, height;
        for (var i = 0; i < pages.length; i++) {
            page = pages[i];
            width = page.bounds[3] - page.bounds[1];
            height = page.bounds[2] - page.bounds[0];
            $.writeln("Page: " + page.name + " - " + "width = " + width + ", height = " + height);

  • Images with width and height

    There is a way to insert an image inside of the html code
    with width and height already? I mean, now, if I want to insert an
    image at the code, goes only <img src="images/test.gif" /> I
    d like that if I insert an image it goes as: <img
    src="images/canto_topo.gif" width="8" height="29" />
    is possible in dreamwaver to do that?
    Thanks!
    Vismona

    If you insert the image using the "Insert Image" function, DW
    will
    automatically insert the width and height.
    Or, if you'd rather insert them the way you are, in the
    Property Inspector
    on the far left, click the dimensions next to the Image
    field, and DW will
    automatically add (or correct) the width and height.
    Hope that helps,
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    "Vismona" <[email protected]> wrote in
    message
    news:gc60ut$nmv$[email protected]..
    > There is a way to insert an image inside of the html
    code with width and
    > height
    > already? I mean, now, if I want to insert an image at
    the code, goes only
    > <img
    > src="images/test.gif" /> I d like that if I insert an
    image it goes as:
    > <img
    > src="images/canto_topo.gif" width="8" height="29" />
    >
    > is possible in dreamwaver to do that?
    >
    > Thanks!
    > Vismona
    >

  • [svn] 4793: Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds

    Revision: 4793
    Author: [email protected]
    Date: 2009-02-02 11:20:06 -0800 (Mon, 02 Feb 2009)
    Log Message:
    Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds
    Fix: When calculating the bounds position we should take into account the implicit scaling factor actualSize/naturalSize. Also did some refactoring, getting rid of the protected method calculateTopLeft.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17734
    Reviewer: Ryan
    tests: mustella gumbo/layout/GraphicElement
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17734
    http://bugs.adobe.com/jira/browse/SDK-17734
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Ellipse.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s

    Thank you so much for replying.
    Yes I have removed and reinstalled WMP.
    I had good results with the PD6 application installed on the default path onto the C: drive with the one exception that if the application was launched by accident and the user data path was not available, the PD6 application would blow away my custom user path registry settings. Now that I know what they are I have made a .reg file to repair my registry to my desired user data paths.
    Installing the application on the removable drive appeared to help prevent me from launching the application by accident and overwriting my registry with default user paths.
    So which is the less of the two evils?
    If the application directory is not available, windows media player still tries to launch the .msi for installing PD6.
    If I install the application to the C: drive but the user data to the removable drive, launching the PD6 application without the user data drive will still corrupt my registry settings for a user data path.
    Both these issues seem like a logical (if not easy) fix that should be done in the PD6 application and installation package. I mean really, cannot anyone tell me why windows media player is checking the PD6 application directory? Why in PD4 did we have an option control for setting the user data path from the PD4 application? Why is this option not in the PD6 application, just the installer?
    I am given a choice during installation to move the user data to another non default location. Why else would this be provided if not to accommodate my kind of request to store the user data into an alternate location other than “My Document”. Certainly Palm is not trying to force the users on how to protect and store their personal data?
    Post relates to: Centro (Verizon)

  • How to calculate actual selection or group width and height with clipping

    If a group has clipping paths then the height and visible bounds will include the dimensions of all paths selected including the clipped or hidden paths.
    However, the width and height shown on the width and height of the AI detail boxes for the selection shows just the visible dimensions.
    I want to retrieve the same values that is shown on the screen when a group is selected.
    It is somewhat counterintuitive that the "visiblebounds" property does not show just what is visible.
    I'm scaling the visible content of a selection to fit within another path but I need to be able to calculate the dimensions of the only what is visible after clipping.
    What do you have to do with scripting to get these values? Go through all of the path items in a group recursively and save the min and max values of any visiblebounds for clipping paths? Any better alternatives that I don't see?
    Thanks for any help!

    I ended up using the visible bounds for both scale and position as I also discovered that attempting to position a group with the position method would also result in missing the mark. The top and left (x,y) bounds I calculated without the clipped dimensions needed to be used to offset the actual position where I wanted the visible paths to be displayed.
    The functions I used ended up looking like so:
    function GetPoints(dblInch)
         var dpi = 72;
         return dblInch * dpi;
    function getRealVisibleBounds(grp) {
         var outerBounds = [];
         for(var i = grp.pageItems.length - 1; i >= 0;i--)  {
              var bounds = [];
              if(grp.pageItems[i].typename == 'GroupItem') {
                   bounds =  getRealVisibleBounds(grp.pageItems[i]);
              else if((grp.pageItems[i].typename == 'PathItem' || grp.pageItems[i].typename == 'CompoundPathItem')
                   && (grp.pageItems[i].clipping || !grp.clipped)) {
                   bounds = grp.pageItems[i].visibleBounds;
              if (bounds.length > 0) {
                   outerBounds = maxBounds(outerBounds,bounds);
         return (outerBounds.length == 0) ? null : outerBounds;
    function positionVisible(grp,x,y)
         var bounds = getRealVisibleBounds(grp);
         var newX = GetPoints(x) + (grp.left - bounds[0]);
         var newY = GetPoints(y) + (grp.top - bounds[1]);
         grp.position = [newX,newY];
    function maxBounds(ary1,ary2) {
         var res = [];
         if(ary1.length == 0)
              res = ary2;
         else if(ary2.length == 0)
              res = ary1;
         else {
              res[0] = Math.min(ary1[0],ary2[0]);
              res[1] = Math.max(ary1[1],ary2[1]);
              res[2] = Math.max(ary1[2],ary2[2]);
              res[3] = Math.min(ary1[3],ary2[3]);
         return res;
    and were called like so:
    var doc = app.activeDocument;
    if (doc.selection.length > 0) {
         var grpOriginal = null;
         if(doc.selection.length == 1 && doc.selection[0].typename == 'GroupItem') {
              grpOriginal = doc.selection[0];
         else {
              grpOriginal = doc.groupItems.add();
         doc.selection = null;
         if(grpOriginal.layer.name != 'approval') {
              grpOriginal.move(doc.layers['approval'],ElementPlacement.PLACEATEND);
         var artBounds = getRealVisibleBounds (grpOriginal);
         var artWidth = artBounds[2] - artBounds[0];
         var artHeight = artBounds[1] - artBounds[3];
         var imprintHeight = GetPoints(0.625);       // 0.625 is new height, hardcoded for demonstration
         var imprintRatio = imprintHeight / artHeight;
         var section = doc.layers['sectionLeft'];    // section where I placed the art
         var grpArt = grpOriginal.duplicate(section,ElementPlacement.PLACEATEND);
         grpArt.resize(100.0 * imprintRatio,100.0 * imprintRatio);
         grpArt.move(section,ElementPlacement.PLACEATBEGINNING);
         grpArt.selected = true;
         positionVisible(grpArt,0.0,16.75);          // x & y hardcoded for demonstration
    else {
         alert('artwork needs to be selected');
    I'm new at this so are there any better options to do these things?

  • Problem with PHP not working and Extra space in form I can't get rid of

    This is my first time doing a form, much less using php. I would appreciate your help on the problems below.
    1. in the form when you go to the website there is too much vertical spacing between the form fields.
    2.the Message field has script inside that vistors can see.
    3. on hitting the submit button it redirects me to a blank page and not the thankyou.html page that I had created.
    4. the form doesn't send the email to [email protected]
    Website URL: http://stickmancustoms.com/contact.html
    <!-- FORM CODE STARTS HERE -->
    <?php session_start(); ?>
    <?php
    if (array_key_exists('submit', $_POST)) {
        // check name field
    $name = trim($_POST['name']);
    if (empty($name)) {
        $error['name'] = 'Please provide your first name';
    elseif ($name == 'Please provide your first name') {
        $error['name'] = '';
    $_SESSION['name'] = $_POST['name'];
    // check phone field
    $phone = trim($_POST['phone']);
    if (empty($phone)) {
        $error['phone'] = 'Please provide your last name';
    elseif ($phone == 'Please provide your last name') {
        $error['phone'] = '';
    $_SESSION['phone'] = $_POST['phone'];
    // check email field
    $email = trim($_POST['email']);
    if (empty($email)) {
        $error['email'] = 'Please enter your email address';
    elseif ($email == 'Please enter your email address') {
        $error['email'] = '';
    $_SESSION['email'] = $_POST['email'];
    // check enquiry field
    $message = trim($_POST['message']);
    if (empty($message)) {
        $error['message'] = 'Please enter your message details';
    elseif ($message == 'Please enter your message details') {
        $error['message'] = '';
    $_SESSION['message'] = $_POST['message'];
    if (!empty($_POST['ufo'])) { return false; }
    // recipient
    $to = "[email protected]"; //email address -- change to your own email address
    // email subject
    $subject = "I am interested in your services, please contact me";
    // sender
    $sender = "From: ".$_POST['email']."\r\n";
    // build message
    $enquiry = "First Name: $name\n\n";
    $enquiry .= "Last Name: $phone\n\n";
    $enquiry .= "Email Address: $email\n\n";
    $enquiry .= "Message: $message\n\n";
    // send email if no form erorrs
    if (!isset($error)) {
    mail($to, $subject, $enquiry, $sender);
    header("Location: thankyou.html");        //Redirect page -- change to your own page
    ?>
    CONTACT WEB PAGE CODE BELOW
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="auto repair, accident damage, custom paint, customization, car repair, paint job, hot rod, motorcycle, cycle, bike, chopper"
    content="At StickMan Customs we give personal service with a smile. With more than 20 years experience in auto repair and customization you can be confident that we will meet your expectations and beyond. " />
    <meta name="google-site-verification" content="-41pB0MQUYT1Vbv1SId8WcU2lqEmFf0u23Sl3NY24CE" />
    <title>Stickman Customs</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="smc.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    a:visited {
        color: #F4781E;
    -->
    </style>
    </head>
    <body bgcolor="#000000">
    <table width="936" height="200" border="0" align="center">
      <tr>
        <td height="196" valign="top"><p class="style1"><a href="index.html" target="_self"><a href="index.html" target="_self"><img src="images/smcbanner.jpg" width="936" height="194" border="0" usemap="#Map" /></a>
            <map name="Map" id="Map">
              <area shape="rect" coords="97,7,289,190" href="index.html" target="_self" />
              <area shape="rect" coords="290,156,380,189" href="about.html" target="_self" />
              <area shape="rect" coords="396,159,550,190" href="repair.html" target="_self" />
              <area shape="rect" coords="561,159,619,190" href="cars.html" target="_self" />
              <area shape="rect" coords="627,159,703,188" href="cycles.html" target="_self" />
              <area shape="rect" coords="711,160,885,190" href="projects.html" target="_self" />
              <area shape="rect" coords="734,23,917,78" href="contact.html" target="_self" />
              <area shape="rect" coords="786,175,787,176" href="#" />
            </map>
          </p>
          <table width="936" border="0" align="center" cellpadding="5" cellspacing="5">
            <tr>
              <td width="512" height="450" valign="top"><p class="Headers"><img src="images/car1.jpg" width="432" height="432" /></p></td>
              <td width="389" height="450" valign="top"><form id="enquiryForm" name="enquiryForm" method="post" action="contact.php">
                  <h1><span class="BodyBold">Contact Us </span></h1>
                  <h1> <span class="BodyCopy">*Required Information </span></h1>
                  <h1><span class="BodyBold">
                    <label for="Name">Name* </label>
                    </span>
                    <input type="text" name="name" id="name" <?php if(isset($error['first_name'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($name)) {echo $name;} ?><?php if(isset($error['first_name'])) echo $error['name']; ?>" onfocus="this.value=''" />
                  </h1>
                  <p>
                    <label for="Name" class="BodyBold">Phone* </label>
                    <input type="text" name="phone" id="phone" <?php if(isset($error['phone'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($phone)) {echo $phone;} ?><?php if(isset($error['phone'])) echo $error['phone']; ?>" onfocus="this.value=''" />
                  <p>
                    <label for="email" class="BodyBold">Email* </label>
                    <input type="text" name="email" id="email" <?php if(isset($error['email'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($email)) {echo $email;} ?><?php if(isset($error['email'])) echo $error['email']; ?>" onfocus="this.value=''" />
                  <p style="padding-bottom: 0;">
                    <label for="enquiry" class="BodyBold">Message*</label>
                    <br />
                    <textarea name="message" id="message" <?php if(isset($error['message'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> onfocus="this.value=''"><?php if(isset($message)) {echo $message;} ?><?php if(isset($error['message'])) echo $error['message']; ?>
              </textarea>
                  </p>
                  <p>
                    <input type="text" name="ufo" style="display: none;" />
                    <input type="submit" id="submitButton" name="submit" value="Submit" />
                  </p>
    </form></td>
            </tr>
          </table></td>
      </tr>
    </table>
    <table width="936" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><div align="center">
            <div align="center" class="bottomlinks">
              <p><a href="about.html" target="_self"><br />
                ABOUT US <img src="images/space.jpg" alt="s" width="18" height="7" border="0" /></a>| <a href="index.html" target="_self"><img src="images/space.jpg" alt="s" width="18" height="7" border="0" /></a><a href="repair.html" target="_self">ACCIDENT REPAIR</a><a href="index.html" target="_self"><img src="images/space.jpg" alt="s" width="18" height="7" border="0" /></a>| <a href="index.html" target="_self"><img src="images/space.jpg" alt="s" width="18" height="7" border="0" /></a><a href="cars.html" target="_self">CARS</a><a href="index.html" target="_self"><img src="images/space.jpg" alt="s" width="18" height="7" border="0" /></a>| <a href="index.html" target="_self"><img src="images/space.jpg" alt="s" width="18" height="7" border="0" /></a><a href="cycles.html" target="_self">CYCLES</a><a href="index.html" target="_self"><img src="images/space.jpg" alt="s" width="18" height="7" border="0" /></a>| <a href="index.html" target="_self"><img src="images/space.jpg" alt="s" width="18" height="7" border="0" /></a><a href="projects.html" target="_self">SPECIAL PROJECTS</a></p>
              <p class="Address_Text">StickMan Customs<br />
                800 Mooresville Rd, Kannapolis, NC 28081<br />
                704.699.5110 </p>
            </div>
            <p class="style74"><span class="atb_text">Designed &amp; Hosted by</span><br />
              <a href="http://www.abovethebarrdesign.com" target="_self"><img src="images/atbd.jpg" alt="1" width="155" height="77" border="0" /></a><br />
            </p>
          </div></td>
      </tr>
    </table>
    </body>
    </html>
    <!-- text below generated by server. PLEASE REMOVE -->
    <!-- Counter/Statistics data collection code -->
    <script language="JavaScript" src="http://us.js2.yimg.com/us.js.yimg.com/lib/smb/js/hosting/cp/js_source/whv2_001.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">geovisit();</script>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <noscript>
    <img src="http://visit.webhosting.yahoo.com/visit.gif?us1262644054" alt="setstats" border="0" width="1" height="1" />
    </noscript>
    </html>

    The below should work for you.
    As Jon points out the page has to be a .php page NOT a .html page.
    The idea is that the page gets sent back to itself and the form information is processed then sent to the email address if there are no errors detected.
    The unusual gaps in the form were being caused by unclosed tags amongst other things - hopefuly I put some of it right for you.
    Copy all of the below and save it as contact.php - Obviously your server needs to support php for it to work, most do. I have not specified your email address in the php as it attracts spam from the forum so re-instate it where the xxxxxxx are.
    <?php
    if (array_key_exists('submit', $_POST)) {
    // check name field
    $name = trim($_POST['name']);
    if (empty($name)) {
    $error['name'] = 'Please provide your name';
    elseif ($name == 'Please provide your name') {
    $error['name'] = '';
    // check phone field
    $phone = trim($_POST['phone']);
    if (empty($phone)) {
    $error['phone'] = 'Please provide your phone number';
    elseif ($phone == 'Please provide your phone number') {
    $error['phone'] = '';
    // check email field
    $email = trim($_POST['email']);
    if (empty($email)) {
    $error['email'] = 'Please enter your email address';
    elseif ($email == 'Please enter your email address') {
    $error['email'] = '';
    // check enquiry field
    $message = trim($_POST['message']);
    if (empty($message)) {
    $error['message'] = 'Please enter your message details';
    elseif ($message == 'Please enter your message details') {
    $error['message'] = '';
    if (!empty($_POST['ufo'])) { return false; }
    // recipient
    $to = "xxxxxx@xxxxxxxxxxxxxx"; //email address -- change to your own email address
    // email subject
    $subject = "I am interested in your services, please contact me";
    // sender
    $sender = "From: ".$_POST['email']."\r\n";
    // build message
    $enquiry = "Name: $name\n\n";
    $enquiry .= "Phone Number: $phone\n\n";
    $enquiry .= "Email Address: $email\n\n";
    $enquiry .= "Message: $message\n\n";
    // send email if no form erorrs
    if (!isset($error)) {
    mail($to, $subject, $enquiry, $sender);
    header("Location: thankyou.html");  //Redirect page -- change to your own page
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="auto repair, accident damage, custom paint, customization, car repair, paint job, hot rod, motorcycle, cycle, bike, chopper"
    content="At StickMan Customs we give personal service with a smile. With more than 20 years experience in auto repair and customization you can be confident that we will meet your expectations and beyond. " />
    <meta name="google-site-verification" content="-41pB0MQUYT1Vbv1SId8WcU2lqEmFf0u23Sl3NY24CE" />
    <title>Stickman Customs</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="http://stickmancustoms.com/smc.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    a:visited {
        color: #F4781E;
    -->
    </style>
    </head>
    <body bgcolor="#000000">
    <table width="936" height="200" border="0" align="center">
      <tr>
        <td height="196" valign="top"><p class="style1"><a href="index.html" target="_self"><a href="index.html" target="_self"><img src="http://stickmancustoms.com/images/smcbanner.jpg" width="936" height="194" border="0" usemap="#Map" /></a>
            <map name="Map" id="Map">
              <area shape="rect" coords="97,7,289,190" href="index.html" target="_self" />
              <area shape="rect" coords="290,156,380,189" href="about.html" target="_self" />
              <area shape="rect" coords="396,159,550,190" href="repair.html" target="_self" />
              <area shape="rect" coords="561,159,619,190" href="cars.html" target="_self" />
              <area shape="rect" coords="627,159,703,188" href="cycles.html" target="_self" />
              <area shape="rect" coords="711,160,885,190" href="projects.html" target="_self" />
              <area shape="rect" coords="734,23,917,78" href="contact.html" target="_self" />
              <area shape="rect" coords="786,175,787,176" href="#" />
            </map>
          </p>
          <table width="936" border="0" align="center" cellpadding="5" cellspacing="5">
            <tr>
              <td width="512" height="450" valign="top"><p class="Headers"><img src="http://stickmancustoms.com/images/car1.jpg" width="432" height="432" /></p></td>
              <td width="389" height="450" valign="top"><form id="enquiryForm" name="enquiryForm" method="post" action="contact.php">
                  <p><span class="BodyBold">Contact Us </span></p>
                  <p><span class="BodyCopy">*Required Information</span></p>
                  <p>
                    <label for="Name" class="BodyBold">Name* </label>
                    </span>
                    <input type="text" name="name" id="name" <?php if(isset($error['name'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($name)) {echo $name;} ?><?php if(isset($error['name'])) echo $error['name']; ?>" onfocus="this.value=''" />
                  </p>
                  <p>
                    <label for="Name" class="BodyBold">Phone* </label>
                    <input type="text" name="phone" id="phone" <?php if(isset($error['phone'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($phone)) {echo $phone;} ?><?php if(isset($error['phone'])) echo $error['phone']; ?>" onfocus="this.value=''" />
                  </p>
                  <p>
                    <label for="email" class="BodyBold">Email* </label>
                    <input type="text" name="email" id="email" <?php if(isset($error['email'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($email)) {echo $email;} ?><?php if(isset($error['email'])) echo $error['email']; ?>" onfocus="this.value=''" />
                    </p>
                  <p>
                    <label for="enquiry" class="BodyBold">Message*</label>
                    <textarea name="message" id="message" <?php if(isset($error['message'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> onfocus="this.value=''"><?php if(isset($message)) {echo $message;} ?><?php if(isset($error['message'])) echo $error['message']; ?>
              </textarea>
                  </p>
                  <p>
                    <input type="text" name="ufo" style="display: none;" />
                    <input type="submit" id="submitButton" name="submit" value="Submit" />
                  </p>
    </form></td>
            </tr>
          </table></td>
      </tr>
    </table>
    <table width="936" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><div align="center">
            <div align="center" class="bottomlinks">
              <p><a href="about.html" target="_self">
                ABOUT US <img src="http://stickmancustoms.com/images/space.jpg" alt="s" width="18" height="7" border="0" /></a>| <a href="index.html" target="_self"><img src="http://stickmancustoms.com/images/space.jpg" alt="s" width="18" height="7" border="0" /></a><a href="repair.html" target="_self">ACCIDENT REPAIR</a><a href="index.html" target="_self"><img src="http://stickmancustoms.com/images/space.jpg" alt="s" width="18" height="7" border="0" /></a>| <a href="index.html" target="_self"><img src="http://stickmancustoms.com/images/space.jpg" alt="s" width="18" height="7" border="0" /></a><a href="cars.html" target="_self">CARS</a><a href="index.html" target="_self"><img src="http://stickmancustoms.com/images/space.jpg" alt="s" width="18" height="7" border="0" /></a>| <a href="index.html" target="_self"><img src="http://stickmancustoms.com/images/space.jpg" alt="s" width="18" height="7" border="0" /></a><a href="cycles.html" target="_self">CYCLES</a><a href="index.html" target="_self"><img src="http://stickmancustoms.com/images/space.jpg" alt="s" width="18" height="7" border="0" /></a>| <a href="index.html" target="_self"><img src="http://stickmancustoms.com/images/space.jpg" alt="s" width="18" height="7" border="0" /></a><a href="projects.html" target="_self">SPECIAL PROJECTS</a></p>
              <p class="Address_Text">StickMan Customs<br />
                800 Mooresville Rd, Kannapolis, NC 28081<br />
                704.699.5110 </p>
            </div>
            <p class="style74"><span class="atb_text">Designed &amp; Hosted by</span><br />
              <a href="http://www.abovethebarrdesign.com" target="_self"><img src="http://stickmancustoms.com/images/atbd.jpg" alt="1" width="155" height="77" border="0" /></a><br />
            </p>
          </div></td>
      </tr>
    </table>
    </body>
    </html>
    <!-- text below generated by server. PLEASE REMOVE -->
    <!-- Counter/Statistics data collection code -->
    <script language="JavaScript" src="http://us.js2.yimg.com/us.js.yimg.com/lib/smb/js/hosting/cp/js_source/whv2_001.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">geovisit();</script>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <noscript>
    <img src="http://visit.webhosting.yahoo.com/visit.gif?us1262644054" alt="setstats" border="0" width="1" height="1" />
    </noscript>
    </html>

  • Problem with computing Font width while printing in Landscape mode

    I have an application which prints a table and fills it with some text. I render it on a JComponent using the drawString(theStr, xPos, yPos) and the drawLine(rigtX, topY, rigtX, botY) methods in Graphics2D object. I want to take print-out of the table and also store the image of the table in, say, jpeg format. The print can be in Landscape or Portrait format depending on the size of the JComponent, which the user sets depending on the table size and the font size.
    I have a paintTable( ) method which contains all the drawString( ) and drawLine( ) methods. This method is called from the paint( ) method of the JComponent to achieve normal rendering. The same method is called to get a BufferedImage of the Table. The same method is further called from the implementation of print( ) method from the Printable interface.
    In the paintTable( ) method, I compute the pixel coordinates of the table grid lines and the texts positions in the tables depending on the font width and height obtained as shown below:
            // Set the Font             
            Font theFont = graphics.getFont();
            theFont = theFont.deriveFont((float)TableFontSize); // TableFontSize is an int of value 8,9,10 etc.
            graphics.setFont(theFont);
            // Get the Font Size      
            FontRenderContext frc = graphics.getFontRenderContext();
            float width = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).width;
            float height = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).height;
           System.out.println("FONT WIDTH HEIGHT [" + width + "," + height + "] ");I am getting the following value of width and height when the above print statement is executed with a value of 9 for TableFontSize. FONT WIDTH HEIGHT [18.0,11.3203125]
    The problem I face is :
    While Printing in Landscape mode the value of the 'width' variable printed as given above is becoming negative. Kindly see the values: FONT WIDTH HEIGHT [-9.37793,11.3203125]. This is happening ONLY DURING PRINTING IN LANDSCAPE MODE. This makes my calculation of table grid line coordinates and text positions completely wrong and the table goes out of place.
    Kindly note that, there is no problem during normal rendering and BuffereredImage creation and also while printing in Portrait mode. The problem happens irrespective of Linux or Windows. The value of 'height' is always correct.
    Kindly let me know: If the method I use to get the 'width' and 'height' is correct ? Is there any better way which will work fine in all platforms under all circumstances.
    Kindly help me to sort out this issue.
    Thanks a lot in advance and best regards
    -acj123

    I have extracted the relevent code and made a stand alone program.
    The complete code is enclosed; including that for printing.
    Kindly go through the same and help me to solve this problem.
    Thanks again and regards
    -acj123
    import java.awt.*;
    import java.util.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.awt.print.PrinterJob;
    import java.awt.font.FontRenderContext;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    public class MyCanvas extends JComponent implements Printable, ActionListener
        int TableFontSize = 9;
        private Graphics2D graphics;
        public MyCanvas(JFrame frame)
            frame.getContentPane().setLayout(new BorderLayout());
            frame.getContentPane().add(this, BorderLayout.CENTER);
            frame.setJMenuBar(createMenuBar());
        public JMenuBar createMenuBar()
            JMenuBar menubar = new JMenuBar();
            JButton printButton = new JButton("Print");
            menubar.add(printButton);
            printButton.addActionListener(this);
            JButton imageButton = new JButton("Image");
            menubar.add(imageButton);
            imageButton.addActionListener(this);
            JButton drawButton = new JButton("Draw");
            menubar.add(drawButton);
            drawButton.addActionListener(this);
            JButton closeButton = new JButton("Close");
            menubar.add(closeButton);
            closeButton.addActionListener(this);
            return menubar;
        public void actionPerformed(ActionEvent evt)
            String source = evt.getActionCommand();
            if  (source.equals("Close"))
                System.exit(0);
            if  (source.equals("Image"))
                getImage();
                return;
            if  (source.equals("Print"))
                printCanvas();
                return;
            if  (source.equals("Draw"))
                repaint();
                return;
        public BufferedImage getImage()
            Dimension dim = getSize();
            BufferedImage image = (BufferedImage)createImage(dim.width, dim.height);
            this.graphics = (Graphics2D)image.createGraphics();
            System.out.print("\nImage ");
            paintCanvas();
            return image;
        public void paint(Graphics graph)
            this.graphics = (Graphics2D)graph;
            System.out.print("\nDraw  ");
            paintCanvas();
        public void paintCanvas()
            // Set the Font      
            Font theFont = graphics.getFont();
            theFont = theFont.deriveFont((float)TableFontSize);
            graphics.setFont(theFont);  
            // Get the Font Size       
            FontRenderContext frc = graphics.getFontRenderContext();
            float width = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).width;
            float height= ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).height;
            System.out.print("FONT WIDTH HEIGHT [" + width + ", " + height + "] ");
            System.out.print(" SIZE "+ super.getWidth() +", "+ super.getHeight());
        public int print(Graphics graph, PageFormat pageFormat, int pageIndex)
            throws PrinterException
            if (pageIndex > 0) return Printable.NO_SUCH_PAGE;
            this.graphics = (Graphics2D)graph;
            graphics.translate(0,0);
            paintCanvas();
            return Printable.PAGE_EXISTS;
         *  Interface method for Printing the Canvas on Paper
        public void printCanvas()
            PrinterJob printJob =  PrinterJob.getPrinterJob();
            printJob.setPrintable(this);
            PrintRequestAttributeSet attr = new HashPrintRequestAttributeSet();
            if (super.getWidth() < super.getHeight())
                System.out.print("\nPrint PORTRAIT ");
                attr.add(OrientationRequested.PORTRAIT);
            else
                System.out.print("\nPrint LANDSCAPE ");
                attr.add(OrientationRequested.LANDSCAPE);
            Dimension dim = getSize();
            attr.add(new MediaPrintableArea(1, 1, dim.width, dim.height,
                                                  MediaPrintableArea.MM));
            attr.add(new JobName("MyCanvas", Locale.ENGLISH));
            attr.add(new RequestingUserName("acj123", Locale.ENGLISH));
            if (printJob.printDialog(attr))
                try
                    printJob.print(attr);
                catch(PrinterException ex)
                    ex.printStackTrace();
        public static void main(String[] arg)
            JFrame frame = new JFrame("MyFrame");
            MyCanvas canvas = new MyCanvas(frame);
            frame.setSize(800, 600);
            frame.setVisible(true);
    }

  • Problem with  whitespace  then loading and saving xml

    i do not know how to handle this problem. i modifed a texteditor to send XML to a server and load XML back to the container.
    but then i do changes to the Textlayout it shows up like this --->
    Text in Container not modifed
    Text in Container modifed ---> with space beween the colorchanged string
    Text inContainersend and loaded ---> i think this has something to to with the
    TextFilter.export(_textFlow,TextFilter.TEXT_LAYOUT_FORMAT,ConversionType.XML_TYPE)
    can someone give me a hint...

    Hi,
    the link is --->
    http://www.horstmann-architekten.de/contentmanagment/SimpleEditor.html
    its a modified example of the texteditor provided by Adobe. You can send a xml to the server. and also read it from the server. You just use the xml identifer to give the xml a name.
    Try it out:
    1.  change the text and
    2.  give a XML-Identifer
         and then send it to the server. --> send to server
    3.  type in the XML-Identifer you have used and
    4.   load it from the server ---> Load from Server Button
    evering works ok exept the columns formating.
    I Think the colums Formating is not embeded in the XML as it should be. I attached the Files. (Newbie programmer)
    With best regards
    Michael Sprinzl
    --- robin.briggs <[email protected]> schrieb am Do, 17.9.2009:
    Von: robin.briggs <[email protected]>
    Betreff: Problem with  whitespace  then loading and saving xml
    An: "Michael sprinzl" <[email protected]>
    Datum: Donnerstag, 17. September 2009, 2:12
    Sounds like you have two different issues going on: (1) inline graphics aren't coming out correctly when you use the TextLineFactory, and (2) columns aren't working correctly. It's difficult for me to tell by looking at the application you link what is going wrong. One of the examples does seem to have columns working -- can you be more specific about what you're doing, and what results you are seeing? As for the inline graphics, there is a timing issue involved with using URLs, due to the asynchronous loading. See this comment in the docs for TextFlowTextLineFactory:
    Note: When using inline graphics, the source property of the InlineGraphicElement object   must either be an instance of a DisplayObject or a Class object representing an embedded asset.   URLRequest objects cannot be used. The width and height of the inline graphic at the time the line   is created is used to compose the flow.
    - robin

  • Scripting TGetProperty width and height

    Hello all,
    i have a problem with the flash player in IE6 and FF2.
    I have a html page with some flash movie elements on it.
    I'm using SWFObject to bind the movies in.
    After the onload event is fired, for each flash movie the
    javascript function setCorrectSize4Flash will be called to resize
    the html container element (embed, object tag) automatically by the
    given width and height of the flash movie.
    Therefore i'm checking if the movie is completely loaded and
    if width and height is not undefined.
    So if i'm getting width and height, i'm resizing the
    container element to best fit in.
    My problem is now, that the same movie used several times in
    the same html page has every time different width and height
    values. Sometimes the aspect ratio is 1:2 and sometimes it's 2:1.
    Is this a problem of the flash player plugin or am i doing
    something wrong.
    Best regards,
    bartmark

    Thank you for your answer. But I don't understand:
    The question is not the margin. I put in the body margin: 0; padding:0; and there is no margin.
    I want to know the viewport:   the width and height with the iPad in horizontal position and without the address bar.
    This does not coincide with the 1024 x 768. (nor the 946 x 768 if I rest the address bar).  I don't understand why
    Thank you
    Narcís

  • How to change the width and height of the visible part of the of the report

    I have define a report with paper size 'Letter', orientation 'landscape' and 30 columns. Dynamically I am changing width of columns and suppressing many columns of the report.
    Mostly using first 16-20 columns and others get suppressed.
    Now problem is that when navigating the report thru crystal viewer, a huge blank spaces getting display on right of the report. When we take jump to some part of report thru navigation tree, the whole report gets shifted to left and only blank part is visible and it is required to scroll left.
    Even printing is not working correctly.
    Is there any way to change the width and height of the visible part of the report in the viewer thru .net classes? Setting the width and height of the report in Load event handler doesn't help.  
    Example: CrystalReportViewer1.Width = 200; - is not helping.
    Is there any other solution?
    Please let me know.
    Thanks
    Mahesh Patel

    Hi Yogesh,
    Your suggestion 'reportDocument.PrintOptions.PaperSize=PaperSize.PaperLedger;' along with 'PaperOrientation' setting as follow works fine. I tried to switch between Landscape and Portrait depending on report width.
    reportDocument.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
    But problem with crystal viewer remain as it is.
    While navigating report thru crystal viewer, when we take jump to some part of report thru navigation tree, the whole report gets shifted to left and it is required to scroll left.
    Thanks for your very good suggestion.
    Mahesh Patel

  • How to create a map that is larger than the game in width and height?

    hi,
    i wounder how i can create a map(not the design) that is larger than the game in width and height, part of it will appear in the main page and anther part you can move to it after you press the arrow symbol, but the map is just one image so i want put it in line and out line the game page, and the out line part includes buttons and symbols the player can use, but it will be in line and the other part will be out line when you press the left arrow or the down arrow, how i can do that?
    and is that possible to animate it so when the player press the arrow, will give it action to start the animation in one sec, i know how to animate it if that possible but i don't know which code i will use for the mouse click with the arrow symbol, and how to use the same code in the same symbol to start anther animation depending on which part of the map is on?

    I don't know a lot about mask and masked layers and how to work with the normal layers beside i will use some 3D graphics but not in the background, i will explain all this to you to be more clearly.
    first i am using action script 3.0
    close ex,
    you have 2d map"image"  900*300 pixel.
    this image contains some 2d symbols when you click will go to anther normal map (anther normal layer) so they must appear.
    your game 320*320 px, and the place the map will show on 300*300, and there's basics objects will be in most pages including the page that show the map so i don't know a lot about how this will work with mask layers.
    so you can only see the left side of the map image and what it contains, while there's two arrows one to the left and one to the right there's three cases here,
    first when it show the left side(start from x:0 to x:300), the left arrow will not active when you press and the right arrow will start an animation that make the map image move to the mid side in one sec when you press.
    in mid side (start from x:301 to x:600) the same left arrow will active when you press to send you back to the left side while the same right arrow will be active to send you not to the mid side but to the right side,
    when moved to the right side the same left arrow will be active to send you to the mid and the right will not active when you press and depending on that,
    first how to make the large image appear with the three sides in the same place without effecting the other objects "like disappearing them" ?
    and the codes i need in the same left or right arrow symbol to make different actions with the same symbol when clicked depending on which part of the map is on.

  • Java returning incorrect values for width and height of a Tiff image

    I have some TIFF images (sorry, I cannot post them b/c of there confidential nature) that are returning the incorrect values for the width and height. I am using Image.getWidth(null) and have tried the relevant methods from BufferedImage. When I open the same files in external viewers (Irfanview, MS Office Document Imaging) they look fine and report the "correct" dimensions. When I re-save the files, my code works fine. Obviously, there is something wrong with the files, but why would the Java code fail and not the external viewers? Is there some way I can detect file problems?
    Here is the code, the relevant section is in the print() routine.
    * ImagePrinter.java
    * Created on Feb 27, 2008
    * Created by tso1207
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.print.PageFormat;
    import java.awt.print.PrinterException;
    import java.io.File;
    import java.io.IOException;
    import java.util.Iterator;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageReader;
    import javax.imageio.stream.FileImageInputStream;
    import javax.imageio.stream.ImageInputStream;
    import com.shelter.io.FileTypeIdentifier;
    public class ImagePrinter extends FilePrintable
       private final ImageReader _reader;
       private final int _pageCount;
       private final boolean _isTiff;
       //for speed we will hold current page info in memory
       private Image _image = null;
       private int _imgWidth = 0;
       private int _imgHeight = 0;
       private int _currentPage = -1;
       public ImagePrinter(File imageFile) throws IOException
          super(imageFile);
          ImageInputStream fis = new FileImageInputStream(getFile());
          Iterator readerIter = ImageIO.getImageReaders(fis);
          ImageReader reader = null;
          while (readerIter.hasNext())
             reader = (ImageReader) readerIter.next();
          reader.setInput(fis);
          _reader = reader;
          int pageCount = 1;
          String mimeType = FileTypeIdentifier.getMimeType(imageFile, true);
          if (mimeType.equalsIgnoreCase("image/tiff"))
             _isTiff = true;
             pageCount = reader.getNumImages(true);
          else
             _isTiff = false;
          _pageCount = pageCount;
       public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
          throws java.awt.print.PrinterException
          int drawX = 0, drawY = 0;
          double scaleRatio = 1;
          if (getCurrentPage() != (pageIndex - getPageOffset()))
             try
                setCurrentPage(pageIndex - getPageOffset());
                setImage(_reader.read(getCurrentPage()));
                setImgWidth(getImage().getWidth(null));
                setImgHeight(getImage().getHeight(null));
             catch (IndexOutOfBoundsException e)
                return NO_SUCH_PAGE;
             catch (IOException e)
                throw new PrinterException(e.getLocalizedMessage());
             if (!_isTiff && getImgWidth() > getImgHeight())
                pf.setOrientation(PageFormat.LANDSCAPE);
             else
                pf.setOrientation(PageFormat.PORTRAIT);
          Graphics2D g2 = (Graphics2D) g;
          g2.translate(pf.getImageableX(), pf.getImageableY());
          g2.setClip(0, 0, (int) pf.getImageableWidth(), (int) pf.getImageableHeight());
          scaleRatio =
             (double) ((getImgWidth() > getImgHeight())
                ? (pf.getImageableWidth() / getImgWidth())
                : (pf.getImageableHeight() / getImgHeight()));
          //check the scale ratio to make sure that we will not write something off the page
          if ((getImgWidth() * scaleRatio) > pf.getImageableWidth())
             scaleRatio = (pf.getImageableWidth() / getImgWidth());
          else if ((getImgHeight() * scaleRatio) > pf.getImageableHeight())
             scaleRatio = (pf.getImageableHeight() / getImgHeight());
          int drawWidth = getImgWidth();
          int drawHeight = getImgHeight();
          //center image
          if (scaleRatio < 1)
             drawX = (int) ((pf.getImageableWidth() - (getImgWidth() * scaleRatio)) / 2);
             drawY = (int) ((pf.getImageableHeight() - (getImgHeight() * scaleRatio)) / 2);
             drawWidth = (int) (getImgWidth() * scaleRatio);
             drawHeight = (int) (getImgHeight() * scaleRatio);
          else
             drawX = (int) (pf.getImageableWidth() - getImgWidth()) / 2;
             drawY = (int) (pf.getImageableHeight() - getImgHeight()) / 2;
          g2.drawImage(getImage(), drawX, drawY, drawWidth, drawHeight, null);
          g2.dispose();
          return PAGE_EXISTS;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since version XXX
        * @return
       public int getPageCount()
          return _pageCount;
       public void destroy()
          setImage(null);
          try
             _reader.reset();
             _reader.dispose();
          catch (Exception e)
          System.gc();
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since Mar 25, 2008
        * @return
       public Image getImage()
          return _image;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since Mar 25, 2008
        * @return
       public int getImgHeight()
          return _imgHeight;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since Mar 25, 2008
        * @return
       public int getImgWidth()
          return _imgWidth;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since Mar 25, 2008
        * @param image
       public void setImage(Image image)
          _image = image;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since Mar 25, 2008
        * @param i
       public void setImgHeight(int i)
          _imgHeight = i;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since Mar 25, 2008
        * @param i
       public void setImgWidth(int i)
          _imgWidth = i;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since Mar 25, 2008
        * @return
       public int getCurrentPage()
          return _currentPage;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since Mar 25, 2008
        * @param i
       public void setCurrentPage(int i)
          _currentPage = i;
    }Edited by: jloyd01 on Jul 3, 2008 8:26 AM

    Figured it out. The files have a different vertical and horizontal resolutions. In this case the horizontal resolution is 200 DPI and the vertical is 100 DPI. The imgage width and height values are based on those resolution values. I wrote a section of code to take care of the problem (at least for TIFF 6.0)
       private void setPageSize(int pageNum) throws IOException
          IIOMetadata imageMetadata = _reader.getImageMetadata(pageNum);
          //Get the IFD (Image File Directory) which is the root of all the tags
          //for this image. From here we can get all the tags in the image.
          TIFFDirectory ifd = TIFFDirectory.createFromMetadata(imageMetadata);
          double xPixles = ifd.getTIFFField(256).getAsDouble(0);
          double yPixles = ifd.getTIFFField(257).getAsDouble(0);
          double xRes = ifd.getTIFFField(282).getAsDouble(0);
          double yres = ifd.getTIFFField(283).getAsDouble(0);
          int resUnits = ifd.getTIFFField(296).getAsInt(0);
          double imageWidth = xPixles / xRes;
          double imageHeight = yPixles / yres;
          //if units are in CM convert ot inches
          if (resUnits == 3)
             imageWidth = imageWidth * 0.3937;
             imageHeight = imageHeight * 0.3937;
          //convert to pixles in 72 DPI
          imageWidth = imageWidth * 72;
          imageHeight = imageHeight * 72;
          setImgWidth((int) Math.round(imageWidth));
          setImgHeight((int) Math.round(imageHeight));
          setImgAspectRatio(imageWidth / imageHeight);
       }

  • Finding the width and height of an image

    Hi...
    i have a path to an image "images/me.gif" and i'm trying to find its width and height.. am trying to use javax.swing.ImageIcon but it refuses to recognise the constructor with just the filename (string) parameter, and needs a URL to the file... anyone knows what i'm doing wrong??? is this the wrong class that i'm using...!??!?!?!?!?

    String filename = "images/me.gif";
    Image myImage = carregarImagem(filename);
    System.out.println(myImage.getWidth(this));
    System.out.println(myImage.getHeight(this));
    * M�todo que carrega imagens na mem�ria, a partir da URL onde o
    * applet est� sendo carregado. O uso de um 'mediaTracker' � fundamental para
    * evitar problemas quanto � velocidade de carga de uma imagem. Se voc� n�o
    * usar um mediaTracker, o seu c�digo pode tentar usar uma imagem antes dela
    * estar plenamente carregada na mem�ria, o que causaria um erro de execu��o.
    * @param nomeDaImagem O nome da imagem a ser carregada
    * @return A imagem requisitada ou null caso n�o haja tal imagem na url do applet
    public Image carregarImagem(String nomeDaImagem)
                   try
                                   Image imagem = getImage(getDocumentBase(), nomeDaImagem);
                                   MediaTracker carregador = new MediaTracker(this);
                                   carregador.addImage(imagem, 0);
                                   carregador.waitForID(0);
                                   return imagem;
                   catch(Exception erro)
                                   erro.printStackTrace();
                                   System.exit(0);
                                   return null;

Maybe you are looking for

  • Virus, Malware, Opera in my Mac OS folder. is this normal?

    I find this odd. I have found Opera in my OS file. 1 i have never knowingly download opera 2 nor have i knowingly installed it 3 why would it not be in the apps folder? any ideas?

  • I have Mac OSX 10.4.11 but it says Firefox 4 is incompatible when I try to open it

    I had a previous version of Firefox installed and after I replaced it with Firefox 4 I get " You cannot use the application "Firefox" with this version of MAC OSX" and the app will not open. I'm using Mac osx 10.4.11 and I don't see anything in the k

  • RAID for secondary drives?

    Hey all, I was just curious about something.  I have a KT3-Ultra2 with RAID but have never used RAID before.  I got this board because I thought I'd try it. My system runs off a 30 gig drive, but I thought it would be nice to have mirrored raid drive

  • How do I move pics back from my Mac desktop to my iPhone?

    I need to delete pics off of my iphone to make space.  Once I save them to iphoto on my Mac desktop - how do I move them back to my iphone if I want them there?

  • IWeb music but no Quicktime???

    Hello, so I know how to put music on my page but the only problem is I want it to be hidden and set to autoplay. When I click on the "I" (Inspector) icon I dont see the Quicktime tab to control my music. Anybody know why quicktime is not in there? th