Help positioning objects

In my index file, before I bring it into Edge,  I have all objects centered on the page this way:
#parallax-bg1 {
          z-index: 1;
          position: fixed;
          left: 58.5%;
          top: 0;
          width: 1130px;
          margin-left: -600px;
I would like to apply those same parameters to all the animations that I add to this file in Edge. Can that be done?
thanks,
Dan

Hello,
Hum, i don't know what you mean by "all the animations".
But, you can try:
sym.$("Stage").css({
                   "z-index": "1",
                   "position": "fixed",
                   "left": "58.5%",
                   "top": "0",
                   "width": "1130px",
                   "margin-left": "-600px"
or this:
sym.getSymbolElement().css({
                   "z-index": "1",
                   "position": "fixed",
                   "left": "58.5%",
                   "top": "0",
                   "width": "1130px",
                   "margin-left": "-600px"
You can open Stage/compositionReady or Stage/creationComplete to write these lines.

Similar Messages

  • Guidelines to help center objects and text in pages

    Where are the guidelines to help centre objects and text in the new pages?

    well YMMV.  https://discussions.apple.com/thread/5472111?tstart=0
    You have to do it manually.  Also can be in the accomplished in the right hand column Format>Select your image>Arrange

  • F help for objects

    Hi all,
          can any body tell to get F4 help for object attributes in table controls.
      actually i got f4 help for object using SWO_DIALOG_OBJTYPE_VAL_REQUEST.
    like this i want function module to get f4 help for attributes.

    Hello,
    Please check the roles related to the below authorization object.
    Authorization Object  
    S_WFAR_OBJ          
    Value  
    NV          
    Value  
    VBRK          
    Value  
    YP3INVOICE          
    Value  
    03          
    archiving Related role will give you access to View the billing document in PDF.
    Thank you
    Regards
    Bala

  • Many javax.swing.text.Position objects en masse

    Hi,
    I am wondering if anyone has much experience with the performance of javax.swing.text.Document implementations (using GapContent) and a large number of registered Position objects. I am trying to keep track of token boundaries for quick re-lexing, and the token count can be rocket high. I am just beginning to work with this API, and I guess I am looking for any insider information I may be missing.
    Thanks,
    galaxy

    Hi,
    I am wondering if anyone has much experience with the performance of javax.swing.text.Document implementations (using GapContent) and a large number of registered Position objects. I am trying to keep track of token boundaries for quick re-lexing, and the token count can be rocket high. I am just beginning to work with this API, and I guess I am looking for any insider information I may be missing.
    Thanks,
    galaxy

  • Positioning objects in a JTabbedPane

    Is the any way to specify the positioning of an object in a JTabbedPane?
    I am placing JPanels which contain JLabels and JTextFields into tabs
    of a JTabbedPane. All the panels are centered in the tab panes.
    This is annoying because one panel contains more labels and fields than
    the others. As result some of the data on the smaller panels isn't visible without scrolling.
    Is there some way to orient all panes NORTHWEST ? So when a user selects a tab the data is visible.
    It seems to me it would be done when adding the tabs (.addTab())
    but I can't figure out how.
    I tried grigBag.setConstraints(jtp, gridBagConstraints) where jtp
    is the tabbed pane. But it did not work.
    Is this just the way the JTabbedPane works ?
    TIA

    Looks to me like you are using FlowLayout - this is the default for JPanels. FlowLayout is a pain in the thingimybob. Try using a more suitable layout manager (e.g. BorderLayout).
    This applies both to to the container you're putting the JTabbedPane into, and the JPanels you're putting within the JTabbedPane.
    You can set the layout when you create a container, for example...
    JPanel panel = new JPanel(new BorderLayout() );
    JTabbedPane tabs = new JTabbedPane();
    panel.add(tabs, "Center");Hope this helps!
    Regards,
    Tim

  • Sapscript: position OBJECT GRAPHICS ID

    Hi all,
    I hope there is someone can help me...
    My problem is: i've used the istruction to insert an image in a Sapscript
    /: BITMAP 'LOGO_TOPAZIO_DATI1' OBJECT GRAPHICS ID BMAP TYPE BCOL
    now, how can i position the image in the centre of page?
    Thanks a lots,
    regards,
    Alex.

    Hi,
    To print image, you have to import a tif file from your local hardisk via the SAP abap program RSTXLDMC.
    In the sap script, add in the following script.
    : / INCLUDE ZLOGO OBJECT TEXT ID ST LANGUAGE EN.
    or
    Tested in 4.6x
    Go to transaction SE78.
    Follow the path given below (on the left windows box) :-
    SAPSCRIPT GRAPHICS --> STORED ON DOCUMENT SERVER --> GRAPHICS --> BMAP
    Enter the name of the graphics file on the right side and Go to the menu GRAPHIC --> IMPORT.
    Thanks,
    Neelima.

  • Positioning objects on a z radius evenly

    I'm useing papervision3d
    And I have 8 objects/spheres and will be adding more
    objects/spheres later
    I was wondering if anyone knows a formula to position any
    number of objects evenly on a z radius
    any help will be greatly appreciated, sincerely newwave
    here is what I have tried, as is only 4 objects/spheres are
    visible on stage, due to overlapping
    [code]
    var M1:MaterialObject3D = new FlatShadeMaterial(light,
    0xFF0000, 0xFFCC99);
    obj1 = new Sphere(M1, 50, 10, 10);
    obj1.x = -ORBITAL_RADIUS;
    obj2 = new Sphere(M1, 50, 10, 10);
    obj2.x = ORBITAL_RADIUS;
    obj3 = new Sphere(M1, 50, 10, 10);
    obj3.z = -ORBITAL_RADIUS;
    obj4 = new Sphere(M1, 50, 10, 10);
    obj4.z = ORBITAL_RADIUS;
    obj5 = new Sphere(M1, 50, 10, 10);
    obj5.z = -ORBITAL_RADIUS;
    obj6 = new Sphere(M1, 50, 10, 10);
    obj6.z = ORBITAL_RADIUS;
    obj7 = new Sphere(M1, 50, 10, 10);
    obj7.z = -ORBITAL_RADIUS;
    obj8 = new Sphere(M1, 50, 10, 10);
    obj8.z = ORBITAL_RADIUS;
    [/code]

    interesting! lol ;)
    well i'm not certain about the math on the z axis but it
    'should' be similar in calc to a normal circular calc - you might
    try reversing the cos, sin on each line. but the 'real' funny thing
    is the grouping, but part of the issue here is the assignment of
    the angle to 3 - the above formula divides degrees of rotation (eg.
    360) by the quantity of object positions so you really need to have
    that in there. but in hindsight you may want to increment the angle
    within the array because in this way it will result in rotations
    all the way through the circumference - so try this:
    private static const ORBITAL_RADIUS:Number = 300;
    private var angle:Number = 0;
    var M1:MaterialObject3D = new FlatShadeMaterial(light,
    0xFF0000, 0xFFCC99);
    for(var i=0; i<8; i++) {
    this['obj'+i] = new Sphere(M1, 50, 10, 10);
    this['obj'+i].x = ORBITAL_RADIUS * Math.cos(angle);
    this['obj'+i].z = ORBITAL_RADIUS * Math.sin(angle);
    angle += (360 / 8) * Math.PI / 180;
    that should do it ;)

  • Need help positioning flash photo gallery partially behind graphic.

    I have created the basic photoshop layout that I will now be assembling in Dreamweaver.  I wish to create a 4 or 5 image gallery using LightBox 2 that will rotate images within the header graphic.  Image attached. How would I accomplish this code wise.  Would I place the arched graphic within it's own <div> and float it above the div that holds the slideshow/gallery?  Any help would be appreciated.

    To the example that you have linked to above, make the following additions
      <div id="arch-container" style="position:relative;">
        <div id="arch-img" style="position:absolute; top: 170px;"><img src="images/arch-img.png" alt="arch_img" width="959" height="195" /></div>
      </div>
    I have used inline styles to make it easy on myself, but in reality you would put the style rules in the corresponding element selector in the CSS. Also, you would readjust the values to suit.
    Also, it is worth mentioning that placing a width and height on your image as you have done, should really be done using CSS.
    Added:
    As a side note, I have gotten into the habit of using classes for all of my style rules. I came to the conclusion that this is the way to go when trying to analyse a problem within my web page. ID's are unique per document and as such are used when manipulating the DOM using JavaScript. Now when I see an ID in one of my documents, I know that it is not a styling matter as in CSS, but a problem within my script.
    Take the above note as a thought, because there is a ongoing debate about this.
    Message was edited by: Altruistic Gramps

  • PCH: Value help for Object ID

    Hi Experts,
    I have a question regarding Logical Database PCH.
    We know LDB PCH is OM based and we have  default "Object ID field " and "Reporting period field " at the selection screen.
    I have kept "Reporting period" as "Key date" 31.12.2010. I  wanted to select an Org unit from the "Org. Structure Search" at the ""Object ID field " value help . But I can see the "Org. Structure"  corresponding to  "Today's date" all the time.
    For eg: Org unit 1111111 was delimited on 01.01.2011.  I wanted to se the Org. structure for 31.12.2010. So I put the key date as 31.12.2010. Since the above org. unit is delimited on 01.01.2011, it was expected to see in the Org. Structure at the "Object ID" value help . But unfortunately, it is not displayed, since the Org. Structure is shown based on Toda's date.
    If anybody comes across such a scenario, please provide your inputs .
    Thanks in advance,

    There is a search component that can be used for this purpose.
    This is one function out of several. I don't have the complete implementation at hand but this will give you the first idea.
    CALL METHOD cl_crm_uiu_prod_tools_search=>eh_onclosepopup_return_product     
       EXPORTING       
          ir_search_popup = search_popup     
       CHANGING       
          cr_context_node = lv_target_node       
          cv_index        = gv_tableindex. 

  • WebDynpro Methods help for objects in ABAP editor

    Hi,
    is there a possibility to see the methods that can be used by an specific object?
    For example which methods I can use with the object wd_this.
    Thank You!

    You will need to drill into the underlying class to view its methods.
    http://help.sap.com/saphelp_nw04s/helpdata/en/35/447741b0d6157de10000000a155106/frameset.htm
    Regards,
    Rich Heilman

  • So frustrated! Need help positioning image...

    Hi folks...
    I am learning CSS in fits and starts, and clearly I don't have a good enough grasp on it. I hope someone can help me.
    I created this page, and tried to place an image in the large "main content" area to the right of the slideshow. It didn't work, kept getting shifted elsewhere. So I specified it as the background image for that div instead... It looks fine in Firefox and Safari (I'm on a Mac), however, a colleague with Internet Explorer 7 on a PC says that it shows up way down at the bottom of the page after the slideshow
    I've looked at all the ways to insert the image but none of them work. I know I must be missing something very simple. Can anyone help?
    Here's the URL... http://greatdiamondrentals.com/index.html
    and the source 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=UTF-8" />
    <title>Great Diamond Rentals, Diamond Cove, Great Diamond Island, Maine</title>
    <script src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">
          google.load("jquery", "1.3.2");
        </script>
    <script type="text/javascript" src="js/jquery.cycle.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
        $('#slideshow').cycle();
    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_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    </script>
    <style type="text/css">
    <!--
    body  {
        text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
        color: #000000;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 100%;
        margin-top: 20;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
        padding: 0;
        background-image: url(images/gradient900.jpg);
        background-repeat: repeat-x;
    .twoColFixLtHdr #container {
        width: 940px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
        background: #FFFFFF;
        text-align: left; /* this overrides the text-align: center on the body element. */
        margin-top: 0;
        margin-right: auto;
        margin-bottom: 0;
        margin-left: auto;
        height: 660px;
        border-top-width: 1px;
        border-right-width: 1px;
        border-bottom-width: 1px;
        border-left-width: 1px;
        border-top-style: solid;
        border-right-style: solid;
        border-bottom-style: none;
        border-left-style: solid;
        border-top-color: #006;
        border-right-color: #006;
        border-bottom-color: #006;
        border-left-color: #006;
    .twoColFixLtHdr #header {
        padding-top: 0;
        padding-right: 0px;
        padding-bottom: 0;
        padding-left: 0px;
        width: 940px;
        height: 30px;
        background-color: #7092c3;
    .twoColFixLtHdr #header h1 {
        margin: 0;
    .twoColFixLtHdr #sidebar1 {
        float: left; /* since this element is floated, a width must be given */
        width: 380px;
        height: 600px;
        padding-top: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
    .twoColFixLtHdr #mainContent {
        height: 579px;
        width: 940px;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-right: 0px;
        padding-bottom: 0;
        padding-left: 0px;
        margin-left: 0px;
        background-image: url(images/GDRmaincontent.jpg);
        background-position: right top;
        background-repeat: no-repeat;
    .twoColFixLtHdr #footer {
        width: 940px;
        top: 630px;
        height: 30px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        font-variant: normal;
        text-transform: none;
        color: #FFF;
        background-color: #7092c3;
        text-align: center;
        border-top-width: 1px;
        border-right-width: 1px;
        border-bottom-width: 1px;
        border-left-width: 1px;
        border-right-style: solid;
        border-bottom-style: solid;
        border-top-color: #006;
        border-right-color: #006;
        border-bottom-color: #006;
        border-left-color: #006;
        padding-top: 5;
        padding-right: 5;
        padding-bottom: 8;
        padding-left: 5;
    .twoColFixLtHdr #footer p {
        margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
        padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: normal;
        color: #FFF;
        vertical-align: middle;
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        float: right;
        margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
        float: left;
        margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
        clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    a:link {
        text-decoration: none;
        color: #FFF;
    a:visited {
        text-decoration: none;
        color: #FFF;
    a:hover {
        text-decoration: underline;
        color: #600;
    a:active {
        text-decoration: none;
        color: #CCC;
    -->
    </style><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <meta name="Keywords" content="Maine, Vacation, rentals, Great Diamond Island, Diamond Cove, vacation homes, Island, Casco Bay, Portland, Maine Coast, Atlantic Ocean, Oceanside, seaside, Family, New England, lobster, beach, beaches, islands, rental, hotel, inn, bed and breakfast, holiday, ferry, fort, historic" />
    <meta name="Description" content="Vacation on a Maine island! Beautiful historic homes available for rent at Diamond Cove on Great Diamond Island in Casco Bay near Portland, Maine." />
    </head>
    <body class="twoColFixLtHdr" onload="MM_preloadImages('images/visited_homes.jpg','images/visited_about.jpg','images/vi sited_amenities.jpg','images/visited_map.jpg','images/visited_faq.jpg','images/visited_con tsact.jpg')">
    <div id="container">
      <div id="header">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><a href="http://greatdiamondrentals.com/view_our_homes.htm" target="_top" onclick="MM_nbGroup('down','group1','viewhomes','images/visited_homes.jpg',1)" onmouseover="MM_nbGroup('over','viewhomes','images/visited_homes.jpg','images/visited_hom es.jpg',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_viewourhomes.jpg" alt="View Our Homes" name="viewhomes" width="186" height="30" border="0" id="viewhomes" onload="" /></a></td>
            <td><a href="about_the_island_2010.html" target="_top" onclick="MM_nbGroup('down','group1','about','images/visited_about.jpg',1)" onmouseover="MM_nbGroup('over','about','images/visited_about.jpg','images/visited_about.j pg',1)" onmouseout="MM_nbGroup('out')"><img src="images/nav_about.jpg" alt="images/visited_about.jpg" name="about" width="192" height="30" border="0" id="about" onload="" /></a></td>
            <td><a href="amenities.htm" target="_top" onClick="MM_nbGroup('down','group1','amenities','images/visited_amenities.jpg',1)" onMouseOver="MM_nbGroup('over','amenities','images/visited_amenities.jpg','images/visited _amenities.jpg',1)" onMouseOut="MM_nbGroup('out')"><img name="amenities" src="images/nav_amenities.jpg" border="0" alt="amenities and activities" onLoad="" /></a></td>
            <td><a href="map_2010.html" target="_top" onClick="MM_nbGroup('down','group1','map','images/visited_map.jpg',1)" onMouseOver="MM_nbGroup('over','map','images/visited_map.jpg','images/visited_map.jpg',1) " onMouseOut="MM_nbGroup('out')"><img name="map" src="images/nav_map.jpg" border="0" alt="island map" onLoad="" /></a></td>
            <td><a href="FAQ_2010.html" target="_top" onClick="MM_nbGroup('down','group1','FAQs','images/visited_faq.jpg',1)" onMouseOver="MM_nbGroup('over','FAQs','images/visited_faq.jpg','images/visited_faq.jpg',1 )" onMouseOut="MM_nbGroup('out')"><img name="FAQs" src="images/nav_faq.jpg" border="0" alt="FAQs" onLoad="" /></a></td>
            <td><a href="contact2009.html" target="_top" onClick="MM_nbGroup('down','group1','contact','images/visited_contsact.jpg',1)" onMouseOver="MM_nbGroup('over','contact','images/visited_contsact.jpg','images/visited_co ntsact.jpg',1)" onMouseOut="MM_nbGroup('out')"><img name="contact" src="images/nav_contact.jpg" border="0" alt="contact us" onLoad="" /></a></td>
          </tr>
        </table>
        <h1> </h1>
      <!-- end #header --></div>
      <div id="sidebar1">
          <div id="slideshow">
    <img src="/images/slide1.jpg" />
    <img src="/images/slide2.jpg" />
    <img src="/images/slide3.jpg" />
    <img src="/images/slide4.jpg" />
    <img src="/images/slide5.jpg" />
    <img src="/images/slide6.jpg" />
    <img src="/images/slide7.jpg" />
    <img src="/images/slide8.jpg" />
    <img src="/images/slide9.jpg" />
    <img src="/images/slide10.jpg" />
    </div>
      <!-- end #sidebar1 --></div>
      <div id="mainContent">
        <h1> </h1>
      <!-- end #mainContent --></div>
        <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
        <div id="footer">
          <p>Great Diamond Rentals, c/o Phoenix Management, P.O. Box 759, Saco, Maine 04072 - (207) 766-3005 - fax (207) 571-3066 -<a href="mailto: [email protected]"> [email protected]</a></p>
          <!-- end #footer -->
    </div>
        <br class="clearfloat" />
      <!-- end #container -->
    </div>
    </body>
    </html>

    staceyetc wrote:
    Hi folks...
    I am learning CSS in fits and starts, and clearly I don't have a good enough grasp on it. I hope someone can help me.
    I created this page, and tried to place an image in the large "main content" area to the right of the slideshow. It didn't work, kept getting shifted elsewhere. So I specified it as the background image for that div instead... It looks fine in Firefox and Safari (I'm on a Mac), however, a colleague with Internet Explorer 7 on a PC says that it shows up way down at the bottom of the page after the slideshow
    I've looked at all the ways to insert the image but none of them work. I know I must be missing something very simple. Can anyone help?
    Here's the URL... http://greatdiamondrentals.com/index.html
    The width of your #mainConent <div> is too wide hence in IE it is displaced to beneath the side bar.
    Change it to 560px wide and also add float: left; as shown below:
    .twoColFixLtHdr #mainContent {
        height: 579px;
        width: 560px;
        float: left;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-right: 0px;
        padding-bottom: 0;
        padding-left: 0px;
        margin-left: 0px;
        background-image: url(images/GDRmaincontent.jpg);
        background-position: right top;
        background-repeat: no-repeat;
      background-color:#609;

  • Need Help converting objects in a TreeMap to String

    This app counts the number of times a word occurs in a document. I used a HashMap to store the key and value. The I sorted them using TreeMap. Now I need to return the key (String) and value (Integer Object) so they may be print like this -- 'key: value'.
    Example:
    that: 3
    This mean the word 'that' appeared 3 times in the document. Below is my toString() method. TreeMap sorts everything for me but I cant return 'map' because it is not a String. So I iterated through each key and value in the map. But now I dont know how to put all the iterations into 1 String value. I would greatly appreciate any help. Code below.
    Thanks in advance.
    public String toString() {
    Object key = null;
    Object value = null;
    map = new TreeMap(map);
    Set getKeys = map.keySet();
    Iterator iterKeys = getKeys.iterator();
    while (iterKeys.hasNext()) {
    key = (String)iterKeys.next();
    value = map.get(key))
    return; // i need to return a String here
    } // end toString()
    } // end class

    I dont remember posting to the "new Java forum", but I might have. My browser locked up on me so I am not sure what happened. If I did please excuse my double post.
    Are you familar with a way to solve my problem?

  • Positioning Objects on the Page.

    Hi, Expert:
    How can I position two objects on the page relatively? Say, I have two data tables, or one data table and after the table, some other object (button?, etc). B/c I don't know how many rows will return from the database, if I placed two tables too close, the first table will overlay the second one below. Is there a way to place them relatively so the second one will be always at the end of the first one?
    Thanks
    Jimmy

    Yes, and it's pretty easy :)
    Drag and drop a GroupPanel component to the page and put both tables into it.
    Or you can try changing the layout of the page to Flow Layout, but I use the GroupPanel.

  • Help - draw objects doesn't appear on JFrame

    i got this code from a book...
    import javax.swing.*;
    import java.awt.*;
    class Ch5SampleGraphics {
    public static void main( String[] args ) {
    JFrame win;
    Container contentPane;
    Graphics g;
    win = new JFrame("My First Rectangle");
    win.setSize(300, 200);
    win.setLocation(100,100);
    win.setVisible(true);
    contentPane = win.getContentPane();
    g = contentPane.getGraphics();
    g.drawRect(50,50,100,30);
    the problem is when i run the app, the frame doesn't always show the rect drawn. sometimes it shows it, but usualy not. if it does show the rect, once i click on minimize, then reopen it from the taskbar, the rect will disappear again and will never show up.
    can anyone help me? i've been searching for answers but to no avail. thanks 4 reading, hope someone will offer some help.

    an intoduction to oop with java
    Jesus wept. The code's about as un-object-oriented as you could possibly make it.
    Looking at his sample chapter on the book's web page all I see is main() methods with linear code in and just simple number crunching with primitive types. No objects to speak of at all.
    I'm sticking with my "throw the book away" advice :o)

  • (Org Model) Obtain Sales org's object id from position object id.

    Hi All,
    In the org model, I have the object id of a position and i want to find the object id of the sales org to which this position is assigned.
    Is there any FM that does this..?
    Thanks in Advance,
    Raviraj

    Hi Gun,
    When i tried tu check out this FM, COM_OM_ORGUNITS_OF_MANAGER, it says "NOTHING_FOUND"
    the params i passed are :
    PLVAR                         
    MGR_OTYPE     O
    MGR_OBJID     50001049   => position id of the user
    SELDATE       02/28/2006
    NO_DIALOG     X
    SEL_MULTIPLE  X
    am i missing something ?
    The hierarchy is :
    SOME_SALES_ORG
            |
            |-- ASSIGNED_PERSON
    I have the ID of this person and want the ID of the sales org
    regards,
    raviraj
    Message was edited by: Raviraj Khare

Maybe you are looking for

  • Creative Cloud : Flash did not install but Application Manager says the program is "Up to Date"

    I tried to instal Flash via the Application Manager the other day, my laptop went to sleep during install and when I woke it back up again the installation had frozen. I closed the manager and rebooted my laptop. The application manager now says that

  • How to Trigger Mail

    Hi! All       How to Trigger a Mail to a Vendor when the Stock level reached the Minimum Stock Level.      I have assigned the mail Id for a particular vendor in Vendor master. and assigned the Stock level in Material Master. what are the details nee

  • Get parent Account Details

    I want to create a new field on the account object. This new field should be automatically populated based on the parent account I choose. This functionality is similar to a pick map functionality in Siebel Enterprise. I understand that there is a fu

  • How to stretch video to equal audio

    Pics made into video is maybe half the length of audio how can I make the vid the same length. Thanks bill

  • Various sites in use for long time now say certificate expired/not safe including this one

    in trying to access many sites, a warning box comes up saying sites certificate has expired, some as long ago as 2007. This includes gmail, att and others including your own site when I sign on. I have to go thru the process of authorizing an excepti