Information/tutorial on alignment??

Does anybody know about a more complete tutorial page on different alignment problems? I've tried to make my GUI look just a little less asymmetric, but am soon giving up. I've tried all possible layout managers (except making my own :) ), but all of them have some strange features which makes it impossible for me to understand how to align my components. Have searched in all forums and the Java Tutorial for answers but haven's found any.
Or maybe there is a way to state exactly where I want things without using the managers?
Any hints on good, easy-to-understand, web pages will be tremendously appreciated!

You can do almost anything with GridbagLayout but it is a bit tricky to understand at first. I would suggest you read the java tutorial for this. I dont have the URL for you, but it should be easy to find, just search for "tutorial gridbaglayout" or something like that.
I get the feeling you are looking for a layout where you can place fields using coordinate values. JBuilder users a layout called "XYLayout" which can do this but in the long run you will want to convert to Gridbag (or some other java layout manager). I think JBuilder has a free development api if you want to try that though.
There is probably some other XYLayout library somewhere, but JBuilder is the only one I know of.
conclusion...suffer the pain of learning gridbag, its excellent when you get the hang of it!

Similar Messages

  • For some reason when I try to align center or align at all anything in Adobe Pro CC 2014, it will not do anything, and I was wondering how to solve this problem.

    I know it must have some issue with edit snapping but I have been trying various things and I still cant seem to get align to work.

    Here's a good tutorial on aligning objects on the stage. Flash arranging objects tutorial - EduTech Wiki  Are you doing something different than what is shown here for your alignment?
    Can you describe a step by step to explain how your alignment is failing?

  • Photosmart C7250 black ink not aligned

    My 7250 printer acts like it is printing but shoots blank pages. Tried new HP cartridge, cleaning the heads, aligning and get error message "Failure" "Print Cartridge Alignment Failure  See the product documentation for details." I find no details in documentation. All color cartridges appear to be working.

    This Calibration Error document offers more information on the alignment process. The main thing I often hear about is not using white paper.
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • Tutorial for creating a J2EE project with "Flex Builder 3 Beta 3 " ?

    Hi,
    I'm trying to set up a Flex environment with:
    Flex Builder 3 Beta 3 stand alone
    WTP (from eclipse update manager)
    LCDS 2.5 (with JRun)
    JBoss 4.2.2GA
    At this moment I successful installed everything (but not set up). I added WTP at Flex Builder3 (with the eclipse update manager). I copied the two flex-tomcat files in jboss.
    Then in Flex Builder 3 I created a new Flex Project. In the wizard first window, I selected J2EE, Livecycle and WTP. Then in the next window I need to configurate the J2EE server.
    I couldn't find any information/tutorial for this window? Is there a tutorial for this?
    This window ask me:
    Target Runtime: I created a new one for JBoss 4.2.2 (during this process flex builder asked me to add a project but actually I'm creating this project so I hadn't any project to add (??)).
    ContextRoot: name of the project I'm creating (default). Is it good?
    Content Folder: the default is "WebContent". Is it good?
    Flex War File: What is that? Where do I find it?
    Thanks a lot,
    Jerome

    The settings you mention all sound fine, but the I believe the Flex War file may be what you referred to as the flex-tomcat files (specifically the one should be called flex.war from the install folder).
    You don't need to deploy the flex.war file to JBoss manually, when you create a project, you just select the file in the wizard and it is extracted and used as a template for the new project. In fact, it may cause a port conflict with your project if you do deploy manually it (unless you tweak some of the config files), so it's probably worth removing it from the deploy folder if you did put it there. The other file, flex-admin.war, can stay without causing issue.
    The closest to a tutorial that I am aware of is if you search "New Flex Project" in the help system, it talks about what each of the options should be when creating LCDS projects.

  • Entered text alignment in middle, not top left...how to fix?

    I have a text field that's about .5" tall. When a user enters information into the field the entered content begins in the middle of the area. As they enter more information the center alignment seems to go away and the text moves up to simulate top left alignment (the field has expand to fit on also). So, 1) do I have to make the cell smaller for it to have top left alignment and subsequently throwing off the look of the form or 2) is there a way to get the cell to have top left alignment?
    Thanks for any help!
    Becky

    You can align the input to top, middle or bootom as well as right, left or center. These settings are contained on the font palette. The palette is probably not visible to you, so go to the Window Menu and turn the font palette on (or hit the shift F4 shortcut key). Now click on th eobject you want to align and look at the Font palette. Jsut below the Tabs is a line that says what you are editinng (by default it is set to caption and value). Change it to edit just the value. Now you can set the alignment by clicking on the paragraph tab and choosing the options that you want.

  • Swing Applet question

    I would like to know why the look and feel for Swing applet (especially, Text information embedded in JPanels) are different on Windows 2000 and XP embedded versions. The text information is left aligned in XP embedded when the same is centrally aligned in the 2000 version. In XP embedded, the applet is expanding beyond the screen size bounds. Is there anything I can do so that look and feel are the same in both these OS's.
    Regards, Scr

    nitroniouz wrote:
    (which don't work when you click on them)Are they freeze? The buttons don't react to the clicks or they seam to work but don't execute the expected function?
    I think that your actSignup actionPerfomed methos is not working well or it's taking too long to execute and you're blocking the EDT.
    Try to create a separate thread to do the database task, a SwingWorker may help you. Take a look at the [Cocurrency in Swing Tutorial|http://java.sun.com/docs/books/tutorial/uiswing/concurrency/index.html].
    Regards,
    Henrique Abreu

  • Need help with PHP mail script [was: Can someone please help me?]

    I'm trying to collect data from a form and email it.  I'm using form2mail.php and the problem is that the email is not collecting the form info and it has the same email address in the From: and To: lines. I'm really stuck and would appreciate any help.
    Here is the HTML code:
    <!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="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Contact Us</title>
    <style type="text/css">
    <!--
    .style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style2 {
    font-size: 14px;
    color: #000000;
    body {
    background-color: #FFFFFF;
    body,td,th {
    color: #CC3300;
    .style3 {font-size: 14px; font-weight: bold; }
    .style6 {font-size: 18px}
    .style7 {font-size: 16px}
    .style8 {font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style9 {font-size: 16px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style10 {color: #000000}
    -->
    </style>
    </head>
    <body>
    <div align="center"><img src="nav2.jpg" alt="nav bar" width="698" height="91" border="0" usemap="#Map2" />
      <map name="Map2" id="Map2">
      <area shape="rect" coords="560,9,684,38" href="accessories.html" />
    <area shape="rect" coords="456,8,548,38" href="contact.html" />
    <area shape="rect" coords="305,8,435,40" href="photog.html" />
    <area shape="rect" coords="187,9,283,39" href="services.html" />
    <area shape="rect" coords="81,10,167,39" href="aboutus.html" />
    <area shape="rect" coords="5,10,68,39" href="index.html" />
    </map>
      <map name="Map" id="Map">
        <area shape="rect" coords="9,9,69,39" href="index.html" />
        <area shape="rect" coords="83,11,165,39" href="aboutus.html" />
        <area shape="rect" coords="182,9,285,38" href="services.html" />
        <area shape="rect" coords="436,14,560,37" href="contact.html" />
        <area shape="rect" coords="563,14,682,38" href="accessories.html" />
      </map>
    </div>
    <p> </p>
    <form id="TheForm" name="TheForm" action="form2mail.php" method="post">
      <p align="center" class="style2">P<span class="style1">lease fill out form below for a &quot;free no obligation quote&quot; then click submit.</span></p>
      <p align="center" class="style3">(*Required Information)</p>
      <div align="center">
        <pre><strong><span class="style8">*Contact Name</span> </strong><input name="name" type="text" id="name" />
    <span class="style8"><strong>
    Business Name </strong></span><input name="bn" type="text" id="bn" />
    <span class="style8"><strong>*Phone Number <input type="text" name="first" size="3" onFocus="this.value='';"
        onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.second);" maxlength="3" value="###" /> - <input type="text" name="second" size="3" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.third);" maxlength="3" value="###" /> - <input type="text" name="third" size="4" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.fourth);" maxlength="4" value="####"/> </strong></span>
    <strong><span class="style1">*</span><span class="style8">Email Address</span> <input name="email" type="text" id="email" />     </strong> </pre>
        <label><span class="style9">*Re-enter to confirm</span>
        <input name="emx" type="text" id="emx" /></label><br /><br /><span class="style9">
    <label></label>
        </span>
        <p><span class="style9">*Best time to call </span>
          <select name="name1[]" multiple size="1" >
            <option>8am-9am</option>
            <option>9am-10am</option>
            <option>10am-11am</option>
            <option>11am-12pm</option>
            <option>12pm-1pm</option>
            <option>1pm-2pm</option>
            <option>2pm-3pm</option>
            <option>3pm-4pm</option>
            <option>4pm-5pm</option>
            <option>5pm-6pm</option>
            <option>6pm-7pm</option>
            <option>7pm-8pm</option>
          </select>
          <br />
          <br />
          <span class="style9">Type of Location</span>
          <select name="name2[]" multiple size="1" >
            <option>Residential</option>
            <option>Commercial</option>
          </select>
          <br />
          <br />
            <span class="style1"><br />
            <strong><br />
              <span class="style6">*Type of Services Requested:</span></strong><br />
            </span><strong><span class="style10">(check all that apply)</span><br />
                </strong><br />
                <span class="style7"><span class="style1"><strong>Janitorial cleaning</strong></span>
                <input type="checkbox" name="checkbox[]" value="checkbox" multiple/>
                <br />
                </span><strong><br />
                  <span class="style8">Mobile Auto Detailing</span>
                <input type="checkbox" name="checkbox2[]" value="checkbox" multiple/>
                <br />
                <br />
                  </strong><span class="style9">Moving/Hauling</span>
          <input type="checkbox" name="checkbox3[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Pressure washing</span>
          <input type="checkbox" name="checkbox4[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window washing</span>
          <input type="checkbox" name="checkbox5[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window Tinting</span>
          <input type="checkbox" name="checkbox6[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Boat cleaning</span>
          <input type="checkbox" name="checkbox7[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">RV cleaning</span>
          <input type="checkbox" name="checkbox8[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Motorcycle cleaning</span>
          <input type="checkbox" name="checkbox9[]" value="checkbox" multiple/>
          <br />
          <br />
          <br />
          <br />
          <input name="SB"  type="button" class="style9" value="Submit" onClick="sendOff();">
        </p>
      </div></label>
      <script language="JavaScript1.2">
    // (C) 2000 www.CodeLifter.com
    // http://www.codelifter.com
    // Free for all users, but leave in this  header
    var good;
    function checkEmailAddress(field) {
    // Note: The next expression must be all on one line...
    //       allow no spaces, linefeeds, or carriage returns!
    var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org) |(\..{2,2}))$)\b/gi);
    if (goodEmail){
       good = true
    } else {
       alert('Please enter a valid e-mail address.')
       field.focus()
       field.select()
       good = false
    function autoTab(startPoint,endPoint){
    if (startPoint.getAttribute&&startPoint.value.length==startPoint.getAttribute("max length"))
    endPoint.focus();
    function checkNumber(phoneNumber){
    var x=phoneNumber;
    var phoneNumber=/(^\d+$)|(^\d+\.\d+$)/
    if (phoneNumber.test(x))
    testResult=true
    else{
    alert("Please enter a valid number.")
    phoneNumber.focus();
    phoneNumber.value="";
    testResult=false
    return (testResult)
    function sendOff(){
       namecheck = document.TheForm.name.value   
       if (namecheck.length <1) {
          alert('Please enter your name.')
          return
       good = false
       checkEmailAddress(document.TheForm.email)
       if ((document.TheForm.email.value ==
            document.TheForm.emx.value)&&(good)){
          // This is where you put your action
          // if name and email addresses are good.
          // We show an alert box, here; but you can
          // use a window.location= 'http://address'
          // to call a subsequent html page,
          // or a Perl script, etc.
          window.location= 'form2mail.php';
       if ((document.TheForm.email.value !=
              document.TheForm.emx.value)&&(good)){
              alert('Both e-mail address entries must match.')
    </script>
    </form>
    <p> </p>
    </body>
    </html>
    and here is the form2mail.php:
    <?php
    # You can use this script to submit your forms or to receive orders by email.
    $MailToAddress = "[email protected]"; // your email address
    $redirectURL = "http://www.chucksmobile.com/thankyou.html"; // the URL of the thank you page.
    $MailSubject = "[Customer Contact Info]"; // the subject of the email
    $sendHTML = FALSE; //set to "false" to receive Plain TEXT e-mail
    $serverCheck = FALSE; // if, for some reason you can't send e-mails, set this to "false"
    # copyright 2006 Web4Future.com =================== READ THIS ===================================================
    # If you are asking for a name and an email address in your form, you can name the input fields "name" and "email".
    # If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.
    # To block an IP, simply add it to the blockip.txt text file.
    # CHMOD 777 the blockip.txt file (run "CHMOD 777 blockip.txt", without the double quotes)
    # This is needed because the script tries to block the IP that tried to hack it
    # If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name"
    # you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple>
    # you have to do the same with checkboxes
    Web4Future Easiest Form2Mail (GPL).
    Copyright (C) 1998-2006 Web4Future.com All Rights Reserved.
    http://www.Web4Future.com/
    This script was written by George L. & Calin S. from Web4Future.com
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ===================================================
    $w4fver =  "2.2";
    $ip = ($_SERVER['HTTP_X_FORWARDED_FOR'] == "" ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_X_FORWARDED_FOR']);
    //function blockIP
    function blockip($ip) {
    $handle = @fopen("blockip.txt", 'a');
    @fwrite($handle, $ip."\n");
    @fclose($handle);
    $w4fx = stristr(file_get_contents('blockip.txt'),getenv('REMOTE_ADDR'));
    if ($serverCheck) {
    if (preg_match ("/".str_replace("www.", "", $_SERVER["SERVER_NAME"])."/i", $_SERVER["HTTP_REFERER"])) { $w4fy = TRUE; } else { $w4fy = FALSE; }
    } else { $w4fy = TRUE; }
    if (($w4fy === TRUE) && ($w4fx === FALSE)) {
    $w4fMessage = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body><font face=3Dverdana size=3D2>";
    if (count($_GET) >0) {
    reset($_GET);
    while(list($key, $val) = each($_GET)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end if
    else {
    reset($_POST);
    while(list($key, $val) = each($_POST)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }   
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end else
    $w4fMessage .= "<font size=3D1><br><br>\n Sender IP: ".$ip."</font></font></body></html>";
        $w4f_what = array("/To:/i", "/Cc:/i", "/Bcc:/i","/Content-Type:/i","/\n/");
    $name = preg_replace($w4f_what, "", $name);
    $email = preg_replace($w4f_what, "", $email);
    if (!$email) {$email = $MailToAddress;}
    $mailHeader = "From: $name <$email>\r\n";
    $mailHeader .= "Reply-To: $name <$email>\r\n";
    $mailHeader .= "Message-ID: <". md5(rand()."".time()) ."@". ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\n";
    $mailHeader .= "MIME-Version: 1.0\r\n";
    if ($sendHTML) {
      $mailHeader .= "Content-Type: multipart/alternative;";  
      $mailHeader .= "  boundary=\"----=_NextPart_000_000E_01C5256B.0AEFE730\"\r\n";    
    $mailHeader .= "X-Priority: 3\r\n";
    $mailHeader .= "X-Mailer: PHP/" . phpversion()."\r\n";
    $mailHeader .= "X-MimeOLE: Produced By Web4Future Easiest Form2Mail $w4fver\r\n";
    if ($sendHTML) {
      $mailMessage = "This is a multi-part message in MIME format.\r\n\r\n";
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";
      $mailMessage .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";  
      $mailMessage .= "Content-Type: text/html;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= "$w4fMessage\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730--\r\n";  
    if ($sendHTML === FALSE) {
      $mailHeader .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader)) { echo "Error sending e-mail!";}
    else { header("Location: ".$redirectURL); }
    } else { echo "<center><font face=verdana size=3 color=red><b>ILLEGAL EXECUTION DETECTED!</b></font></center>";}
    ?>
    Thanks in advance,
    Glenn
    [Subject line edited by moderator to indicate nature of request]

    Using PHP to process an online form and send the input by email is very simple. The mail() function takes a minimum of three arguments, namely: the address the mail is being sent to, the subject line, and the body of the email as a single string. The reason some people use scripts like form2mail.php is because they don't have the knowledge or patience to validate the user input to make sure it's safe to send.
    Rather than attempt to trawl through your complex form looking for the problems, I would suggest starting with a couple of simple tests.
    First of all, create a PHP page called mailtest.php containing the following script:
    <?php
    $to = '[email protected]'; // use your own email address
    $subject = 'PHP mail test';
    $message = 'This is a test of the mail() function.';
    $sent = mail($to, $subject, $message);
    if ($sent) {
      echo 'Mail was sent';
    } else {
      echo 'Problem sending mail';
    ?>
    Save the script, upload it to your server, and load it into a browser. If you see "Mail is sent", you're in business. If not, it probably means that the hosting company insists on the fifth argument being supplied to mail(). This is your email address preceded by -f. Change the line of code that sends the mail to this:
    $sent = mail($to, $subject, $message, null, '[email protected]');
    Obviously, replace "[email protected]" with your own email address.
    If this results in the mail being sent successfully, you will need to adapt the code in form2mail.php to accept the fifth parameter. You need to change the following line, which is a few lines from the end of the script:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader))
    Change it to this:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader, '[email protected]'))
    Again, use your own email address instead of "[email protected]".
    Once you have determined whether you need the fifth argument, test form2mail.php with a very simple form like this:
    <form id="form1" name="form1" method="post" action="form2mail.php">
      <p>
        <label for="name">Name:</label>
        <input type="text" name="name" id="name" />
      </p>
      <p>
        <label for="email">Email:</label>
        <input type="text" name="email" id="email" />
      </p>
      <p>
        <label>
          <input type="checkbox" name="options[]" value="boat cleaning" id="options_0" />
          Boat cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="RV cleaning" id="options_1" />
          RV cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="motorcycle cleaning" id="options_2" />
          Motorcycle cleaning</label>
      </p>
      <p>
        <input type="submit" name="send" id="send" value="Submit" />
      </p>
    </form>
    If that works, you can start to make the form more complex and add back your JavaScript validation.

  • Question about printing and resolution

    Hello
    I am trying out a trial version of PE13 and am attempting to come to terms with printing and resolution.
    I have also read this informative tutorial here:
    How Image Resolution Affects Print Quality - Photoshop Tutorial
    This is the image I would like to print:
    In the tutorial referred to above, the author states that when printing, 300 resolution is best and not the 79.3 px/inch that I have. When I change that 79.3 to 300, the image of Marilyn becomes tiny, so my question is how can I have an image that would neatly fit onto A4 photo paper maybe with a 1" white border around it (meaning the image size would be 8" x 6") while retaining a 300 resolution?
    Am I going about this the right way, aren't I?
    Many thanks.
    Steve

    Steve,
    The most important thing about resolution is the dimension in pixels.
    Your original is 433 x  653 pixels. Just good enough to display on a normal laptop.
    With A4 format at 300 ppi, you'd need:
    21 / 2.54 * 300 = 2480 pixels wide
    29.7 / 2.54 * 300 = 3507 pixel high.
    Any image editor won't be able to add the missing resolution, but the solution is to let the editor guess the missing pixels by interpolation methods.
    You won't get more details than those present in the original file, but you'll get a smoother, non 'pixelated' image.
    In the Elements editor, you have to check the 'resample' checkbox to be able to keep the outpur size while increasing the ppi to 300.

  • Music Item Order

    Using iTunes 10.7 (21). I have selected several types of columns so as to see different information in conjunction with a listed item (e.g. composer, etc.). A small black triangle can be above any one of the columns, which, when clicked, causes the overall order of that column to change from, say, top to bottom to vice-versa. This can cause other column information to re-align itself.
    Two questions. Can the order or place of a single item in a Music list (not a Playlist list!) be dragged to a new place on that Music list, an order which does not involve changing the order of the whole list. If so, how? Can the small black triangle be removed altogether?
    Second, is there a 'View' option or column that will indicate that each item on the music list has such-and-such a numerical number on that overall music list? My reading of related posts suggests that a numerical column can (could?) be added at the left end of the column list, but I can't find it anywhere.

    Dear Greenbum      
    Apart from above suggestion you please check the items in the credit memo request are completly gone to VF01( credit memo).
    check&revert
    Thanks&Regards
    Raghu.k

  • Landscape print

    Hi,
    We have a requirement to print information in a table manner which requires us to do Landscape prints (as portrait will not hold the information with correct alignment)
    We are using default Arial font and just updated the "Orientation" to say "Lanscape" for all relevant sections for the print. We are able to generate the PDF correctly, also when I try generate a metacode file using BARR2VB utility (with printtype XER) it generates fine. But when I view it though Print Analyzer the PMODE still says "Portrait" and the Display at right hand side in the analyzer window also does not look right.
    Please suggest If I need any specific setup to get desired Landscape output ? 

    You should be able to use the F2CON8 (Courier 8 point landscape) font. Are you using one of the old base FXR files that used to contain this font (font ID 12008) or did you add it yourself to your FXR file? In the Metacode font properties, you should see FXCON8 as the 0 degrees font, F9CON8 as the 90 degrees font, F1CON8 as the 180 degrees font, and F2CON8 as the 270 degrees font.
    As far as loading fonts on the printer, it would depend on the printer and whether the printer is attached to a network or to a mainframe.
    If you have an older model Xerox printer or one that is attached to a mainframe, you may be able to use the XERDNLD utility. It can be used to convert Xerox fonts into a quasi - print stream that when "printed" will download the font onto the printer. You would need to use the same Xerox printer INI settings that you would normally use when producing metacode output to be printed.
    If you have a fairly modern printer, it may have a network attached server that runs the printer and holds the Xerox resource files including fonts. If so, then you should be able to use an FTP connection to load the fonts onto the server. You would need to check with Xerox for the location where the Xerox fonts are stored but it might be in a directory like
    /opt/XRXnps/resources/lcds/
    or
    /var/spool/XRXnps/resources/lcds/
    Make sure that the font filename (including the .FNT extension) is upper case and note that the directory names are mixed case.
    Xerox should be able to provide you with specific information about loading Xerox fonts onto your printer.

  • User-defined index

    Where I can find information/tutorial/"how-to" about how create/implement my own index in Oracle? Maybe there is somewhere step-by-step instruction. I read about OraGiST, Data Cartridges and Extensible Indexing.
    I want to compare my own R-tree variant with the oryginal one - It is possible to perform? What parameters should I compare?
    Kerad555

    Other than that, I don't know what you mean. You can read more about Extensible Indexing in the Data Cartridge Developer's Guide
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14289/dcifrmwrk.htm#sthref347

  • How to configure tdms advanced read

    Hi
    I am trying to read a tdms file using advanced TDMS VIs to get a faster reading speed but when I disable the system buffering then I get error -2544 which says that "the array sizes and file positions must be integer multiple of the disk sector size". My disk's sector size is 512 and I am using a buffer of 256 samples with I16 data type which is an integer multiple of the sector size. I have attached the code snippet.
    If I use the example VI "TDMS Advanced - Finite Asynchronously Read.vi" it works fine with the file created for the example VI but it doesn't work with my file which has data in I16 format. I am also attaching the example VI.
    What could be the reason? please help me out
    thanks!
    Mani
    Solved!
    Go to Solution.
    Attachments:
    TDMS Asynchronous Read.png ‏48 KB
    TDMS Advanced - Finite Asynchronously Read.vi ‏22 KB

    According to error -2544, either array sizes or file positions is not disk sector size aligned. In your case, since the error is thrown by "Set Next Read Position", probably the target file position is not disk sector size aligned. Is your TDMS file created by TDMS Standard API or Advanced API ? In the latter case, each TDMS head (which contains meta information) is 4K aligned thus easily to set to a sector size aligned position. If it's created by "TDMS File Write", the sample position you want to read from is probably not sector aligned, thus returns error -2544.

  • Struts 2 Client side validation getting skipped.

    I am doing a simple program using struts 2. Usually in struts2 bean class will be combined with action class unlike in struts 1.2. But for enhancing readability I made a seperate bean class and I reference it in my action class. But after seperating bean from action class Client side validation using xml is not happening. It is getting skipped. But server side validation inside execute() is happening. Will anyone please help me to find a solution to make client side validation run.
    here are the different files.
    1) JSP File - SEmail.jsp
    <%@ taglib prefix="s" uri="/struts-tags"%>
    <html>
    <s:head theme="ajax" />
    <title>SEmail </title>
    <body>
    <center><font color="blue" size="5" face="bold">
    <s:label     value="Secure Email - Non Registered User" /> </font></center>
    <br>
    <font color="red" size="3"> <s:label
         value="Want to contact us?."></s:label>
    </font>
    <center><s:form action="/Semail.action" method="POST"
         validate="true">
         <s:actionerror />
         <s:select label="Topic" name="user.topic" headerKey="-1" required="true"
              list="#{'Plan Coverage':'Plan Coverage','Sales':'Sales','Others':'Others'}">
         </s:select>
         <s:textarea name="user.message" label="Message" rows="4" cols="50"
              required="true" />
         <br>
         <s:label value="Contact Information" />
         <br>
         <table align="center" width="500">
              <tr align="left">
                   <td align="left"><s:select label="Title" name="user.title"
                        headerKey="-1" required="true"
                        list="#{'-- Select One --':'-- Select One --','Mr.':'Mr.','Ms.':'Ms.','Mrs.':'Mrs.'}">
                   </s:select></td>
              </tr>
              <tr align="left">
                   <td align="left"><s:textfield label="First Name"
                        name="user.firstname" size="20" maxlength="35" required="true" /></td>
              </tr>
              <tr align="left">
                   <td align="left"><s:textfield label="Family Name"
                        name="user.familyname" size="20" maxlength="35" required="true" /></td>
              </tr>
              <tr align="left">
                   <td align="left"><s:textfield label="Profession"
                        name="user.profession" size="20" maxlength="20" /></td>
              </tr>
              <tr align="left">
                   <td align="left"><s:textfield label="Address" name="user.address"
                        size="20" maxlength="100" /></td>
              </tr>
              <tr align="left">
                   <td align="left"><s:textfield label="Telephone Number"
                        name="user.telnumber" size="20" maxlength="20" /></td>
              </tr>
              <tr align="left">
                   <td align="left"><s:textfield label="P.O. Box" name="user.pobox"
                        size="20" maxlength="8" /></td>
              </tr>
              <tr align="left">
                   <td align="left"><s:textfield label="City"
                        name="user.emirate" size="20" maxlength="35" required="true" /></td>
              </tr align="left">
              <tr>
                   <td align="left"><s:textfield label="Region and Country"
                        name="user.country" size="20" maxlength="35" /></td>
              </tr>
              <tr align="left">
                   <td align="left"><s:textfield label="E-mail Address"
                        name="user.email" size="20" maxlength="70" required="true" /></td>
              </tr>
         </table>
         <br>
         <s:file name="user.uploadFile" label="Upload Document" />
         <br>
         <br>
         <s:submit value="Submit" align="center"></s:submit>
    </s:form></center>
    <font color="red" size="3"> <s:label
         value="All fields marked (*) are mandatory."></s:label>
    </body>
    </html>
    2) struts.xml
    <!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
    <struts>
         <package name="semail" extends="struts-default">
              <action name="Semail" class="semail.NonregUser">
                   <result name="input">/SEmail.jsp</result>
                   <result name="error">/SEmail.jsp</result>
                   <result>/SEmail.jsp</result>
              </action>          
         </package>     
    </struts>
    3) Bean Class - User.java
    package semail;
    public class User {
         private String topic;
         private String message;
         private String title;
         private String firstname;
         private String familyname;
         private String profession;
         private String address;
         private int telnumber;
         private String pobox;
         private String city;
         private String country;
         private String email;
         private String uploadFile;
         private String testing;
         public String getTopic() {
              return topic;
         public void setTopic(String topic) {
              this.topic = topic;
         public String getMessage() {
              return message;
         public void setMessage(String message) {
              this.message = message;
         public String getTitle() {
              return title;
         public void setTitle(String title) {
              this.title = title;
         public String getFirstname() {
              return firstname;
         public void setFirstname(String firstname) {
              this.firstname = firstname;
         public String getFamilyname() {
              return familyname;
         public void setFamilyname(String familyname) {
              this.familyname = familyname;
         public String getProfession() {
              return profession;
         public void setProfession(String profession) {
              this.profession = profession;
         public String getAddress() {
              return address;
         public void setAddress(String address) {
              this.address = address;
         public int getTelnumber() {
              return telnumber;
         public void setTelnumber(int telnumber) {
              this.telnumber = telnumber;
         public String getPobox() {
              return pobox;
         public void setPobox(String pobox) {
              this.pobox = pobox;
         public String getCity() {
              return city;
         public void setCity(String city) {
              this.city= city;
         public String getCountry() {
              return country;
         public void setCountry(String country) {
              this.country = country;
         public String getEmail() {
              return email;
         public void setEmail(String email) {
              this.email = email;
         public String getUploadFile() {
              return uploadFile;
         public void setUploadFile(String uploadFile) {
              this.uploadFile = uploadFile;
         public String getTesting() {
              return testing;
         public void setTesting(String testing) {
              this.testing = testing;
    This is my bean class. Instead of putting it with action class NonregUser.java , I have seperated it out for readability. And I am referencing it in the action class.
    4) Action Class - NonregUser.java
    package semail;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts2.interceptor.ServletRequestAware;
    import org.apache.struts2.interceptor.ServletResponseAware;
    import com.opensymphony.xwork2.ActionSupport;
    public class NonregUser extends ActionSupport implements ServletRequestAware,
              ServletResponseAware {
         private static final long serialVersionUID = 2451855813074437309L;
         HttpServletRequest request = null;
         HttpServletResponse response = null;
         private User user = null;
    /* I am referencing my bean class here instead of writing all the getters and setters here.*/
         public User getUser() {
              return user;
         public void setUser(User user) {
              this.user = user;
         public String execute() throws Exception {
              System.out.println("Validating login");
              if(user!=null){
                   System.out.println(user.getFirstname());
                   System.out.println(user.getEmail());
                   System.out.println(user.getTopic());
                   System.out.println(user.getTitle());
    // this server side validation is happening
                   if (user.getTitle().trim().equals("-- Select One --")) {
                        addActionError("Please select Title");
                        return ERROR;
                   } else {
                        return SUCCESS;
              }else{
                   return SUCCESS;
         public void setServletRequest(HttpServletRequest arg0) {
              System.out
                        .println("HttpServletRequest : " + NonregUser.this.getClass());
              request = arg0;
         public void setServletResponse(HttpServletResponse arg0) {
              System.out.println("HttpServletResponse : "
                        + NonregUser.this.getClass());
              response = arg0;
    This is my acation class. Here I am referencing my bean class User.java.
    5) xml validation file - NonregUser-validation.xml
    /*This client validatin is not working*/
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE validators PUBLIC
              "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
              "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
    <validators>
         <field name="topic">
              <field-validator type="requiredstring">
                   <param name="trim">true</param>
                   <message>Please select the Topic</message>
              </field-validator>
         </field>
         <field name="message">
              <field-validator type="requiredstring">
                   <param name="trim">true</param>
                   <message>Please enter Message</message>
              </field-validator>
              <field-validator type="stringlength">
                   <param name="maxLength">8000</param>
    <message>Message cannot contain more than 8000 characters</message>
              </field-validator>
         </field>
         <field name="title">
              <field-validator type="requiredstring">
                   <param name="trim">true</param>
                   <message>Please select the Title</message>
              </field-validator>
         </field>
         <field name="firstname">
              <field-validator type="requiredstring">
                   <param name="trim">true</param>
                   <message>Please enter First name</message>
              </field-validator>
              <field-validator type="stringlength">
                   <param name="maxLength">35</param>
    <message>First Name cannot contain more than 35 characters</message>
              </field-validator>
         </field>
         <field name="familyname">
              <field-validator type="requiredstring">
                   <param name="trim">true</param>
                   <message>Please enter Family name</message>
              </field-validator>
              <field-validator type="stringlength">
                   <param name="maxLength">35</param>
    <message>Family Name cannot contain more than 35 characters</message>
              </field-validator>
         </field>
         <field name="emirate">
              <field-validator type="requiredstring">
                   <param name="trim">true</param>
                   <message>Please enter Emirate/City</message>
              </field-validator>
         </field>
         <field name="email">
              <field-validator type="requiredstring">
                   <param name="trim">true</param>
                   <message>Please enter Email address</message>
              </field-validator>
              <field-validator type="email">               
                   <message>Please enter a valid Email address</message>
              </field-validator>
         </field>
    </validators>
    6) web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app>
         <filter>
         <filter-name>struts2</filter-name>
         <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
         </filter>
         <filter-mapping>
         <filter-name>struts2</filter-name>
         <url-pattern>/*</url-pattern>
         </filter-mapping>
         <welcome-file-list>          
              <welcome-file>/SEmail.jsp</welcome-file>
         </welcome-file-list>     
         <error-page>
    <error-code>404</error-code>
    <location>/pagenotfound.jsp</location>
    </error-page>
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/error.jsp</location>
    </error-page>
    </web-app>
    Edited by: L-J-K on Jul 22, 2008 5:22 AM

    I was trying to do it through creating a new validators.xml where I would redefine all struts built in validations and add de definition for my custom Validation (<validator name="checkUser" class="com.custom.CustomUserValidator"/>). Then I define the ActionClassName-action-validation.xml refering to my custom validator (checkUser). The com.custom.CustomUserValidator Class has to extend FieldValidatorSupport or ValidatorSupoort (depending on what kind of validation).
    Ok that's it, this is the theory, now the custom validator (checkUser) is executed before my action but I don't know how to do it so that if the validation fails i return to the same page showing the error message to the user without having to execute the target action. Does anyone know how to do this????

  • BoxLayout: components with different alignmentX

    Hi all. Java newbie here.. Here's what I'm trying to do: Use BoxLayout to "left-align" three components, and have one component at the bottom centered at its container/frame.
    Something like this:
    | ( One )        |
    | ( Two )        |
    | ( Three )      |
    |     ( Four )   |
    `----------------'I want the Fourth component to be exactly in the center of the frame, and the others to be left-aligned to the frame. Here's the code:
    JButton b1 = new JButton("One");
    JButton b2 = new JButton("Two");
    JButton b3 = new JButton("Three");
    JButton b4 = new JButton("Four");
    b1.setAlignmentX(Component.LEFT_ALIGNMENT);
    b2.setAlignmentX(Component.LEFT_ALIGNMENT);
    b3.setAlignmentX(Component.LEFT_ALIGNMENT);
    b4.setAlignmentX(Component.CENTER_ALIGNMENT);
    // Add them all to container with BoxLayout.PAGE_AXISAccording to Sun's tutorial, fixing alignment problems can be done by setAlignmentX. Obviously, I didn't understand their documentation because the buttons come out differently.
    Any fix for this? Thanks for the help in advance.
    Message was edited by:
    astigmatik

    Just a quick note :
    In the doco for it says :
    setAlignmentX - sets the vertical alignment
    setAlignmentY - sets the horizontal alignment
    I think you want Y and not X
    I do want X because Y refers to TOP/CENTER/BOTTOM_ALIGNMENT, and I'm looking for LEFT/RIGHT/CENTER_ALIGNMENT. It is in the "Fixing Alignment Problems" (http://java.sun.com/docs/books/tutorial/uiswing/layout/box.html#align).

  • Configure Numbered and Bulleted Styles in CSS

    I have searched and read a lot of postings re:Numbered and Bulleted styles/lists in the CSS setup and still have no clue how this was changed in the most recent build of RoboHelp HTML or the correct way to apply and get to work.
    In X5 of RoboHelp HTML, I had a CSS style sheet with 5 paragraph styles with bullets. I did not create a list - I simply bulleted the style. When I apply one of these styles to a paragraph it adds a bullet.
    I upgraded to RoboHelp HTML X8.0.2.208 and my bulleted styles are a total mess. The styles are still in the CSS, but when applied there is no bullet - it adds a number (then I have to click the Bullet icon button on the toolbar to apply a bullet). I have tried to find release notes or some documentation explaining the change and can find none. I have reviewed Peter Grange's site information about lists and multilevel lists, but see no reason why I cannot just apply a bullet directly on a style without using the list or multilevel list.
    I guess the issue may be my stupidity on the configuration and use of lists and multilevel lists. Is there any documentation from Adobe that outlines the change that occurred as of this most recent build? I am looking for an explanation of how a list corresponds to a style and how to get the style to work correctly. Ironically, the online help has been no help at all.
    As always, thanks to any feedback or direction.
    Michael F Weart

    OK - sorry have not posted my solution and it works for me...
    This is what I did to create a single level bulleted style using bulleted list:
    (1) Create a MultiLevel List Style called BulletedList
    I have only defined Level 1 of the MultiLevel List
    For that Level 1 - I DID NOT specify a Paragraph Style
    For that Level 1 - I selected List Style of DISC
    For that Level 1 - I defined the Edit Style as <x>
    Saved this MultiLevel List style with a name of BulletedList
    (2) Created a Paragraph Style called NBullet
    Font is set to Arial 10pt
    Spacing/After is set to 6pt
    From Indents line - clicked the AutoNumber icon button
    This opens the List for Autonumbering dialog and I set the following:
    Checked the box for Inherit Numbering Property from Multilevel List
    Selected BulletedList from the List Class drop down
    Selected List Level as "1"
    Clicked OK to apply and return to Paragraph Style Setup dialog
    On Paragraph Style Setup dialog clicked the Format drop down button
    Selected Paragraph formatting
    Defined Left Indentation of .5in
    Defined Special Indentation of Hanging .25in
    (3) Clicked OK to save the Paragraph style called NBullet
    When I look at the drop down list of styles within a topic, the style name appears as "1 NBullet". Don't let the "1" fool you - when I apply that style the "disc" bullet is applied and NOT a number (it just displays a number in the style name for some reason that escapes me).
    I now have my bulleted style back and it works fine.
    NOTE:  I do not like to reformat anything, so I set up an NBullet (Spacing After set to 6pt), NBulletSpace (Spacing After set to 12pt) and NBulletLast (Spacing After set to 18pt).
    I also set up "bullet continuation" paragraph styles so I can lead with a bulleted line of text and then follow with "additional information" paragraph that aligns to the text in the bulleted lead paragraph line - that paragraph style is NBulletContinue defined with NO autonumber setup and the Format/Paragraph set to Indent/Left .75in (which aligns the text to the text of the bulleted paragraph).
    I set up the same paradigm of NBulletContinue, NBulletContinueSpace and NBulletContinueLast.
    =============
    Aside from the Style name appearing in the Style list when working in a topic as "1 NBullet", "1 NBulletSpace" and "1 NBulletLast" the formatting works and looks great (and note - the style name when I go into CSS formatting does not have the leading "1").
    Also note, if I use the Increase Indent option when working in a topic on the NBullet styled paragraph, the Level 2 bullet list format is applied. I HAVE NEVER and WILL NEVER use the Increase or Decrease Indent functionality (either in Word or RoboHTML).
    All of my CSS styles match the naming convention used in my Word template - making it easier to push content back and forth between Word and RoboHTML.
    =============
    My approach may be non-standard and may not be within the spirit of this functionality, but it works for me and I get the formatting I need.
    One last note on the comment of the "sluggishness of the product" for x8 - I had the same problem and then I applied the two patches that were made available. The difference in the response time was VERY noticeable in a GOOD way. Search for and apply both fixes to RoboHTML x8 and you will see a pronounced difference. I also got my boss to approve ordering a new PC and now there is not sluggishness at all in the performance.
    Thanks to all --
    Michael F Weart

Maybe you are looking for

  • Photo edits not showing up in iPhoto when using PSE

    I have recently purchased Photoshop Elements 13 and have set iPhoto to use it as my editor. That is working, however, when I save the file, the new file does not show up in iPhoto. It does, however, show up in Organizer. Is there any way to fix this?

  • Reader Extensions vs. Adobe Acrobat 8

    As you are probably aware, one of the best features of Reader Extensions is to allow people with Adobe Reader to save their form data locally. Now, Adobe Acrobat 8 Professional has enabled the same feature. So my question is... what's the benefit of

  • Values of return code when using dba_audit_session

    Is there anywhere I can look up the possible values for return code when using dba_audit_session? I am generating a report over the data and have so far only been able to provide the returncode and whether the username exists (ie username or "other"

  • PDFs from iBooks

    How can I send to my MacBook my PDFs only stored in my iBooks apps's iPad ? All my personnal PDF are stored in my iPad and I've restored OS X in my Mac. I want to sent the PDF back to the Mac.

  • Duotones in Aperture

    Is there a possible way to do a true "duotone" image in Aperture? I know you can export a TIFF to Photoshop to do this, but I thought there might be a tricky way to back door this in Aperture. What I want to accomplish is to change the image to a mon