Next and previous slide doesn't work

Hey all,
I'm working on a presentation in Captivate 3. I've added 2
buttons in the slides, 1 button to go to the next slide and the
other jumps to the previous slide. But when I test the
presentation, the slide keeps repeating itself. In other words, it
seems that the 'go to next or previous slide' function doesn't
work. I've also tried 'jump to slide *, but this doesn't work
either. Can anyone tell me what I'm doing wrong?
And my next question is: How can I 'stop' a slide from moving
on to the next slide? Like in PPT it stops automatically, and
progresses with a mouse click or key press.
Thanks in advance!
Greetz,
Frederik

Hi Frederik
Normally the presence of a button or a click box will pause
the slide. Are you saying this isn't the case?
Can you describe how exactly you are expecting things to work
when you play the project?
Cheers... Rick

Similar Messages

  • Next and Previous slide from Flash Menu

    We are currently tasked with updating SAP training that was
    created with OnDemand software. The current simulations have a
    Javascript menu on each screen which provides various functions
    including moving from current slide to next or previous slides.
    When the existing movie is played and captured, we lose the
    javascript menu functionality.
    I have created a Flash Menu and have imported it to the newly
    captured Captivate movie. All links on the menu work except Next
    Slide and Previous slide.
    The script I use for the button for the Next slide is as
    follows:
    this.next_btn.onRelease =function(){
    this._parent._parent..nextFrame();
    Also I have tried substituting for nextFrame "play" and for
    the target path "_root" for the first "_parent."
    The variables "rdcmndNextFrame" and "rdcmndPrevious" do not
    work unless you are using a playback bar, which detracts from the
    simulation.
    Has anyone ever created this type of functionality? It seems
    that it would be straight forward. It is most likely a target path
    issue. The captivate movie is the container for the flash menu. To
    access the captivate movie timeline and move to the next or
    previous slide is what I really need.
    Help!

    I resolved the issue by selecting to use a playback bar and
    then in the Flash file setting the visibility of the playback bar
    to "0".

  • HT201263 Unable to update, restore or recover. Slider doesn't slide and number pad doesn't work for passcode. What next? Worked last night . Battery charged. When I push Home button I get my backgroung but can't slide slider. Device is recognized by iTune

    Unable to update, restore or recover. Slider doesn't slide and number pad doesn't work for passcode. What next? Worked last night . Battery charged. When I push Home button I get my backgroung but can't slide slider. Device is recognized by iTunes.Help! Thank you.

    Besweet, I'm having the very same problem with 60GB colour which was bought new and worked for 6 months before suddenly just not being recognised by PC. I hadn't changed anything at all.
    I've followed all troubleshooting advice and reinstalled and updated iTunes and iPod updater software but all troubleshooting routes seem to hit the dead end of either the need to access the iPod via the PC (which isn't possible as it's not showing up at all) or the iPod in disc mode stuck at "ok to disconnect".
    It's still under 1yr warranty so will have to take to a dealer.
    I'm sorry that's not much help for you but at least you know it's not a unique problem.
    PC   Windows XP  

  • My new iMac has recently had OSX Lion installed on it and now when I start the machine it looks like its updating something every time, and the wireless doesn't work. So I restart and everything is OK - until I have to start up again the next time?

    My new iMac has recently had OSX Lion installed on it and now when I start the machine it looks like its updating something every time, and the wireless doesn't work. So I restart and everything is OK - until I have to start up again the next time - then I have to repeat this again! Any help appreciated.

    I've been having the same issue, but have just discovered something on my own that hasn't been pointed out in any of the forums I've visited.  In what I thought would be a vain attempt to help myself, I went to System Preferences, Users & Groups, and then clicked on Login Items.  I discovered that one of the Items that was listed to open automatically upon login was iTunes Helper and that there was an exclamation point beside it indicating that it was incompatible.  I simply deleted that item and now I don't have the situation you described and my wireless is connected.  Hope this helps!

  • Next and Previous don't work with video in Playlists

    In iTunes for Windows 10.1.2.17, when playing video from a playlist, the video will end and the video window will close, and playback stops. No new video will play. The same thing occurs when clicking on the Next or Previous buttons (both on the video window and in the playback controls at the top of iTunes. Shouldn't the next video in the playlist (or the next random video) play once the first has completed?
    This is a new behavior. It did not occur with earlier versions of iTunes.
    The Next and Previous buttons work as they are supposed to when playing video from the library, but then there is no way to select specific videos or to randomize playback as is possible under a playlist (which is the whole point of the playlist.)
    The Next and Previous buttons still work as they are supposed to when playing music from a playlist. This new odd behavior occurs only with video playback.
    Is this a known issue, or is there something I'm missing in the operation of iTunes? Are other people experiencing this behavior?
    Message was edited by: BTarver

    This happened to me as well with Windows 7 32 bit (which I did as as upgrade from Vista Home Premium - if that might foul things up a bit) and affects Firefox 34.1 and IE. I did a system restore which took me back to Firefox 33 and Flash was fine. Later in the day Firefox updated back to 34.1 and I lost Flash again.

  • TS1406 I read all of this, and did each step and mine still doesn't work. It still says "iTunesSetup.exe is not a valid Win32 application". What's next?

    I read all of this, and did each step and mine still doesn't work. It still says "iTunesSetup.exe is not a valid Win32 application". What's next?

    Perhaps try downloading and saving a copy of the installer to a different PC. (If you're on a 32-bit Windows system, try to download on a different 32-bit Windows system.) Copy the iTunesSetup.exe installer to an external hard-drive, or a large-enough thumb drive or burn it to a CD-R. Carry the installer back to your PC, copy the installer to your hard drive. (Don't run the install from the ExHD, thumb or CD-R.) Start the install by doubleclicking the iTunesSetup.exe file.

  • "Next" and "Previous" functionality on UIX tables not working with 10g

    With new release of JDeveloper(10G), the "Next" and "Previous" navigation buttons/links on UIX tables are not working. I tried different approaches:
    1. It does not work with Data Controls built from Java Beans or from TopLink.
    2. I tried without using Data Controls and it still does not work.
    I shows "Next" and "Previous" buttons on the page. But it shows all records on the page rather then showing limited records. Say for example if the block size is 5 and total number of records are 15, it shows all 15 records in the table but the "next" and "Previouds" button would say "1-5 of 15".
    Did any of you observe the same behaviour?

    Hi Shital -
    Thanks for the additional info...
    When I said that the total number of records is 15, I
    meant that my tableData's DataObjectList contains 15
    entries. (In case of DataControls you don't even use
    DataObjectList, but for my non data control
    applications I used DataObjectList). You are saying
    that If I want to display only 5 records per page
    then I will need to provide a DataObjectList with
    five items. Then for next five records from 6-10 I
    will have to program in such a way that my method
    call returns 6-10 records.That's correct. In the case where you are explicitly providing data to the table via a DataObjectList, you need to feed the data to the table in page size blocks - and you also need to handle the table's goto event to scroll the table to the next/previous block of data.
    In previous version of
    UIX(2.1.7) I never had to program for next and
    previous buttons. UIX tables used to take care of
    that. That's why I am so surprised.It sounds like you must have been using the <bc4j:table> component. Is that the case?
    Getting back to your original issue...
    1. It does not work with Data Controls built
    from Java Beans or from TopLink.I believe that this is a bug in the preview release - and I'm fairly sure this will be addressed by production. In production, ADF should automatically handle wiring up table scrolling for you when binding your table to a data control - whether the data control is implemented via JavaBeans, Toplink, or BC4J. I believe that in the preview release, scrolling only working when binding to a BC4J data control.
    Andy

  • The plus sign next to my tab stopped working: when I click on it nothing happens. I tried uninstalling and re-installing and it still doesn't work.

    The + sign to add a new tab suddenly stopped working a while ago. I tried uninstalling and re-installing and it still doesn't work. What may have happened and how do I fix it?

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • X6 : how to get next and previous controls working...

    Hi,
    May be i am missing how to do the same...but i can't get the the next video by pressing the next icon on the real player...i am viewing the video files from the gallery..Or the next and prev controls won't work..

    Hi,
    In that case it's too bad..

  • Next and Previous Buttons, n00b edition

    OK, I am trying to construct a "timeline" flash file, where
    basically you click either a next or previous button to move
    through different frames, and I think I know how to do everything
    other than the next and previous buttons. Two questions:
    Would this be easier as AS2.0 or AS3.0?
    If I use AS3, would this code work, and is "my_mc" simply the
    name of the layer with the navigable frames?
    next_btn.addEventListener(MouseEvent.MOUSE_UP,buttonPressed);
    prev_btn.addEventListener(MouseEvent.MOUSE_UP,buttonPressedprev);
    function buttonPressed(event:MouseEvent){
    my_mc.nextFrame()
    function buttonPressedprev(event:MouseEvent){
    my_mc.prevFrame()
    Sorry if this is confusing, I am such a n00b I don't even
    know how to ask questions properly.

    sholditch,
    > This is a huge help and one of the better explanations
    of AS
    > coding I've ever seen. Thanks a ton.
    Thanks!
    > However, I think I may be jumping ahead too much.
    Sure, no worries. It's definitely dizzying at the beginning.
    > Follow up questions, n00b style:
    >
    > 1. What would be the equivalent of the nextFrame()
    method
    > for previous? Tried searching help and googling, but
    getting
    > too much other stuff to wade through.
    Google absolutely rocks, but I hear ya ... you have to be
    willing to
    wade through numerous search results. Fortunately, the Help
    docs usually
    get you directly to your answer -- and quickly, at that -- if
    you just know
    how to navigate them. If you're using Flash CS3, the Help
    docs are local,
    though optionally available online. If you're using Flash
    CS4, the docs are
    online and open in a browser, in either case, what you're
    looking for
    specifically is the ActionScript 2.0 Language Reference (if
    you're using
    AS2) or the ActionScript 3.0 Language and Components
    reference (if you're
    using AS3).
    AS2:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=Part2_AS2_LangRef_1.html
    AS3:
    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/index.html
    In the case of AS2, you'll click on the lefthand side. Open
    up
    "ActionScript 2.0 Language Reference," then "ActionScript
    classes," and
    you're in. In the case of AS3, you'll see the classes already
    listed on the
    lefthand side.
    Now ... you've coded up your button, which means you
    consulted the
    Button (AS2) or SimpleButton (AS3) class to see what was
    available to you.
    (I'm speaking hypothetically, of course. When you've become
    more
    comfortable with the docs, this will often describe your
    initial steps.)
    You want to code up a button symbol, so that means you've
    looked up the
    Events heading for the appropriate class to see what this
    object can react
    to, such as a button click. You've found your event --
    onRelease or
    MouseEvent.CLICK -- and have associated that event with a
    custom function.
    Now, you're on to the next step. In this case, the object
    you're
    looking for is no longer a button. It's a movie clip, because
    you want this
    function to send the main timeline forward or backward.
    Again, your first
    question is always: a) what object am I dealing with? Here,
    it's the
    MovieClip class, so that's where you flip to. Your second
    question is: b)
    what category am I looking for? If characteristics, look up
    Properties; if
    something the object can do, look up Methods; if something
    the object can
    react to, look up Events. In this case, you want to send the
    timeline
    somewhere. That's something the timeline (that is, this
    particular movie
    clip) can do. The things-an-object-can-do category is
    Methods, so that's
    where you flip to.
    You'll see a decent selection in either language, including
    the common
    gotoAndPlay(), gotoAndStop(), and so on. You'll also see
    nextFrame() and
    prevFrame(). Bingo! (Note, both versions of the language rely
    on something
    called inheritance, which behaves just like it sounds. Just
    as we humans
    inherit traits from our predecessors, most classes inherit
    traits from other
    classes up the family tree. In the AS3 docs, you'll see a
    "Show Inherited
    Public Methdods [or Properties, or Events]" hyperlink. If you
    need more
    detail, be sure to click that link. In the AS2 docs, the
    inherited items
    are listed in a box beneath each heading. Any given class may
    or may not
    have inherited items.)
    So you really don't have to wade too far. Think of what
    object you're
    dealing with, then jump to the relevant category.
    > 2. How do I make the next and previous buttons the only
    > controls that will move to the next or previous frames?
    I
    > plugged in the code into a separate as_layer and when I
    > test the scene it just goes through the frames
    automatically.
    Movie clips (including the main timeline) just animate
    naturally -- they
    *want* to move -- so if you want a timeline to stop, you have
    to instruct it
    to. Here again, you'll look up the MovieClip class and,
    because you want to
    find out how to *do* something (how to stop this movie clip),
    you'll jump to
    the Methods section. Sure enough, there's a MovieClip.stop()
    method.
    In frame 1 of your main timeline, simply type stop(), and
    that'll do it.
    The reason it works is because you're invoking a MovieClip
    method on a
    MovieClip instance -- the main timeline. If you wanted to
    stop a movie clip
    symbol, you'd have to give it an instance name, then invoke
    the method on
    that particular instance, like this:
    myMovieClip.stop();
    ... in which case, myMovieClip is the instance name, and this
    clip happens
    to site in the same timeline as this code appears.
    Alternatively, you could enter the timeline of that movie
    clip and
    simply put stop() in its own first frame. That would do it
    too. In either
    case, you've invoked a MovieClip method on a particular movie
    clip. All you
    ever need is an object reference (implicit, because you're in
    that object's
    scope) or an instance name (or a variable that, by some other
    mechanism,
    refers to a particular object) and then you're set. With that
    reference in
    hand, you simply name the reference, put a dot, then invoke
    the desired
    property, method, or event.
    In the case where you simply invoke stop() on the main
    timeline, you
    *could* reference the main timeline directly, like this:
    this.stop();
    The "this" keyword is a special reference that refers to
    whatever scope
    its in. Because your code appears inside a keyframe, its
    scope is the movie
    clip in which that keyframe appears, therefore "this" -- in
    that context --
    refers to that movie clip. But as I showed earlier, you can
    also simply
    leave off the prefix object reference because Flash will know
    what you mean
    (that is, which movie clip you mean).
    Eventually, when you're more comfortable, you'll reference
    instances of
    other kinds of objects, such as sounds, text formatting
    objects, and more.
    In those cases, your object reference -- an instance name, or
    a variable --
    will act the same way, but you'll only be able to invoke
    functionality from
    the relevant class.
    If you have Sound instance, for example, you couldn't do
    this:
    mySound.gotoAndPlay(15);
    ... because sounds don't have timelines, and the Sound
    class's Methods
    section doesn't feature a gotoAndPlay() method. And that
    totally makes
    sense, right?
    > If you have a beginner's guide to actionscripting,
    focused
    > on AS3, I will buy it today.
    I'm happy to keep answering your questions here, but yes, I
    do have a
    few books you might be interested in. If you're using Flash
    CS3, you might
    consider Tom Green's and my Foundation Flash CS3 for
    Designers (friends of
    ED) (
    http://tinyurl.com/2k29mj),
    and if you're using Flash CS4, you'll want
    the current version of that book (
    http://tinyurl.com/5j55cv).
    Bear in mind,
    these are "foundation" books, so they cover all of Flash, not
    just
    ActionScript. Still, there's tons of ActionScript in either
    one
    (exclusively AS3, by happenstance), and we've received
    positive feedback on
    the ActionScript Basics chapter, in particular.
    I also recently finished an AS2-to-AS3 migration book for
    O'Reilly
    http://tinyurl.com/2s28a5),
    but that one may not be especially useful for
    you, because it focuses more on developers who have a basic
    understanding of
    AS2 but feel bewildered when it comes to AS3.
    There's also my blog, (quip.net/blog), which has tons of AS2
    stuff, and
    is slowly growing new AS3 content. One of my co-authors for
    the O'Reilly
    book, Rich Shupe, co-authored an ActionScript 3.0 book
    specifically for
    beginners, so take a look, read the reviews, and see if the
    publisher offers
    sample chapters. They often do, and that's usually a good
    indicator -- to
    me, anyway -- of how a particular author's style gels (or
    doesn't gel) with
    your particular learning style.
    David Stiller
    Contributor, How to Cheat in Adobe Flash CS3
    http://tinyurl.com/2cp6na
    "Luck is the residue of good design."

  • HT1657 I rented a movie and the sound doesn't work, how do I fix it?, who do I direct to for a complaint?

    Hi, I rented warhorse HD, and the sound doesn't work, my itunes version is 10.6.1(7). How do I fix it or who do I direct to get my money back? Thank you

    I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • Can you restore from an older iCloud back up (July 3rd), and if it doesn't work RE restore from a new iCloud (July 14th)?

    I upgraded my 4S to a 5 on July 3. I had updated my back up to iCloud that morning (but it had also updated the night before). It did NOT restore from back up ANY games (I play one all the time and had a year and a half's worth of work in it!!!) But, I assumed it didn't do that, because it DID pull my contacts, though it didn't pull my email or my texts or anything. On July 13th I had to swap the 5 out for a new 5 because the first one was glitching. When I restored from back up this time (the date on it was July 12th) it pulled EVERYTHING!! I would like to try to reload the one from the 3rd to see if it will work now, but I hate to loose everything again! Can I load the 3rd's back up and if it doesn't work, RE load the back up from now? And even if I could do that, HOW do I do it?

    This is my boilerplate respone for the "waiting apps" problem. Give these suggestions a try in order.
    1. Tap the "waiting" icon and see if you can pause it. If it does pause, then tap it again and see if it will resume. If that works, repeat the same steps for each "waiting" icon.
    2. Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    3. Make sure that you do not have a stalled download in iTunes - if you have a download in there that did not finish, complete that one first.
    4. If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    5. You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again. Apps may also be able to be deleted in Settings>General>Usage>Storage if you cannot get the X to pop up on the icon.
    6. You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered.
    7. If all else fails, download the updates or the apps in iTunes on your computer and then sync the content to your iPad.

  • I clicked "yes" to upgrade iTunes and now it doesn't work. I get an error message stating my computer is missing MSVCR80 and then a message stating Error 7 (Windows Error 126). I've tried reloading iTunes twice. What can I do?

    I clicked "yes" to upgrade iTunes and now it doesn't work. I get an error message stating my computer is missing MSVCR80 and then a message stating Error 7 (Windows Error 126). I've tried reloading iTunes twice. What can I do?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Next and Previous Button Question

    First my code :)
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.GridLayout;
    import java.lang.Object;
    import java.awt.Image;
    public class Inventory // Main class
    //main method begins execution of java application
    public static void main(String args[])
         int i;
         double totalInventory = 0.0;
         final int dispProd = 0; // variable for actionEvents
         final part[] myPart = new part[4];
         for (i=0; i<4; i++)
                   myPart[0] = new part("Glass Break", 730, 12, 32.19);
                  myPart[1] = new part("Motion", 995, 14, 37.69);
                  myPart[2] = new part("Keypad", 220, 12, 50.69);
                  myPart[3] = new part("Contact", 944, 44, 1.19);
         final JButton firstBtn = new JButton("First");
         final JButton prevBtn = new JButton("Previous");
         final JButton nextBtn = new JButton("Next");
         final JButton lastBtn = new JButton("Last");
         final JLabel label;
         final JTextArea textArea;
         final JPanel buttonJPanel;
         //Add Logo          
         ImageIcon icon = new ImageIcon("javashield.JPG");
                   label = new JLabel("Some Company Inc.", icon, JLabel.RIGHT);
         //Set the position of the text, relative to the icon:
         label.setVerticalTextPosition(JLabel.BOTTOM);
         label.setHorizontalTextPosition(JLabel.CENTER);
         buttonJPanel = new JPanel(); // set up panel
         buttonJPanel.setLayout( new GridLayout(1, 4)); //set layout
              // add buttons to buttonPanel
         buttonJPanel.add(firstBtn);
         buttonJPanel.add(prevBtn);
         buttonJPanel.add(nextBtn);
         buttonJPanel.add(lastBtn);
    textArea = new JTextArea(myPart[3]+" "); // create textArea for product display
         // add total inventory value to GUI
    textArea.append("\nTotal value of Inventory "+new java.text.DecimalFormat("$0.00").format(totalInventory)+"\n\n");
    textArea.setEditable(false);
    JFrame invFrame = new JFrame();
    invFrame.setLayout(new BorderLayout());
    invFrame.getContentPane().add(new JScrollPane(textArea), BorderLayout.CENTER);
    invFrame.getContentPane().add(buttonJPanel, BorderLayout.SOUTH);
    invFrame.getContentPane().add(label, BorderLayout.NORTH);
    invFrame.setTitle("INVENTORY:");
    invFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    invFrame.setSize(350, 350);
    invFrame.setLocationRelativeTo(null);
    invFrame.setVisible(true);
    // assign actionListener and actionEvent for each button
    firstBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[0]+"\n");
    }); // end firstBtn
    prevBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[1]+"\n");
    }); // end prevBtn
    nextBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[2]+"\n");
    }); // end nextBtn
    lastBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[3]+"\n");
    }); // end lastBtn
    } // end main
    } // end class Inventory6
    class part
       public String partName;
       public int itemNum;
       public double units;
       public double price;
       //default constructor
    public part()
            partName = "";
            itemNum = 0;
            units = 0.0;
             price = 0.00;
        }//end default constructor
         //Parameterized Constructor
    public part( String partName, int itemNum, double units, double price)
            this.partName = partName;
             this.itemNum = itemNum;
             this.units = units;
             this.price = price;
        }//end constructor
         public void setpartName(String partName) {
             this.partName = partName;
            public String getpartName()
                return partName;
        public void setitemNum ( int itemNum )
           this.itemNum = itemNum;
        public int getitemNum()
         return itemNum;
        public void setunits ( double units )
             this.units = units;
         public double getunits()
              return units;
         public void setprice ( double price )
             this.price = price;
         public double getprice()
         return price;
      //calculates product total     
         public double invTotal()
         return (units * price);
    public String toString()
              return "Part:  "+partName+
                        "\nPart Number:  "+itemNum+
                        "\nUnits on hand: "+(int)units+
                        "\nPrice per unit:  $"+price+
                        "\nPart Total:  $"+invTotal();
    //end Class Part
    // Class Part holds Part information
    class Wireless extends part
    private String wlPart; // variable for added feature
    public Wireless(String partName, int itemNum, double units, double price, String addWL)
    // call to superclass  constructor
    super(partName, itemNum, units, price);
    wlPart = addWL;
    }// end constructor
    public void setwlPart(String addWL) // method to set added feature
    wlPart = addWL;
    public String getwlPart() // method to get added feature
    return wlPart;
    public double totalRestock() // method to set value and add restock fee
    return units * price * 0.05;
    public String toString()
    return "Part:  "+partName+
                        "\nPart Number:  "+itemNum+
                        "\nUnits on hand: "+(int)units+
                        "\nPrice per unit:  $"+price+
                        "\nRestock Fee:  $"+totalRestock()+     
                        "\nPart Total:  $"+invTotal();
    } I need to make my next and previous button keep going through the array. They go next or previous one time and stop. I know it is because of the way I wrote the statement
    textArea.setText(myPart[2]+"\n");What I can't figure out is how to make that statement be the current myPart and add 1 to it. I tried textArea.setText(myPart[i]+1+"\n");and it did not work either, I got these errors:
    C:\Inventory\Inventory.java:92: local variable i is accessed from within inner class; needs to be declared final
    textArea.setText(myPart[i]+1+"\n");
    ^
    C:\Inventory\Inventory.java:92: operator + cannot be applied to part,int
    textArea.setText(myPart[i]+1+"\n");
    ^
    2 errors
    So I tried to write {nextItem()}
    and writing a method for next item,
    nextBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    nextItem();
    }); // end nextBtn
    lastBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    textArea.setText(myPart[3]+"n");
    } // end lastBtn actionEvent
    }); // end lastBtn actionListener
    } // end main
    private static void nextItem();
    if (myPart < myPart[]-1)
         myPart++;
         textArea.setText(myPart[0]);
    }and I get this error
    C:\Inventory\Inventory.java:109: '.class' expected
    if (myPart < myPart[]-1){
    ^
    1 error
    I thought '.class' expected meant I was missing a bracket, but I can't see where I am missing a bracket.
    I feel dumber by the minute.
    Am I not seeing something?

    Another suggestion. First create a non-GUI Inventory class, something like this:
    public class Inventory
        private part[] myPart;
        private int index = 0;
        public Inventory()
            myPart = new part[4];
            myPart[0] = new part("Glass Break", 730, 12, 32.19);
            myPart[1] = new part("Motion", 995, 14, 37.69);
            myPart[2] = new part("Keypad", 220, 12, 50.69);
            myPart[3] = new part("Contact", 944, 44, 1.19);
        public part getPart(int i)
            //TODO fill this in
        public part getFirst()
            //TODO fill this in
        public part getLast()
            //TODO fill this in
        public part getNext()
            //TODO fill this in
        public part getPrev()
            //TODO fill this in
        public double getTotalInventory()
            //TODO fill this in
        // this main is here only to test out the class
        public static void main(String[] args)
            Inventory inv = new Inventory();
            for (int i = 0; i < 4; i++)
                System.out.println(inv.getPart(i));  
                System.out.println();
            System.out.println("getFirst: " + inv.getFirst());
            System.out.println();
            for (int j = 0; j < 6; j++) // deliberately set to be > 4
                System.out.println("getNext: " + inv.getNext());
                System.out.println();
            for (int j = 0; j < 6; j++)
                System.out.println("getPrev: " + inv.getPrev());
                System.out.println();
            System.out.println("getLast: " + inv.getLast());
    }Then use this class as a variable within another class, say InventoryGUI. In this second class, the "next" button would call the Inventory object's getNext() method.

  • 'Next' and 'Previous' buttons in master/detail region

    Hi,
    I've managed to successfully create a master/detail region
    which is basically a very simple photo gallery.
    The left column shows the thumbnails, and when I click on
    them it shows the full-size version in the right column.
    I've been trawling userguides and forums for hours now, and I
    just can't work out how I can put a 'next' and 'previous' button
    beneath the large image enabling the viewer to move to the next
    image.
    I'm guessing it might be something to do with setRowNumber,
    but I'm just not sure.
    I'm pulling my (receding) hair out on this one, so any help
    or useful links would be much appreciated!
    My (basic) code below
    <div spry:region="dsGT" id="thumbholder">
    <div id="thumb" spry:repeat="dsGT"><img
    src="onlinegallery/thumbs/{@path}" width="50" height="50"
    spry:setrow="dsGT"></div>
    </div>
    </div>
    <!--End Navigation Div-->
    <div id="copy">
    <div id="fullimage">
    <div spry:detailregion="dsGT">
    <img src="onlinegallery/main/{@path}" />
    </div>
    Many thanks!

    They make a call to JavaScript, I'm guessing you knew that?
    I'm 96.7% JS illiterate, so I'm incapable of explaining it.
    You have to download the Spry Framework, unpackage it, look
    in the Demos folder, then look in the Gallery folder. Gallery.js, i
    think, is where that JS call goes to in order to switch out the
    next/prev image.
    the download is here:
    http://labs.adobe.com/technologies/spry/

Maybe you are looking for