Centering a form

I'm new to java programming. My program is up and running, however when I load it, the form loads in the top left corner. I'm using a form with the contents in a FlowLayout. Any advice on how to get the form to load in the center of the screen.
Thanks,

I have done a helper class you can use if you want to.
import java.awt.Dimension;
import java.awt.Component;
* This class is a Util for awt Component and could be
* used to place them in center of an other.
* @author  <a href="mailto:[email protected]">Bo Regnlin</a>
* @version 1.0
public class ComponentUtil
           * Use this static method if you want to center
     * and set its propsion compared to the size of
     * the current users screen size.
     * Valid percent is between +-(0-100) minus is treated
     * as plus, bigger than 100 is always set to 100.
           *@param  component The component you want to center and set size on.
           *@param  percentOfScreen The percent of the current screensize you want
     *        the component to be.
  public static void centerComponentInWindow(Component component, int percentOfScreen)
    if(percentOfScreen < 0)
      centerComponentInWindow(component, - percentOfScreen);
      return;
    if(percentOfScreen > 100)
      centerComponentInWindow(component, 100);
      return;
    double percent = percentOfScreen / 100.d;
    Dimension dimension = component.getToolkit().getScreenSize();
    component.setSize((int)(dimension.getWidth()*percent),
                      (int)(dimension.getHeight()*percent));
    centerComponentInWindow(component);
           * Use this static method if you want to center a component in Window.
           *@param  component The component you want to center in window.
  public static void centerComponentInWindow(Component component)
    Dimension dimension = component.getToolkit().getScreenSize();
    component.setLocation((int)((dimension.getWidth()-component.getWidth())/2),
                          (int)((dimension.getHeight()-component.getHeight())/2));
    component.validate();
    component.repaint();
           * Use this static method if you want to center
     * a component over an other component.
           *@param  parent The component you want to use to place it on.
           *@param  toBeCentered The component you want to center.
  public static void centerComponentInComponent(Component parent, Component toBeCentered)
    toBeCentered.setLocation((int)parent.getX() + (int)((parent.getWidth()-toBeCentered.getWidth())/2),
                            (int)parent.getY() + (int)((parent.getHeight()-toBeCentered.getHeight())/2));
    toBeCentered.validate();
    toBeCentered.repaint();
}

Similar Messages

  • Centering HTML form on Android [subject edited by moderator]

    How do I get a form to 'centre' on android device.
    Website is http://www.parsonsreviewservices.co.uk.
    I am using CS6/CC.
    I assume its something to do with when I first set up the table.
    If so how do i correct this?
    And more importantlt....have I given enough information in my question?
    Cheers,
    Andy

    Sorrry, no android to test with, but how does it work if you specify a px width in your site-styles.css (line 275)
    #form-android form table {
        display: block;    margin-left: auto;
        margin-right: auto;
        width: 250px;

  • Centering a form in a div

    I'm trying to center the form's text boxes, but I can't crack this one. This is the css I have and it's just not working for me. I haven't quite mastered the art of positioning. Can anyone help? Also, take a look at the box shadow input. Do you see anything wrong because I don't see the effect working. Thank you in advance.
    In case you were wondering this is how I'm attempting to do it. I put the form in a div, but there's got to be a better way.

    Boom! Sorry. Feel free to criticize my work. this is my first for pay site. I need all the help I can get and well you've pretty much given me all the help. Thanks Nancy!

  • Problems with 40 height tables and form.

    Hi
    I have a a table about 40 in height.I have inserted a form and one textfield and button. When I upload the page the form seems to be at the bottom of the table instead of in the middle.
    I have centered the form but I am not sure how to center it horizotally.
    Hope you can help.

    You'll have to post a URL to your page.  It's impossible to offer meaningful help without seeing your page/code.
    In the meantime, you might want to check your page for possible code errors.
    HTML Validator - http://validator.w3.org 
    CSS Validator - http://jigsaw.w3.org/css-validator/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • VARKGIRL (or anuone else) Im sending up the BATSIGNAL!  freedback FORM help

    I signed up at www.freedback.com for a form paid for a non advertiser account.
    made my form (im on go daddy by the way) then in i web i did the following
    I used the "insert text" command typed the word SKYWALKER made my text box
    about 990X2400 >saved and published to go daddy> then i logged into my ftp at go daddy found the "Take Survey.html" page and copied that to my desktop
    then I oppened "text edit" searched for SKYWALKER >found that>copied the html from freedback.com and replaced SKYWALKER with the html from freedback> hit save (not save as) >then with yummy ftp open I drag the new "Take Survey.html" on top of old one it asks "are you sure you want to repace the Take Survey.html 11KB withe the new "Take Survey.html 19KB" i say "yes it uploads I go to page but nothing happens even after I refresh?
    Yesterday doing this worked fine except allot of the wording in the survey had "%options" muddled in the questions so the only change I made was to increase the size of my text box now nothing?
    Questions
    1) Do I inned to insert a SHAPE like the square box INSTEAD of just a "text box?
    2) if so what "opacity" setting do you reccomend?
    3) How can I determine the actual size of the form I get from Freedback?
    4) as long as "my" box is bigger how important are the exact dimentions?
    any help would be appreciated!
    Thanks everyone!
    Jim

    newmacguru is right. Your workflow should be like
    this...
    1. Design in iWeb
    2. Publish to Folder
    3. Edit the HTML files
    4. Confirm that everything is working in a browser
    5. Upload to GoDaddy
    In terms of your questions...You definitely should
    stick with using a textbox in iWeb. Remember,
    basically what you are doing with the textbox is
    reserving space on the page for your form. So you
    make the textbox exactly as big as you need it for
    your form. You can think of the textbox as a window
    through which your form will show (very loose
    analogy!). And then because you will need some way
    of finding the textbox amongst all the HTML code,
    that is why you type in the placeholder text
    "SKYWALKER".
    When you look in your page.html file, you will find
    the "SKYWALKER" placeholder text. If you look around
    it, it should look like this: >SKYWALKERAnd
    then you delete the SKYWALKER part letter by letter
    and the paste your FreedBack code in, so it should
    end up looking like this:
    freedbackcode. So the brackets and
    stuff should still enclose the entire code. This
    action is what is responsible for replacing the
    textbox that you specified in iWeb with your
    Freedback form.
    In terms of how big to make your textbox, it's a
    little bit difficult to tell from the actual
    Freedback code. There are no width and height
    settings. You'll have to play around with the
    dimensions of the textbox to find what looks just
    right to you. But think of the textbox this way...
    whatever code you replace the textbox with, it's
    going to start rendering in the upper left hand
    corner of the box. Does this make sense? So if you
    make the textbox too big for the form, your form will
    appear shifted into the upper left corner of the
    page....or off center. You can try to center the
    SKYWALKER placeholder text in the textbox
    (horizontally only) in iWeb and see if that centers
    the form horizontally. If you make the textbox
    too small, then your form may get cutoff
    inconveniently. Just play around with it...I'm sure
    you'll find a good size.
    As far as your "":NO":" strange character
    thing goes, this is most likely something happening
    at Freedback....out of your control. What you are
    seeing is the code for quotation marks that isn't
    being rendered properly. My suggestion would be to
    just go back into your Freedback form configuration
    pages and take out the quotation marks around the
    word NO and in other places.
    I hope this helps some. Let me know if you have any
    other questions.
    Dear NEW MAC & JAMES
    Do you guys sell "common sense" by the ounce or do I need to buy a whole pound?
    DUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUHHHHHHHHHH
    New Mac changing the "workflow" as you suggested allowed me to change my text box size see INSTANT results and saved about 90% of my time to "check" things out
    THANK YOU!
    James, James "my son" "my hero" what can I say? you took the time to elaberate on each point so I got a clear understanding ~ALSO~ you said this
    "As far as your "&quot:NO&quot:" strange character thing goes, this is most likely something happening at Freedback....out of your control. What you are seeing is the code for quotation marks that isn't being rendered properly. My suggestion would be to just go back into your Freedback form configuration pages and take out the quotation marks around the word NO and in other places."
    I went back and removed all the quotation marks and THAT FIXED IT!
    James now that I am "kinda" getting the hang of this Html stuff
    I have always liked that "mouse over" cool effect from "Putt Putt's Aspen vacation" you know where it changes pictures when you mouse over?
    is there a tutorial on how you did that?
    FINALLY thanks to BOTH of you (& Varkgirl for getting me into html) I have a fully functional Form page!
    My final question is who should I give the star to? (I feel guilty cuz they only allow one star)?
    THANKS AGAIN!
    Jim

  • Standrad reports for material consumption

    Hi ,
    I require input on following scenario.
    The raw material is consumed in  REM backflushing. For each work center a production version is created .
    In MCRO t/c i get the production version /material wise consumption of raw material.
    Three work centers will form a stage . If i want to check the material consumption for each stage , is there any standard report.
    If i define a work center hierarchy , will it help?
    Kindly advise
    Regards
    ShankarR

    Dear
    Try the following :
    1.MCRE: Consumption report and You can chek in MB51/ME2M
    2.Goto SAP Table - MVER consumption table in SE16 t.code.
    Refer all kind of reports here in useful wiki : http://wiki.sdn.sap.com/wiki/display/ERPLO/SAPStandardReports
    Regards
    JH

  • What is the default separateFrame in formsweb.cfg ?

    Hello,
    what is the default separateFrame,width & height in formsweb.cfg ?
    am using Forms [32 Bit] Version 10.1.2.0.2 (Production)
    i made changes 2 adjust the applete w/h 2 centered the form's window now i wana get back is it ..?
    # Forms applet parameter
    width=750
    # Forms applet parameter
    height=600
    # Forms applet parameter
    separateFrame=false
    separateFrame=falseSince i have 2 separateFrame=false but i remmbered 1 of them where true by deault which one the first or the second 1 in order...?
    Regards,
    Abdetu...

    Hi 815571
    Thanks for reply
    No 100% is not the default pls recheck, am quite sure...
    # (e.g. "http://myhost.mydomain.com/forms/frmservlet?form=myform&width=700")
    # or by overriding them in a specific, named configuration (see below)
    [default]
    # Forms applet parameter
    width= 750
    # Forms applet parameter
    height= 600
    # Forms applet parameter
    separateFrame=false
    # Example Named Configuration Section
    # Example 1: configuration to run forms in a separate browser window with
    # "generic" look and feel (include "config=sepwin" in the URL)
    # You may define your own specific, named configurations (sets of parameters)
    # by adding special sections as illustrated in the following examples.
    # Note that you need only specify the parameters you want to change.  The
    # default values (defined above) will be used for all other parameters.
    # Use of a specific configuration can be requested by including the text
    # "config=<your_config_name>" in the query string of the URL used to run
    # a form.  For example, to use the sepwin configuration, your could issue
    # a URL like "http://myhost.mydomain.com/forms/frmservlet?config=sepwin".
    [sepwin]
    separateFrame= True
    lookandfeel=Generic
    .....Regards,
    Abdetu...

  • Barcode to be centered alligned in Adobe forms

    Hi,
    I am working on Adobe form, I am using barcode 3 of 9 for material code, material code can be of variable length, can bar code be center alligned.
    Regards,
    Kimaya.

    This is an old post, but I have found a solution that may be useful for anyone searching in the future.  Sanoosh is correct that the datalength is only 1/2 of the solution--it is also required to adjust the width of the barcode object.  If you put it centered aligned in a flowed sub-form, you can add this FormCalc code in the form:ready event of the barcode object:
    var strLen = Len($.rawValue)
    var width = strLen * 0.25  //<---set according to the width that you want per character
    $.setAttribute(width, "w")
    $.ui.#barcode.dataLength = strLen
    Regards,
    Kurt

  • Centering Table withing a form

    I'm using a table to create my form input fields.  I'd like the table to be centered on the page rather than the default left justified.  The Format>Align>Center command does not work.  Any ideas on what I can do to center the table within a form?  Thanks.  Mark Reynolds

    The answer may depend on other code you have on the page, but presuming that your table can be 600px wide, try the following CSS -
    table {
         width:600px;
         margin:0 auto;
    Note that this will affect ALL tables on the page.  If you have more than just this one table, then add an ID to that table and to the selector, e.g.,
    table#form {
         width:600px;
         margin: 0 auto;
    <table id="form"...

  • Centeral alignment in flowing (L-R) form (hAlign?)

    Hello,
    I have a flowed subform (western text) containing some text and a text field which is expandable widthways. I would like the overall text (i.e. the entire content of the subform) to be centered in the page (the form is as wide as the page). I have managed to achieve this temporarily by setting all of its contents' hAlign property to "center" using javascript; but whatever event I set this on it seems to only take effect once the text field expands rather than when the form is first loaded. Also it reverts to left alignment when other parts of the form change layout.
    Am I using the wrong event as a trigger or is there a better way to do this?
    Many thanks in advance,
    Richard

    Hi Paul,
    Thanks for another quick reply. I've probably not been clear enough as I don't think that solves my problem. What I want is the fields (3 of them) centered in the subform. What I have is a title at the top of my form, of which the middle part is user-entered and the rest is read only. It reads something like "Project <user entered> Register", where the user enters the project name. The part they enter is expandable so the whole lot needs to be in a flowed subform. What I'm after is how to center the whole content (text, textfield, text) in the middle of the subform. (I actually have it as read-only textfield, textfield, read-only textfield as I've been playing with other properties that didn't work with plain text). Hope that's cleared things up somewhat... and I hope you can help!
    Thanks for your time,
    Richard

  • Centering an Image in a Form?

    Hi..
    I have a form with standard label / input controls but at the
    top of the
    form I want an image. I have my image tag like this:
    <mx:Image horizontalAlign="center"
    source="images/logoSeaSpraySoftware.gif"/>
    and it looks fine in the layout, but when I run my app one of
    my combo boxes
    expands because of the length of the entry but my images
    stays to the left.
    If I put my <mx:Image> inside an <mx:FormItem>
    tag then the image is moved
    over because of the width of the labels of the other form
    elements. I tried
    setting LABELWIDTH="0" but that didn't work.
    Any ideas?
    Rich

    You can best position things with CSS but since you are describing frames, you may be suited to making a table cell with center vertical alignment and center horizontal alignment.

  • Form text automatically centers in block; how to change?

    I've created an invoice form in InDesign for a client. I am trying to make this into a pdf form so that the client can just fill in the middle of the page. I've created a text field, but when I test this the type appears in the middle of the block instead of at the top of the block. I'm sure I'm missing something simple, but there doesn't seem to be an option to change this in the text field properties area. Help?

    That works! I could have sworn I already tried it, but I'm awash in tests. Thank you!

  • Can I build a interactive log-in form with Edge and Export Raw code to edit?

    Hey Everyone,
    I love adobe edge, but I'm still getting used to it. It's very easy to use, but I ran into an issue. I am redesigning a webpage for a client and need to build a log-in page and re-design the site. The site is a Dashboard that will be on an ipad and computer. What I need to do is take my design and design a template for them to use. They require HTML4 and up with some coding (not a fan of coding, I am strictly a designer, and before you guys critize about why I took the job when I don't know coding, it's a side project they are having me do for them while the main design project is being evaluated and I'm on contract so I don't have a choice, still would like to learn how to achieve what I need) but I still want to maintain the animation I have planned for the log in, very simple nothing special. Basically what I want is when you log in and click in the "text" box the background image will go from the clear image to the blur image.
    What I've done so far,
    I built the log-in page as a test to see if it would work (didn't take long since I saved as a PSD and imporated the files). I've attached an imagw to show a visual of what I am trying to do. The animation works fgreat for what i need, but now I want the box I click in to be writtable inside and work with the animation. I can't seem to figure out how to make the box's I created typable to type in for a "Username" and "Password" in other word interative. I used the boxes provided in edge because they are HTML boxes, but I want them to become text boxes to enter the Username and Password (It doesn't have to be perfect just enough for me to type in to pass off to the programmers). I know you can make edge interative with muse and what not and I was hoping to achieve what I want for them so I can export it and pass it off to the programmers. Is there a way to add this in Edge? If not, I know you can export to Dreamweaver and  when I import the file to Dreamweaver I just see a grey box with the file I created (.oma I think) from Edge but not the content unless I "Preview it" in a browser.
    So is there a way to build what I want in edge without resorting to dreamweaver? If so and there is code to input can you guys provide step by step on how to put it in the program? And is there a way to export the project so I can pass the RAW code to the programmers to do there thing? Lastly, is there a way to incorporate Jquery mobile to Edge? For the Dashboard can I build the same thing in Edge? Example what will be in there are things like charts, Calendars, Dates, Etc, Etc.  If I need to resort to building it in dreamweaver I can provide the code for you guys to alter to change for what I need. Like I said I'm not a big fan of coding and a little stranger to it. I just know the basics and the fact I haven't touched dreamweaver since CS4 makes it even harder to use. Some tools I like are gone such as AP divs. However i like the new elements you can inject into the program such as the Jquery stuff, but for the simplist things I want to do such as moving them left or right or centering them is a different story.
    Please Help!
    Thanks!

    if you search on the forum you can find useful posts about creating a form in edge
    Zaxist

  • Using Javascript and ScriptUI to create a form that brings in a symbol from library

    Hello everyone,
    I've been trying to pull together the right info to use javascript to create a form to bring in particularsymbols from the symbol library based on the variables taken from the form. I've taken bits and pieces from various sample scripts and tried to make this work, but my problem appears when I try to use conditionals.
    This is a limited version of what I want to do, but it is enough to get the point across.
    1. I want to select a script that has various dropdown boxes. I would like the first dropdown to give me 3 options: 10, 13, 18
    2. I would also like another drop down box that gives me three more options: single needle, double needle, and knife edge.
    3. I would then like it to have an "ok" button and "Cancel" button.
    4. From here when I click the ok button, a symbol is brought in from the library depending on what parameters were given to the form.
    ex. If I selected 10 in the first drop down and double needle in the second, I would like "SYMBOL A" to be pulled from the library and centered on the artboard.
    ex. If I selected 13 in the first drop down and double needle in the second, I would like "SYMBOL B" to be pulled from the library and centered on the artboard.
    I've gotten the UI to pop up and it works as planned as well as bringing in a symbol, my problem comes when I try to incorporate conditionals and functions.
    Here is my script. Please let me know what I'm doing wrong.
    var myDoc = app.activeDocument;
    var Pallette = new Window ("dialog", "Create a Shell");
    Pallette.add ("statictext", undefined, "Fill Opening in Inches:");
    Pallette.orientation = "row";
    var myDropdown =  Pallette.add ("dropdownlist", undefined, ["10", "13", "18"]);
    myDropdown.selection = 1;
    var myButtonGroup =  Pallette.add ("group");
    myButtonGroup.orientation = "column";
    var btnCreate = myButtonGroup.add ("button", undefined, "OK");
    MyFillSelection = myDropdown.selection
    btnCreate.onClick = function () {
        if ( MyFillSelection = "13") {
                   symbolRef = myDoc.symbols["SYMBOL A"];
            symbolItemRef1 = myDoc.symbolItems.add(symbolRef);
           redraw();
    var btnCancel = myButtonGroup.add ("button", undefined, "Cancel");
      Pallette.show ();
    If anyone has any input, it would be much appreciated.
    thanks,

    MyFillSelection = myDropdown.selection is outside the function, so it will always read "13", nothing is making the value change.
    move that line into your function and add the text property to it...MyFillSelection = myDropdown.selection.text;
    then do your if comparisons, that will do it.

  • Please help centering website!!

    Hello,
    After researching and getting lost with so many different responses, I figured I'd ask myself to get the response I needed. I use Dreamweaver CS 5.5 and I am having a ton of trouble figuring out how to make it so my website is centered on all monitors and devices. Here is the current website: http://www.kyledake.com/
    However, I am removing and adding a lot of stuff, so I thought now would be a good time to fix things. Here is the code of the homepage I am fixing up; after removing a lot fo the content. I apologize for posting all of it, I don't know specifially where to look. I use a lot of DIVs too, so if anyone has an alternate solution to get things on the site where I want them, please let me know:
    <!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=utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>Kyle Dake Official Website</title>
    <style type="text/css">
    #apDiv1 {
        position:absolute;
        left:247px;
        top:16px;
        width:1041px;
        height:1336px;
        z-index:1;
        background-color: #FFFFFF;
    #Menu {
        font-family: arial;
    </style>
    <style type="text/css">
    body,td,th {
        font-family: Arial, Helvetica, sans-serif;
    a:link {
        color: #8A0404;
        text-decoration: none;
    a:visited {
        text-decoration: none;
        color: #8A0404;
    a:hover {
        text-decoration: none;
        color: #000;
    a:active {
        text-decoration: none;
        color: #000000;
        text-align: center;
    #apDiv5 strong {
        font-size: 15px;
    #apDiv16 {
        position:absolute;
        left:436px;
        top:398px;
        width:633px;
        height:939px;
        z-index:16;
        background-image: url(background_content.png);
        text-align: justify;
        font-family: Arial, Helvetica, sans-serif;
    #apDiv17 {
        position:absolute;
        left:1290px;
        top:-5px;
        width:2392px;
        height:1350px;
        z-index:17;
        background-color: #000000;
        background-image: url(background.png);
    #apDiv18 {
        position:absolute;
        left:-5px;
        top:-5px;
        width:251px;
        height:1350px;
        z-index:18;
        background-color: #000000;
        background-image: url(Background_1.png);
    #apDiv19 {
        position:absolute;
        left:763px;
        top:597px;
        width:397px;
        height:166px;
        z-index:19;
    body {
        background-repeat: no-repeat;
        background-color: #000;
    </style>
    <style type="text/css">
    #apDiv4 {
        position:absolute;
        left:430px;
        top:125px;
        width:633px;
        height:257px;
        z-index:20;
    </style>
                    <!-- Start VideoLightBox.com HEAD section -->
            <link rel="stylesheet" href="dakevid_videolb/videolightbox.css" type="text/css" />
                <link rel="stylesheet" type="text/css" href="dakevid_videolb/overlay-minimal.css"/>
                <script src="dakevid_videolb/jquery.js" type="text/javascript"></script>
                <script src="dakevid_videolb/swfobject.js" type="text/javascript"></script>
            <!-- End VideoLightBox.com HEAD section -->
    <style type="text/css">
    </style>
    <link rel="stylesheet" type="text/css" href="banner_files/banner-rotator.css" />
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
    <script type="text/javascript" src="banner_files/jquery.banner-rotator.min.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
            $("#JQBannerRotator1").fdBannerRotator({keyboardEnabled:true,frameShadowEnabled:true,slid eWidth:615,slideHeight:250,slideScaleMode:"none",slideTransition:{type:"fade",duration:300 ,easing:"easeOutQuad"},slideDuration:5000,slideAutoplay:true,slidePauseOnHover:true,timerP osition:"top",timerVisible:true,captionAnimationSpeed:500,captionAnimationEasing:"easeOutQ uad",controlDirectionEnbled:false,controlDirectionHide:true,controlPlayEnabled:false,navig ationEnabled:true,navigationPositionTop:235,navigationPositionMargin:15,navigationAlign:"r ight",navigationThumbEnabled:false,navigationThumbServerScipt:"",navigationThumbSearch:".j pg",navigationThumbReplace:"_thumb.jpg",navigationThumbWidth:150,navigationThumbHeight:65, navigationThumbAnimationSpeed:200,navigationThumbAnimationEasing:"easeOutQuad"});
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    <style type="text/css">
    #apDiv24 {
        position:absolute;
        left:441px;
        top:406px;
        width:627px;
        height:91px;
        z-index:25;
        text-align: center;
    #apDiv16 p .twitter-timeline {
        text-align: center;
    #apDiv25 {
        position:absolute;
        left:435px;
        top:1294px;
        width:636px;
        height:29px;
        z-index:26;
        font-size: 13px;
        text-align: center;
        font-family: Arial, Helvetica, sans-serif;
    #apDiv26 {
        position:absolute;
        left:438px;
        top:1276px;
        width:633px;
        height:23px;
        z-index:27;
        font-size: 13px;
        text-align: center;
    #apDiv26 a {
        color: #000;
        font-weight: bold;
    #apDiv25 a {
        color: #000;
    #apDiv35 {
        position:absolute;
        left:437px;
        top:1250px;
        width:202px;
        height:39px;
        z-index:36;
    a {
        font-family: Arial, Helvetica, sans-serif;
    #apDiv7 {
        font-weight: normal;
        font-size: 30px;
    #apDiv8 {
        position:absolute;
        left:592px;
        top:516px;
        width:327px;
        height:334px;
        z-index:39;
        text-align: justify;
        font-family: Arial, Helvetica, sans-serif;
    #apDiv10 {
        position:absolute;
        left:599px;
        top:806px;
        width:107px;
        height:36px;
        z-index:41;
    #apDiv11 {
        position:absolute;
        left:806px;
        top:804px;
        width:95px;
        height:35px;
        z-index:42;
    </style>
    </head><body onload="MM_preloadImages('facebook-button-1hover.png','twitter_1hover.png')">
    <div id="apDiv1"><a href="index.html"><img src="Header.png" width="1041" height="92" vspace="15" border="0" /></a></div>
    <div id="apDiv16">
      <p> </p>
          <p> </p>
      <p> </p>
          <p> </p>
    </div>
    <div class="JQBannerRotator" id="apDiv4">
      <div id="JQBannerRotator1" class="JQBannerRotator">
        <div class="overlay"></div>
        <ul class="data">
          <li><a href="eiwahof.html"><img class="slide" src="banner_files/slides/eiwa.jpg" alt=" "/></a></li>
          <li><a href="grandprix.html"><img class="slide" src="banner_files/slides/grandprix.jpg" alt=" "/></a></li>
          <li><a href="USAvRussia.html"><img class="slide" src="banner_files/slides/RUSSIAMATCH.jpg" alt=" "/></a></li>
          <li><a href="dakejoinscornell.html"><img class="slide" src="banner_files/slides/coaching.jpg" alt=" "/></a></li>
        </ul>
      </div>
    </div>
    <div id="apDiv24"><img src="Header2.png" width="338" height="93" align="middle" /></div>
    <div id="apDiv25">All Rights Reserved <a href="http://x-celworldwide.com/index.html">X-Cel Worldwide 2013</a> | © Kyle Dake 2013 | This is the official Kyle Dake Website </div>
    <div id="apDiv26">Site Design <a href="http://www.riccioproductions.com/" target="_new">Riccio Productions LLC</a></div>
    <div id="apDiv35"><a href="http://www.ai-sport.com/" target="_new"><img src="ai_wrestling.png" width="205" height="43" border="0" /></a></div>
    <div id="apDiv8"> Welcome to KyleDake.com, the official home to wrestling's most   prominent young super-star, Kyle Dake. Here you will find everything   related to Kyle, from news, photos, videos, merchandise, and more.Browse the site, and check out the new videos, photos, and   merchandise. Also, stay updated on Kyle Dake wrestling events, news, and   developments from speaking occasions, award receptions, and all other   public appearances.  Be sure to follow Kyle on Twitter and Like the Official Fan Page on Facebook!  </div>
    <div id="apDiv10"><a href="https://www.facebook.com/KyleDakeOfficial" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image19','','facebook-button-1hover.png',1)"><img src="facebook-button-1.png" name="Image19" width="81" height="33" border="0" id="Image19" /></a></div>
    <div id="apDiv11"><a href="https://twitter.com/kyledake444" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image22','','twitter_1hover.png',1)"><img src="twitter_1.png" name="Image22" width="81" height="33" border="0" id="Image22" /></a></div></div>
    </body>
    </html>

    Sorry for the wait, had unexpected visitors.
    Have a look at the following. It will give you an idea of a layout without the nasty AP-divs.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    html {
        background: #000000; /* place background image here */
    body {
        width: 1041px;
        margin: auto; /* keeps the page centered */
        font-family: Arial, Helvetica, sans-serif;
    a {
        color: #8A0404;
        text-decoration: none;
    a:hover {
        color: #000;
    .header {
        height: 92px;
        background: url(Header.png);
    .header .nav {
        width: 450px;
        float: right;
        margin-top: 55px;
    .header .nav span {
        font-size: 12px;
        font-weight: bold;
        color: #8a0404;
        margin-left: 25px;
    .navbar {
        background: #FFFFFF;
        line-height: 35px;
        padding: 10px;
    .navbar .nav {
        width: 50%;
        float: left;
    .navbar .hashtag {
        text-align: right;
        font-size: 30px;
        color: #8a0404;
      font-weight: bold;
    .content {
        background: #FFFFFF;
    .aside {
        width: 395px;
        float: right;
        color: #8a0404;
        background: #FFFFFF;
    .section.main {
        background: #FFFFFF;
        width: 646px;
        float: left;
    .article {
        background: #FFFFFF url(background_content.png) repeat-y;
        min-height: 889px;
        padding: 15px;
    .centertxt {
        text-align: center;
    .righttxt {
        text-align: right;
        padding-right: 15px;
    img.center {
        display: block;
        margin: auto;
    </style>
    <link rel="stylesheet" href="dakevid_videolb/videolightbox.css" />
    <link rel="stylesheet" href="dakevid_videolb/overlay-minimal.css"/>
    <link rel="stylesheet" href="banner_files/banner-rotator.css" />
    <body>
    <div class="header">
      <div class="nav">
        <img src="twitter_birdhover.png" alt=""/>
        <img src="fbhov.png" alt=""/>
        <span>
        <a href="index.html">Home</a> | <a href="about.html">About</a> | <a href="http://www.xcelonlinestore.com/collections/kyle-dake-official-merchandise" target="_new">Merchandise</a> | <a href="media.html">Media </a>| <a href="sponsors.html">Sponsors </a> | <a href="contact.php">Contact</a><span>
      </div>
    </div>
    <div class="navbar">
        <div class="nav">
        <a href="index.html">Home</a> | <a href="news.html">News</a> |<a href="representation.html"> Representation</a> | <a href="events.html">Events</a>
      </div>
      <div class="hashtag">
          <span>#Dakecountry</span>
      </div>
    </div>
    <div class="content">
        <div class="section main">
        <div id="JQBannerRotator1" class="JQBannerRotator">
          <div class="overlay"></div>
          <ul class="data">
            <li><a href="eiwahof.html"><img class="slide" src="banner_files/slides/eiwa.jpg" alt=" "/></a></li>
            <li><a href="grandprix.html"><img class="slide" src="banner_files/slides/grandprix.jpg" alt=" "/></a></li>
            <li><a href="USAvRussia.html"><img class="slide" src="banner_files/slides/RUSSIAMATCH.jpg" alt=" "/></a></li>
            <li><a href="dakejoinscornell.html"><img class="slide" src="banner_files/slides/coaching.jpg" alt=" "/></a></li>
          </ul>
        </div>
        <div class="article">
            <h3>Article</h3>
          <p>It is the star to every wand'ring bark, oh, no, it is an ever fixed mark within his bending sickle's compass come. But bears it out even to the edge of doom. Love's not time's fool, though rosy lips and cheeks I never writ, nor no man ever loved. That looks on tempests and is never shaken; or bends with the remover to remove. Within his bending sickle's compass come; admit impediments; love is not love let me not to the marriage of true minds.</p>
          <p>But bears it out even to the edge of doom. If this be error and upon me proved, that looks on tempests and is never shaken. Admit impediments; love is not love or bends with the remover to remove.</p>
          <p>Which alters when it alteration finds, love's not time's fool, though rosy lips and cheeks whose worth's unknown, although his height be taken. If this be error and upon me proved, oh, no, it is an ever fixed mark let me not to the marriage of true minds. Or bends with the remover to remove. But bears it out even to the edge of doom. That looks on tempests and is never shaken; love's not time's fool, though rosy lips and cheeks whose worth's unknown, although his height be taken.</p>
        </div>
      </div>
      <div class="aside">
        <img src="gear.jpg" alt=""/>
        <img src="signed.png">
        <img src="dakevid_videolb/thumbnails/0.png" alt=""/>
        <div class="centertxt"><small>Kyle Dake Career Highlight - Official</small></div>
        <p class="righttxt">View Full Video Gallery</p>
        <img src="photostring.png" alt=""/>
        <p class="righttxt">View Full Video Gallery</p>
        <img src="cf2.png" alt="" class="center"/>
        <img src="mil_tools.png" alt="" class="center" style="margin-top: -60px;"/>
      </div>
    </div>
    </body>
    </html>
    As said, it is only the layout, I ran out of time. You will have to apply the finishing touches.

Maybe you are looking for

  • How to get the pre-population on modify account page?

    Hi, I am working on OIM 11g R2 PS1 and have a following requirement : User has to modify his existing email id through a request. User goes to modify account page, where all other fields from process form is hidden and only 'Email Address' field is d

  • How to use connec with java 6.0 ?

    I often use the function below to connect Database:      public Connection getConnection(){ try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn=DriverManager.getConnection("jdbc:odbc:EmployeeManagerDB","sa","sa"); System.out.println("Get connect

  • Graphing Counts & Using Counts as Variables

    Hey all My team was just set-up in OBIEE and our data model completed was built for us, now it's on us to create all the dashboards that we have currently in Crystal Reports. We only have minimal training documentation which I think is intended for n

  • Problem running "owsctl" (Oracle application server)

    Hello everybody, I installed Oracle Application Server v. 4.0.8.2 for Sparc Solaris, it seems that all worked right (no error messages on logs files), but to complete the installation is necessary run the command "owsctl start -nodemgr", it4s to star

  • Help !!!  - partition by  clause

    hi. i have the following table table : item_tracker date | item_code | begin_price end of each day, one record for each item is getting written to this table. now after the records are written, i want to calculate the change in begin prices the formu