Need help embedding mailchimp subscription code into dreamweaver.

so I created my page in edge animate, and then I brought it over to adobe dreamweaver, and I dont know where or how to place my embeded mailchimp code? 
<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/slim-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
          #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif;  width:360px;}
          /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
             We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="http://kandied.us3.list-manage.com/subscribe/post?u=4525b320bd81872705a48ea05&id=4743a970b 1" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
          <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
    <div style="position: absolute; left: -5000px;"><input type="text" name="b_4525b320bd81872705a48ea05_4743a970b1" value=""></div>
          <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</form>
</div>
<!--End mc_embed_signup-->
I keep trying to add it to it, but I either get noting or just the subscription box. does this happen due to my edge animate project?

Ben Thank you so much for your reply! It helped me read the code and made me understand it better. I decided to make my own subscription box by making a symbol "Subscription" and inside this i created two more symbols called "Textbox" and "Submittbutton". I tried putting in part of the code from above under the div id, but it kept creating the whole text box behind the symbols in dreamweaver. How would you suggest I embed the code from above into my created submission box below?
         <div id="Stage_Center2_Subscription">
                <div id="Stage_Center2_Subscription_subscribe"></div>
                <div id="Stage_Center2_Subscription_Submittbutton">
                    <div id="Stage_Center2_Subscription_Submittbutton_Submitbutton">
                        <div id="Stage_Center2_Subscription_Submittbutton_Submitbutton_RoundRect2"></div>
                    </div>
                    <div id="Stage_Center2_Subscription_Submittbutton_text">
                        <div id="Stage_Center2_Subscription_Submittbutton_text_Text">Join</div>
                    </div>
                </div>
                <div id="Stage_Center2_Subscription_Textbox">
                    <div id="Stage_Center2_Subscription_Textbox_textbox">
                        <div id="Stage_Center2_Subscription_Textbox_textbox_RoundRect"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
Thank you for taking the time to look at my question! I really appreciate it!
Kyle

Similar Messages

  • Need help embedding photo gallery swf into main swf...

    So I am attempting to create a website in flash and have the
    main swf created for that. However, I've also created a photo
    gallery in a separate swf which I want to embed into one of the
    scenes in the main swf. I tried importing directly to stage, but
    quickly realized that the timeline from the photo swf would not get
    carried over. Basically, I know that it has to be accomplished
    using AS, but don't know what that script would be. Any help would
    be appreciated!

    OK, well, that wasn't really a tutorial as much as it was
    just a huge section of code I couldn't make sense of. Anyways,
    instead of loading the gallery externally now I decided to just
    make it in the actual main swf. So, basically, in the section of
    the main swf reserved for the gallery I created an empty movie
    clip, went inside the clip, created layers for script, thumbs and
    photos. The photos themselves were in a movieclip of their own.
    Each photo has a small fade in accomplished by staggering the
    keyframes for each photo with a stop(); action on the last frame of
    each photo where it comes to full opacity. The thumbnails are back
    in the main movieclip where each button has code telling it to go
    to the beginning of each photos transition and play. It is supposed
    to play until it hits that stop action, but it won't play at all.
    Suggestions?

  • Need help converting this html code into code that will work as a flash button

    I have some html code that is for a button in html that when
    pressed sends you to a certain url but also somehow adds an 'id
    value' and a 'website value'.
    How can I convert this code and or put it into a flash
    button?
    Disregard the gif info...that's just for the html graphic
    that goes for the button.
    [HTML]<form
    action="https://secure.verotel.com/cgi-bin/vtjp.pl"
    method="post">
    <input type=hidden name=verotel_id
    value="9804000000840231">
    <input type=hidden name=verotel_website value="55461">
    <center>
    <input type="image" src="
    http://buttons.verotel.com/join/button_00010155461.gif"
    alt="Signup NOW!">
    <img src="
    http://buttons.verotel.com/signup/tbutton_55461.gif"
    border="0" width="1" height="1" alt="">
    </center>
    </form>[/HTML]

    What you want to do might look something like this:

  • Need help with a activation code for Adobe Acrobat X Standard for my PC,, Don't have older version serial numbers,  threw programs away,  only have Adobe Acrobat X Standard,  need a code to unlock program?

    Need help with a activation code for Adobe Acrobat X Standard for my PC, Don't have older Version of Adobe Acrobat 9, 8 or 7. 

    You don't need to install the older version, you only need the serial number from your original purchase. If you don't have them to hand, did you register? If so, they should be in your Adobe account. If not you really need to contact Adobe, though it isn't clear they will be able to do anything without some proof of purchase etc.

  • I embedded some HTML code into adobe Muse but not displaying when the pages are Exporting to HTML

    I embedded some HTML code into adobe Muse and when I published the remote site on business catalyst the (Add This widget) HTML code shows up but when I exported the site to HTML pages and view the index page in the browser (Safari, Chrome, Firefox) the (Add this widget) HTML code wouldn't display on any of the pages. I've used this code before on other Muse sites not sure what could have happened. Thnx!!!

    Hi,
    Please take a look at this post for a similar discussion : Re: When i export my muse website my youtube video links stop working. Why is this?
    Regards,
    Aish

  • I need help getting new authorization codes for digital copies

    I need help getting new authorization codes for digital copies of movies. Can someone help me out?

    There's a lot of results in Google when you search for this but unfortunately refreshing the page doesn't seem to generate a different code anymore. Mine also says already redeemed

  • Help in translating JAVA code into CF

    Hi all!  I'm at the end of integrating an in-house calendar with Google calendars and all is working, however, I am stumped as to how implement callback functions.  Here's what I'm trying to do as outlined on http://code.google.com/p/google-api-java-client/source/browse/Batch.wiki?repo=wiki
    What I need to do is this section right here:
    JsonBatchCallback<Calendar> callback = new JsonBatchCallback<Calendar>() {
      public void onSuccess(Calendar calendar, HttpHeaders responseHeaders) {
        printCalendar(calendar);
        addedCalendarsUsingBatch.add(calendar);
      public void onFailure(GoogleJsonError e, HttpHeaders responseHeaders) {
        System.out.println("Error Message: " + e.getMessage());
    And then later pass it to:
    client.calendars().insert(entry1).queue(batch, callback);
    I believe I can pass one function by passing just the name of the function, but BatchCallback has two functions.  Is this impossible to do in CF?
    Thanks,
    Ross.

    1. In the future, please use a meaningful subject line, like "loop not performing last iteration." Just saying "Help in my java code" is useless. We know you need help with your Java code, else you wouldn't be posting here.
    2. Repost your code without those annoying superfluous asterisks, and with proper indentation in the section that they are currently polluting. It's too hard to read as-is.

  • Need help to redeem contact code for OS X 7

    Need help to redeem contact code for OS X 7

    Hello NOREDEEM,
    Thanks for using Apple Support Communities.
    If you have the purchase code for OS X 10.7 Lion, then you can follow the directions below to redeem it on your Mac.
    Mac App Store: Redeem gift cards and download codes
    Take care,
    Alex H.

  • I need help I scratched the code off my itunes card

    I need help I scratched the code off my itunes card

    Click here and ask the iTunes Store staff for assistance. Supply them with as much of the code as you can.
    (102006)

  • Flash code into Dreamweaver - Help please!

    I am using GoDaddy for my hosting account. It is on a linux
    server. I have created an HTML page and loaded it up to the
    internet using Dreamweaver, like I normally do. the page in
    question is
    http://www.desmoinesbilliards.com/gallery.html
    When I use dreamweaver to insert the flash movie, it
    transfers it as normal, but it will not show up on the website. The
    flash movie works fine on the server, just cannot be seen on the
    site. I called Go Daddy who said that there is a problem with the
    way the code is calling up the Flash movie. I have not altered it
    at all from the way that Dream weaver inserts it. The flash movie
    is located in a folder on the site called 'flash'. The code is
    below. I can't figure it out, any help would be appreciated. The
    code that dreamweaver inserts is below. By the way, I use
    Professional 8 version of both products.

    Upload the scripts folder that DW places in your local site
    when you insert
    Flash on a page.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "JesseDSM" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am using GoDaddy for my hosting account. It is on a
    linux server. I
    >have
    > created an HTML page and loaded it up to the internet
    using Dreamweaver,
    > like I
    > normally do. the page in question is
    >
    http://www.desmoinesbilliards.com/gallery.html
    When I use dreamweaver to
    > insert
    > the flash movie, it transfers it as normal, but it will
    not show up on the
    > website. The flash movie works fine on the server, just
    cannot be seen on
    > the
    > site. I called Go Daddy who said that there is a problem
    with the way the
    > code
    > is calling up the Flash movie. I have not altered it at
    all from the way
    > that
    > Dream weaver inserts it. The flash movie is located in a
    folder on the
    > site
    > called 'flash'. The code is below. I can't figure it
    out, any help would
    > be
    > appreciated. The code that dreamweaver inserts is below.
    By the way, I
    > use
    > Professional 8 version of both products. <script
    type='text/javascript'>
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=7,0,19,0','width','730','height','80','src','flash/leaguebanner','qualit
    > y','high','pluginspage','
    http://www.macromedia.com/go/getflashplayer','movie','f
    > lash/leaguebanner' ); //end AC code
    </script><noscript><object
    > classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
    > codebase='
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=7,0,19,0' width='730' height='80'> <param
    name='movie'
    > value='flash/leaguebanner.swf' /> <param
    name='quality' value='high'
    > />
    > <embed src='flash/leaguebanner.swf' quality='high'
    > pluginspage='
    http://www.macromedia.com/go/getflashplayer'
    > type='application/x-shockwave-flash' width='730'
    height='80'></embed>
    > </object>
    >
    > <script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=7,0,19,0','width','730','height','80','src','flash/leaguebanner','qualit
    > y','high','pluginspage','
    http://www.macromedia.com/go/getflashplayer','movie','f
    > lash/leaguebanner' ); //end AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=7,0,19,0" width="730" height="80">
    > <param name="movie" value="flash/leaguebanner.swf"
    />
    > <param name="quality" value="high" />
    > <embed src="flash/leaguebanner.swf" quality="high"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash" width="730"
    height="80"></embed>
    > </object>
    >

  • Need help putting a menu designed in Dreamweaver in an external WYSIWYG Editor

    I put together a menu that contains spry widgets in Dreamweaver. I need to get what I made into a website hosted by another company. The site allows you to create your own pages through a wysiwyg editor. I'm having trouble figuring out how to attach the .js and .css files. I tried copying the source code into the HTML source editor but it ignored the script and css. I then tried putting the code from the .js and .css file into the source editor but I'm doing something wrong. I'm new to HTML and Javascipt and I have a feeling it is a pretty obvious mistake. I would really appreciate some instruction or advice on how to properly put all of the components into the editor.

    Open those individual files to see the code.
    <html>
    <head>
    Copy and paste script code between <script type="text/javascript"> and </script> tags.
    Copy and paste CSS styles between <style type="text/css"> and </style> tags.
    Insert conditional comments (if any) below the scripts and CSS styles.
    </head>
    <body>
    This is where your page content goes
    </body>
    </html>
    Best of luck!
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Need help fine tuning my code

    This program im making is eventualy going to end up as an attack calculator; the thing is i need help finetuning my program so that a) when it is run it will start at the very top of the window ancestory. b) the 2 windows are locked onto the same ancestory (ancestory is the position of the window relitive to the others: ie the window that is on top of another is higher on the ancestory). this code runs and should easily cut and paste.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class AttackCalculator implements ActionListener{
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
         "Use the legend below for the correct government number. ",
          "Legend: Democracy = 1, Communism = 2, Autocracy = 3, Fascism = 4, ",
          "Monarchy = 5, Pacifism = 6, Technocracy = 7, Theocracy = 8, ",
          "Anarchy = 9, Corpocracy = 10, Ochlocracy = 11, Physiocracy = 12 ",
           public static void createAndShowGUI(){
           String[] labels = {
          "Enter how many troops you have: ", "Enter how many tanks you have: ",
          "Enter how many jets you have: ", "Enter how many ships you have: ",
          "Enter your government type (1-12 refer above): ","Enter your health(%)",
          "Enter your stage number (1-4): ", "Enter how many troops your enemy has: ",
          "Enter how many tanks your enemy has: ", "Enter how many jets your enemy has: ",
          "Enter how many ships your enemy has: ", "Enter your enemy's government type (1-12 refer above): ",
          "Enter your enemy's stage number (1-4): ", "Enter your enemy health: "};
            int numPairs = labels.length;
           JTextField[] textField = {
           new JTextField( 10 ), new JTextField( 1 ), new JTextField( 1 ), new JTextField( 1 ), new JTextField( 1 ),
           new JTextField( 1 ), new JTextField( 10 ), new JTextField( 1 ), new JTextField( 1 ), new JTextField( 1 ),
           new JTextField( 1 ), new JTextField( 1 ), new JTextField( 1 ), new JTextField( 1 )};
            //Create and populate the panel.
            JPanel p = new JPanel(new SpringLayout());
            for (int i = 0; i < numPairs; i++) {
                JLabel l = new JLabel(labels, JLabel.TRAILING);
    p.add(l);
    l.setLabelFor(textField[i]);
    p.add(textField[i]);
    JLabel l = new JLabel("Your union has 2+ members", JLabel.TRAILING);
    p.add(l);
    JCheckBox checkBox = new JCheckBox("", false);
    l.setLabelFor( checkBox );
    p.add(checkBox );
    JLabel la = new JLabel("Enemy's union 2+ members", JLabel.TRAILING);
    p.add(la);
    JCheckBox jcheckBox = new JCheckBox("", false);
    la.setLabelFor( jcheckBox );
    p.add(jcheckBox);
    JButton calculate = new JButton("Calculate");
    p.add(calculate);
    //Lay out the panel.
    SpringUtilities.makeCompactGrid(p,
    16, 2, //rows, cols
    6, 6, //initX, initY
    6, 6); //xPad, yPad
    JFrame contentPane = new JFrame();
    contentPane.setSize(420, 105);
    JLabel title1 = new JLabel("Use the legend below for the correct government number. \n");
    JLabel title2 = new JLabel("Legend: Democracy = 1, Communism = 2, Autocracy = 3, Fascism = 4, \n");
    JLabel title3 = new JLabel("Monarchy = 5, Pacifism = 6, Technocracy = 7, Theocracy = 8, \n");
    JLabel title4 = new JLabel("Anarchy = 9, Corpocracy = 10, Ochlocracy = 11, Physiocracy = 12 " );
    contentPane.add( title1 );
    contentPane.add( title2 );
    contentPane.add( title3 );
    contentPane.add( title4 );
    SpringLayout layout = new SpringLayout();
    contentPane.setLayout(layout);
    //Adjust constraints for the label so it's at (5,5).
    layout.putConstraint(SpringLayout.WEST, title1,
    5,
    SpringLayout.WEST, contentPane);
    layout.putConstraint(SpringLayout.NORTH, title1,
    5,
    SpringLayout.NORTH, contentPane);
    //Adjust constraints for the label so it's at (5,5).
    layout.putConstraint(SpringLayout.WEST, title2,
    5,
    SpringLayout.WEST, contentPane);
    layout.putConstraint(SpringLayout.NORTH, title2,
    20,
    SpringLayout.NORTH, contentPane);
    //Adjust constraints for the label so it's at (5,5).
    layout.putConstraint(SpringLayout.WEST, title3,
    5,
    SpringLayout.WEST, contentPane);
    layout.putConstraint(SpringLayout.NORTH, title3,
    35,
    SpringLayout.NORTH, contentPane);
    //Adjust constraints for the label so it's at (5,5).
    layout.putConstraint(SpringLayout.WEST, title4,
    5,
    SpringLayout.WEST, contentPane);
    layout.putConstraint(SpringLayout.NORTH, title4,
    50,
    SpringLayout.NORTH, contentPane);
    //Create and set up the window.
    JFrame frame1 = new JFrame("Endless Revolution Attack Calculator");
    frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Set up the content pane.
    p.setOpaque(true); //content panes must be opaque
    frame1.setContentPane(p);
    //Display the window.
    frame1.pack();
    frame1.setLocationRelativeTo( null );
    frame1.setVisible(true);
    contentPane.setLocationRelativeTo( null );
    contentPane.setVisible(true);
    public void actionPerformed( ActionEvent evt){
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    here is the second class needed to run
    import javax.swing.*;
    import javax.swing.SpringLayout;
    import java.awt.*;
    * A 1.4 file that provides utility methods for
    * creating form- or grid-style layouts with SpringLayout.
    * These utilities are used by several programs, such as
    * SpringBox and SpringCompactGrid.
    public class SpringUtilities {
         * A debugging utility that prints to stdout the component's
         * minimum, preferred, and maximum sizes.
        public static void printSizes(Component c) {
            System.out.println("minimumSize = " + c.getMinimumSize());
            System.out.println("preferredSize = " + c.getPreferredSize());
            System.out.println("maximumSize = " + c.getMaximumSize());
         * Aligns the first <code>rows</code> * <code>cols</code>
         * components of <code>parent</code> in
         * a grid. Each component is as big as the maximum
         * preferred width and height of the components.
         * The parent is made just big enough to fit them all.
         * @param rows number of rows
         * @param cols number of columns
         * @param initialX x location to start the grid at
         * @param initialY y location to start the grid at
         * @param xPad x padding between cells
         * @param yPad y padding between cells
        public static void makeGrid(Container parent,
                                    int rows, int cols,
                                    int initialX, int initialY,
                                    int xPad, int yPad) {
            SpringLayout layout;
            try {
                layout = (SpringLayout)parent.getLayout();
            } catch (ClassCastException exc) {
                System.err.println("The first argument to makeGrid must use SpringLayout.");
                return;
            Spring xPadSpring = Spring.constant(xPad);
            Spring yPadSpring = Spring.constant(yPad);
            Spring initialXSpring = Spring.constant(initialX);
            Spring initialYSpring = Spring.constant(initialY);
            int max = rows * cols;
            //Calculate Springs that are the max of the width/height so that all
            //cells have the same size.
            Spring maxWidthSpring = layout.getConstraints(parent.getComponent(0)).
                                        getWidth();
            Spring maxHeightSpring = layout.getConstraints(parent.getComponent(0)).
                                        getWidth();
            for (int i = 1; i < max; i++) {
                SpringLayout.Constraints cons = layout.getConstraints(
                                                parent.getComponent(i));
                maxWidthSpring = Spring.max(maxWidthSpring, cons.getWidth());
                maxHeightSpring = Spring.max(maxHeightSpring, cons.getHeight());
            //Apply the new width/height Spring. This forces all the
            //components to have the same size.
            for (int i = 0; i < max; i++) {
                SpringLayout.Constraints cons = layout.getConstraints(
                                                parent.getComponent(i));
                cons.setWidth(maxWidthSpring);
                cons.setHeight(maxHeightSpring);
            //Then adjust the x/y constraints of all the cells so that they
            //are aligned in a grid.
            SpringLayout.Constraints lastCons = null;
            SpringLayout.Constraints lastRowCons = null;
            for (int i = 0; i < max; i++) {
                SpringLayout.Constraints cons = layout.getConstraints(
                                                     parent.getComponent(i));
                if (i % cols == 0) { //start of new row
                    lastRowCons = lastCons;
                    cons.setX(initialXSpring);
                } else { //x position depends on previous component
                    cons.setX(Spring.sum(lastCons.getConstraint(SpringLayout.EAST),
                                         xPadSpring));
                if (i / cols == 0) { //first row
                    cons.setY(initialYSpring);
                } else { //y position depends on previous row
                    cons.setY(Spring.sum(lastRowCons.getConstraint(SpringLayout.SOUTH),
                                         yPadSpring));
                lastCons = cons;
            //Set the parent's size.
            SpringLayout.Constraints pCons = layout.getConstraints(parent);
            pCons.setConstraint(SpringLayout.SOUTH,
                                Spring.sum(
                                    Spring.constant(yPad),
                                    lastCons.getConstraint(SpringLayout.SOUTH)));
            pCons.setConstraint(SpringLayout.EAST,
                                Spring.sum(
                                    Spring.constant(xPad),
                                    lastCons.getConstraint(SpringLayout.EAST)));
        /* Used by makeCompactGrid. */
        private static SpringLayout.Constraints getConstraintsForCell(
                                                    int row, int col,
                                                    Container parent,
                                                    int cols) {
            SpringLayout layout = (SpringLayout) parent.getLayout();
            Component c = parent.getComponent(row * cols + col);
            return layout.getConstraints(c);
         * Aligns the first <code>rows</code> * <code>cols</code>
         * components of <code>parent</code> in
         * a grid. Each component in a column is as wide as the maximum
         * preferred width of the components in that column;
         * height is similarly determined for each row.
         * The parent is made just big enough to fit them all.
         * @param rows number of rows
         * @param cols number of columns
         * @param initialX x location to start the grid at
         * @param initialY y location to start the grid at
         * @param xPad x padding between cells
         * @param yPad y padding between cells
        public static void makeCompactGrid(Container parent,
                                           int rows, int cols,
                                           int initialX, int initialY,
                                           int xPad, int yPad) {
            SpringLayout layout;
            try {
                layout = (SpringLayout)parent.getLayout();
            } catch (ClassCastException exc) {
                System.err.println("The first argument to makeCompactGrid must use SpringLayout.");
                return;
            //Align all cells in each column and make them the same width.
            Spring x = Spring.constant(initialX);
            for (int c = 0; c < cols; c++) {
                Spring width = Spring.constant(0);
                for (int r = 0; r < rows; r++) {
                    width = Spring.max(width,
                                       getConstraintsForCell(r, c, parent, cols).
                                           getWidth());
                for (int r = 0; r < rows; r++) {
                    SpringLayout.Constraints constraints =
                            getConstraintsForCell(r, c, parent, cols);
                    constraints.setX(x);
                    constraints.setWidth(width);
                x = Spring.sum(x, Spring.sum(width, Spring.constant(xPad)));
            //Align all cells in each row and make them the same height.
            Spring y = Spring.constant(initialY);
            for (int r = 0; r < rows; r++) {
                Spring height = Spring.constant(0);
                for (int c = 0; c < cols; c++) {
                    height = Spring.max(height,
                                        getConstraintsForCell(r, c, parent, cols).
                                            getHeight());
                for (int c = 0; c < cols; c++) {
                    SpringLayout.Constraints constraints =
                            getConstraintsForCell(r, c, parent, cols);
                    constraints.setY(y);
                    constraints.setHeight(height);
                y = Spring.sum(y, Spring.sum(height, Spring.constant(yPad)));
            //Set the parent's size.
            SpringLayout.Constraints pCons = layout.getConstraints(parent);
            pCons.setConstraint(SpringLayout.SOUTH, y);
            pCons.setConstraint(SpringLayout.EAST, x);
    }I know this is a lot but when I have tried to put out the portion where I belived the problem to be, didnt work, people couldent help, so here it is all of it.

    it wouldn't run for me, until I changed these lines
    contentPane.add( title1 );
    contentPane.add( title2 );
    contentPane.add( title3 );
    contentPane.add( title4 );
    SpringLayout layout = new SpringLayout();
    contentPane.setLayout(layout);
    to these
    contentPane.getContentPane().add( title1 );
    contentPane.getContentPane().add( title2 );
    contentPane.getContentPane().add( title3 );
    contentPane.getContentPane().add( title4 );
    SpringLayout layout = new SpringLayout();
    contentPane.getContentPane().setLayout(layout);
    then it worked OK, smaller frame on top (the one with the info), larger frame behind.
    both above all other windows
    made it into a .jar file (in case IDE influenced above) and ran the same way

  • Need help with pie chart code

    I am new to Java and am having problems and I am in need of some help. I have written the code for my Mortgage Calculator but do not know how to get my chart to work. I found an example of the chart code in my text book but I am not sure if I wrote it wrong. When I run the MortCalc code it compiles but the Pie Chart code won't. I tried to run the chart code by itself but it prints out another calculator. My question is 1.) Is my chart code written wrong? and 2.) How do i enter it into my MortCalc code so that I get my chart?
    **Below I have included the assignment(so you know what I am doing exactly) and below that the pie chart code just in case you have questions. Thanks for any advice you can give.
    **If you need the rest of the code I can post it too. It was too long to post with the pie chart code.
    Assignment:
    Write the program in Java(w/ a GUI) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage adn the user's selection from a menu of availible mortgage loans:
    --7 yrs @ 5.35%
    --15 yrs @ 5.5%
    --30 yrs @ 5.75%
    Use an array for the mortgage data for the different loans. Read the interst rates to fill the array from a sequential file. Display the mortgage payment amount followed by the loan balance and interest paid for each payment over the term of the loan. Add graphics in the form of a chart.Allow the user to loop back and enter a new amount and make a new selection of quit. Please insert comments in the program to document the program.
    CODE:
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.Rectangle;
    //Class to hold a value for a slice
    public class PieValue {
    double value;
    Color color;
    public PieValue(double value, Color color) {
    this.value = value;
    this.color = color;
    // slices is an array of values that represent the size of each slice.
    public void drawPie(Graphics2D g, Rectangle area, PieValue[] slices) {
    // Get total value of all slices
    double total = 0.0D;
    for (int i=0; i<slices.length; i++) {
    total += slices.value;
    // Draw each pie slice
    double curValue = 0.0D;
    int startAngle = 0;
    for (int i=0; i<slices.length; i++) {
    // Compute the start and stop angles
    startAngle = (int)(curValue * 360 / total);
    int arcAngle = (int)(slices[i].value * 360 / total);
    // Ensure that rounding errors do not leave a gap between the first and last slice
    if (i == slices.length-1) {
    arcAngle = 360 - startAngle;
    // Set the color and draw a filled arc
    g.setColor(slices[i].color);
    g.fillArc(area.x, area.y, area.width, area.height, startAngle, arcAngle);
    curValue += slices[i].value;

    // Draw each pie slice
    double curValue = 0.0D;
    int startAngle = 0;
    for (int i=0; i<slices.length; i+) {
    // Compute the start and stop angles
    startAngle = (int)(curValue 360 / total);
    int arcAngle = (int)(slices.value * 360 / total);Look here and i think you will find some syntax errors.
    Count the brackets.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I need help putting Classical Music CDs into iTunes

    I need help - this question has lots of subquestions, sorry.
    I have found just a few discussions that deal with this but I am still confused. Forgive me if I get wordy and misuse technical terms - I am trying to learn this thing...
    I'm an iPod newbie and haven't a clue on the best way to organize my many, many classical CDs that I'd like to put onto my iPod Classic 160G. I'd also like to do this with as little fussing around as possible since there are lots of CDs I've got to deal with.
    If each CD is a separate entry [album?] in the playlist and titled with composer name first [ex Bach, Brandenburg Concertos, Titov conductor] I'll have several playlist entries with the same titles, but different contents. No problem really.
    But, should I separate it further, by having each concerto [say] be a separate entry in the playlist - without having to download the CD again. [I've just practiced on a few CDs but I imagine it being a problem if I had to download each CD several times - once for each work] Does it make sense to leave gaps between movements? [I'm not finding a way to remove gaps, though I have seen that suggested somewhere]
    And when I come to play the pieces, if I start playing a work in a playlist, will the iPod keep going from one movement to the next as it makes its way through the playlist - or will it stop at each movement and wait for me to tell it what to do next?
    Advanced Settings - are these the best? I'll be listening to music on an airplane using noise cancelling headphones and at destination attaching iPod to portable speakers to listen to music in hotel rooms.
    General: Keep iTunes Music folder organized - unchecked? [not sure what this means or does or doesn't do]
    Copy files to iTunes Music folder when adding to library - checked?
    Importing: AAC encoder? High quality -128 kbps?
    Thanks for all your help - I know this is a multiple set of questions and perhaps should have been broken up...
    Mrs H
    Message was edited by: Mrs H to fix typos
    Message was edited by: Mrs H

    Thank you so much for your help. You have sorted out a lot of problems for me. I've tried to go through what you wrote, add some more info and I have asked a few more questions below-
    I re-ripped at 256. I too have the 160GB classic so it's good to know that it will take 10,000 tracks as lossless - now I have to re-rip again! I actually hadn't anticipated using the iPod with anything other than our high quality noise canceling airplane headphones, our cheap, portable travel speakers for hotel rooms and our Cambridge sound speakers for our cabin. It's that last set of speakers that makes me think I should follow you advice and go with lossless.
    QUESTION #1 - When I re-rip and do an automatic sync, will the tracks at 256 automatically be replaced by the bigger lossless ones with the same name or should I delete everything from the iPod and begin anew?
    "I create a playlist for each work, using a systematic naming convention..." What I did on my test was create a playlist for each composer breaking it down - ex- Bach:concertos, Bach:sonatas, etc. I have the Album column highlighted and it appears as if the movements stay together in the correct order. I fear that the task might be too large to create a playlist for each work, though that certainly is appealing.
    QUESTION #2 If the Album column is highlighted and the movements are in the correct order in iTunes in the playlist, will they stay that way in the iPod?
    "I tend to use just surnames for composers for example, or at least "surname, firstname"." I finally found in settings on the iPod the way to change sort by composer to last name, first name. In iTunes, the composer column which is imported from the internet search for info on the CDs gives composer with first name first and I can't find a place in iTunes to reverse this. Typing it or erasing the first name will be a huge chore.
    QUESTION #3 Is there a place in iTunes to change the order of the composers' name in the composer column?
    "For compilations etc I still create one for the whole CD or box set"
    I figured this out on my own before you corroborated my idea - I think I'm getting the hang of this...
    "The option iTunes has to "organise your music" is a good one"
    QUESTION #4 - are you referring to the preferences > advanced check box "Keep iTunes Music Folder Organized" ? If not, what are you referring to?
    "I have my library in its own dedicated disk. Wherever you put it, its important to then never change it or doing anything else with it: leave it for iTunes."
    QUESTION #5 "dedicated disk"? as in hard drive? I have been using SuperDuper to back up my Mac to an external HD; I plan to put a copy of the iTunes folder onto yet another HD where I keep copies of all our photos as well.
    "never change it"? I noticed a misspelling "Haendel" from the on-line CD/track info - no problem in fixing that - right? Since you later say you do change info, what is it you are never changing?
    QUESTION #6 - "Disk N of M capability" - what? Where do I find this option? And when you say "for multiple CD albums, don't include the cd number in the album name." Where? when you put the CD into a playlist entry? or just in the list of music in the album column - do you change the listing?
    ONE FINAL QUESTION - when I turn on the iPod when it's not attached to headphones or speakers, and I'm just looking at the screen to see settings or how the syncing worked, the iPod appears to begin playing something as soon as I turn it on. THIS IS A STUPID QUESTION, but I can't find the answer, how to I get it to stop playing without turning the iPod itself off???
    "I hope that helps a little. " A little?? It helps a lot - and I'll award those points as soon as I get it all resolved.
    Thanks again,
    Mrs H

  • Need help restoring iPhoto 08 Library into iPhoto 11

    Ok, I have spent hours trying to figure this out on my own. I'm not being lazy but I need help!  I have a black macbook (2009) that had Leopard (not Snow) and iPhoto 08. It crashed. I had a time machine backup on external drive. I got a new hard drive installed and they upgraded me to Lion and iPhoto 11.  I messed up and started the system without hooking up to time machine. I tried to use migration assistant. It imported only imported 400 pics of my many thousand pics.
    I did several things: I tried to rebuild the library, look for orphans, etc. I deleted the ProjectDBVersion.plist, Projects.db, Projects.db-journal files as someone suggested. I deleted the new iphoto 11 library. i dragged the my old iphoto library from time machine. I held down option and tried to build it again from the old library. I still get the same 400 pics. I even tried the free version of Photo Library Manager. It created the same library with 400 pics. (not sure if I know how to use this app right).
    If I open the new iphoto 11 library, I can see my pics in the  "Masters" file.  I was able to drag these to my desktop and then put in iphoto but does this method save my edits? Should I drag the "Modified" pics into iphoto instead? I don't care much about keywords, I just want my edits. I also don't want old deleted photos put back into iphoto. 
    another question, time machine (TM) is not turned on yet with new hard drive and OS. it doesn't recognize my external drive as TM. It asks if I want to designate it as TM. If I do this, will it delete my old backup (with all my important data) and start a new backup of my new hard drive which doesn't have all the pics yet.
    I don't have a copy of Lion so if I do a complete restore, I will have to buy it and add all info again. Is this my best option? Would it really make a difference?
    Terrance, you out there?
    Thanks for any help!

    It might start backing up your new drive but will not erase what's on it as long as there is sufficient space. Also you can turn on TM and exclude your entire HD via the TM Options pane.
    Then go to your Pictures folder and enter Time Machine.  Go back to the appropriate date, select the library and use the Restore button.
    OT
    NOTE:  if you have trouble entering TM's backups go to the Lion forum and ask your question there.  Also do a search there for Time Machine so see if there are any similar topics there already.

Maybe you are looking for

  • Hard Drive Setup Recommedation - Premiere Pro CC 2014

    Premiere CC on my old Win 7 64bit hard drive had smooth video previews. Premiere CC 2014 on my new Win 8.1 64bit hard drive is choppy and sluggish. Same ATI Mobility Radeon HD 4650 car which uses WDDM v1.1 as the driver. No other driver available.) W

  • Fast entry of Time data

    Hi all, i'm looking for a way to enter a lot of entries for a lot of EE. PA71 don't permit to do this for IT2012, and 41. -> Does anybody have an idea? Thanx

  • This black box is making noise--what is it? (pictures)

    I know there have been several threads regarding the white noise given off by Motherboards under heavy load.  I also have a K7N2G-ILSR and it has made the noise since day one.  Like others, I have tracked the noise to the little black box just above

  • How do I automate installing/configuring plugins?

    Is there a way to automatically install add-ons into Firefox? I'd like to install AdBlockPlus and three subscriptions and a Canadian Dictionary for 50 PCs, and I don't want to to it manually, if I can help it. I don't mind a pop up telling the user t

  • XSQL Session and Cookies

    Hi, Steven, I have a question about cookies parameters in include-parameters. When set the following in my xsql file: <xsql:set-session-param name="current_user" value="{@sessionid}"/> <xsql:include-param name="mode"/> <xsql:include-request-params/>