Turn an slide with objects (hide/reveal) interaction into quiz result?

I have a slide with some interactions.  The user will click yes/no and an object will reveal.  Can this be turned into a quiz--or at least be tracked?
Thanks!
Jay

Reporting accordion is in the Properties panel for each interactive object: button, shape button, click box, Text Entry Box, interactive widget (or interaction). You can find it just below the Timing accordion.
I forgot to ask which version you are using.
Advanced actions: I'm not sure what exactly you want to do with scores. Have a look at the source list in this post:
http://blog.lilybiri.com/widgetsquestions-source-list
And here you find a list with articles that I wrote before starting my blog. Some of them have practice files.
http://blog.lilybiri.com/articles-on-advanced-actions
Lilybiri

Similar Messages

  • CP8 Interactions and slides with audio and closed captions - not working well - please help

    Okay, I am using cp8 on a windows 8 64 bit machine. I have placed an interaction on a slide. I also have audio on that slide and closed captions.
    When I get to the slide, the audio does not play because the mere fact that the interaction is on there makes the slide pause upon enter. I could have the student click play on the playbar to go, but that is not required on slides without interactions, so I don't like that solution. I also could do an On Enter slide Play Audio and pick the wav file, but then the closed captions don't show up.
    So, the question is, how do I have the slide automatically play the audio at the slide level without the student having to click the play button to go?? Slides with interactions should behave just like other slides with objects/widgets on them. This auto pausing thing is driving me nuts!
    Thanks,
      Lori

    Lori, this is puzzling! Are you talking about one of the learning interactions included with Captivate? If yes, which one? My puzzlement is due to the fact that what you described is what happened in CP6: interaction paused slide at first frame (I had a workaround for audio). But since CP7 interactions do not pause any slide, you'll have to provide the pause yourself. There are some exceptions (games).
    Lilybiri

  • Continue Button on Quiz Results Slide NOT Working Properly

    I'm experiencing a functionality issue with the "Continue"
    button on the Quiz Results slide:
    Situation 1: After initially completing the quiz, I need to
    click the "Continue" button on the Quiz Results slide only once to
    advance to the next (and last) slide in the quiz movie. This is
    fine & works as I would expect.
    Situation 2: After initially completing the quiz, if instead
    I choose to review the quiz, later when I get to the Quiz Results
    slide, I need to click the "Continue" button TWICE to advance to
    the next (and last) slide in the quiz movie. This does NOT work as
    I would expect.
    Any idea why only 1 click is needed in the Situation 1 while
    2 clicks are needed in Situation 2? Any way to fix Situation 2 so
    that only 1 click is needed?
    Thanks much!

    CapManZ,
    Whether the Continue button on the Quiz Results slide
    requires one or two clicks is mysterious indeed. See
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=67&catid=464&threadid =1302278
    for another discussion about its misbehavor.
    Actually, the number of clicks required depends on how long
    you wait after the Quiz Results slide appears, prior to clicking
    the Continue button. In your situation 1 you probably answered
    questions rather than using the skip button, so you viewed the
    question slides for a while prior to arriving at results. In your
    situation 2 you probably used the Skip button to zip through the
    slides to return to the results screen. Try this. In situation 2,
    when you get to the Quiz Results slide, instead of clicking the
    Continue button, go get a cuppa joe and then see if a single click
    will work. If so please let me know.
    I've experimented with a Captivate 2 multiple choice quiz in
    a slide show that contained only 10 questions and the Results
    slide. I added a text caption with fade in and fade out enabled
    (the default) to the Results slide. I found that after the caption
    fades in, one click on the continue button advances the slide. So I
    used the caption's appearance to help measure the timing.
    In the tests below I skipped as rapidly as possible, pausing
    at various slides to see how it affected the single click
    threshold.
    Skip all slides: 28 sec
    View slide 1 for 60 sec and then skip: 28 sec
    Skip to slide 5, pause 30 sec, and then skip: 13 sec
    Skip to slide 10, pause 30 sec, and then skip: 2-3 sec
    Answer each slide (took more than 30 sec): 2-3 sec
    Skip all slides, click Continue as fast as possible: 2-3 sec
    I also reduced the number of question slides in the quiz and
    skipped all slides.
    7 questions: 18 sec
    3 questions: 7 sec
    I believe the threshold value (the duration required before
    clicking the Continue button advances to the next slide) is
    composed of two durations which add together to determine the
    threshold. The Result's slide's timeline probably sets the
    threshold's lower limit. Clicks prior to 3 seconds are ignored.
    Time per slide and number of slides left to go sets the upper limit
    for the threshold. The slower the movement, the lower the
    threshold.
    Several conclusions:
    This probably isn't a situation in which the first click is
    ignored. Instead the first click reduces the threshold's value to
    the lower limit. The second click would then typically occur after
    3 additional seconds, particularly if the user is surprised that
    the first click didn't work and pauses slightly. A very fast
    additional click on the Continue button is ignored as well.
    Long quizzes will cause more complaints about the issue
    because of what you experienced. It typically takes longer to
    answer the quiz than review it.
    Perhaps there's a workaround that would alert the user that
    the Continue button is ready for clicking. I'm thinking that since
    the text caption fade-in coincides with being ready to continue, an
    image or the like might do the trick. Any suggestions out there?
    Humm, a better alternative might be to show some images of
    snacks on the results slide background. Through suggestive selling,
    the user realizes it's time for a break and clicks Continue after
    returning with that cuppa joe. And the sound you hear? It's the
    Captivate developers giggling if they read my conclusions. Too bad
    they're mum, since some real info might make it easier to make
    Captivate behave. Ah well.
    Phil

  • Publishing Projects with Web Objects and YouTube Interactions

    How do I publish projects with Web Objects and YouTube interactions to ensure they appear in my published project?
    I am trying to publish my project, which contains Web objects and YouTube interactions, and they will not appear if I publish them either as swf or html (sometimes the Web object will appear, but not the YouTube interactions). Both objects work if I preview them on the stage.

    Hi,
    You need to copy your published output to any web server to make Web Objects and Yout Tube interaction work.
    Regards,
    Mayank

  • Error with buttons in an interactive PDF with "go to URL" action applied

    Hello, I am having an issue with buttons in an interactive PDF, specifically buttons that have a “go to URL” action applied to them. Most of the buttons in the document work fine and link out correctly however, some of the linked buttons InDesign is adding spaces to the end of the url, which the browser interprets as “%20” and breaks the link i.e. (http://helpx.adobe.com/pdf/indesign_reference.pdf%20). The added space effects multiple buttons in my document seemingly randomly, potential Bug? When the added space is deleted from the URL via the Button and Forms Panel’s URL field it is re-added by InDesign upon deselecting the button. Obviously the links can be updated in acrobat after export, but this is tedious and time consuming. Any help that can be provided would be much appreciated. Thanks!

    But I have InDesign documents with sometimes 60-100 buttons in them. Previously I had to do nothing other save out of InDesign as an interactive PDF - perfect, with no editing in Acrobat at all apart from for a couple of document javascripts. It also applies to any interactive element. Buttons that are used for “show/hide” with others to create reveals and builds etc. Buttons that link to other pages within the document.
    InDesign allows master page interactive buttons… make once use many times, Acrobat allows individual and painstaking editing of however many pages and buttons there are in the document, sometimes hundreds.
    The solution is, until Adobe do a decent job of DC to revert to Pro XI and pretend its never happened.

  • Advance to slide with video already playing

    A client wants to be able to advance to a slide with the video already playing, this is for a live presentation, normally done by rolling in video from tape and using switcher to cross fade from text to moving video.
    Any solutions would be appreciated
    Thanks
    mac pro   Mac OS X (10.4.8)  

    Welcome to the discussions, Magneticone.
    If all you want is the equivalent of a crossfade, it can be accomplished quite easily.
    In Keynote, video can play behind other objects, and can be set to play immediately upon slide transition. These two features allow you to emulate a cross-fade.
    Set up the first slide in its final state, and take a screenshot of it at its full-size (100%). Set the transition to the next slide as "None" (the default).
    On the second slide, insert your video file, and set it to play immediately after the slide transition (this is the default). Now, place the screenshot on top of the video image, align it so that it exactly matches the first slide, and give it a Dissolve build out, to run immediately (or with whatever delay you want) after the slide transition.
    What will happen is that the first slide with transition to the second "invisibly", since the same image is on both. Once the second slide appears, the video behind the screenshot will start playing, and the screenshot will then fade to reveal the already-playing video. The effect will be of a slide crossfading with video.
    (As is often the case with Keynote, it is helpful not to first approach presentation problems in terms of actual "slides", but instead in terms of what the effect should be. Many time you can fool the audience into seeing more or fewer "slides" than are actually used in the presentation, and this can make achieving certain effects possible, or easier.)

  • NewBie Q : How to make one clickable shape jump to a slide with the same name of the shape (button c_1 to slide c_1 f.e.) .

    I made some clickable placeholders on a masterslide
    Then : a new slide based on that masterslide
    and want to use one script or shared  action that says "on success jump to another slide with te samen name as the button...)
    Sorry for this unusual semantic language.
    But already thanks for answering!
    Lucas
    PS I'm using a trial version to try out a branched interactive scenario. A choice of a user leads tot anothe slide with a video reaction followed by other choices,...)

    Sorry, but I'm not a native English speaker, and I have some problems with your question.
    The only interactive object that is possible on a master slide is a shape button. What do you mean by a 'clickable placeholder'?  Why I like Shape Buttons - Captivate 6! - Captivate blog  explains possibilities with shape buttons.  Maybe the idea to have such a shape button on a master slide is not the best, because you cannot control objects on master slides since they do not have an ID. You cannot give a name to a shape button on the master slide, which means the scenario you are talking about is just impossible?
    Moreover: Captivate doesn't like to have the same name/label to be used for different objects. There are some exceptions, you can have an advanced action with the same name as the interactive object that is triggering that action, provided you label first the interactive object before labeling the action. With  "script" you probably mean an advanced action?
    If you tried to explain what you want to do as detailed as possible, maybe I could propose something. You'll see that my blog is focussed on advanced and shared actions. One other puzzling sentence is 'same name as the button'? Are you really talking about the name of the button or about the label ON the button?

  • Ipod Touch - turn off slider appears on startup and ipod won't play music

    Hoping someone can shed some light on my problem.
    The two problems I have are:
    1) the red Turn Off slider appears immediately on turning the iPod on
    2) when the play button is hit, it automatically pauses immediately.
    The problems in detail:
    I have a 2nd generation iPod touch that was working fine until I updated to 3.1.2 firmware. It worked fine for a few hours and then the touch screen began behaving weirdly. First, it wouldn't allow me to slide the unlock slider across the screen, and then when it finally would let me, it basically accessed random apps and moved randomly between the app home screens. All of this was jerky and erratic and it looked as if my iPod had gone schizo!
    I took the iPod to a Genius at the Apple Store, but when I arrived the problem had fixed itself (at least, the random accessing of apps etc), but I noticed that on startup, the red turn off slider would appear immediately. After canceling the slider, I went to play some music. Immediately after hitting play, the ipod paused. Repeated attempts yielded the same results. It won't let me press play or listen to any music, regardless of whether it was iTunes purchased, an audiobook, podcast or whatever. You hit the play button, it turns into a pause button for a split second and then reverts back.
    I have tried restoring the iPod a number of times on my computer and other macs (I'm running 10.5.8 OS X and iTunes 9). I have also done a couple of option+restores, having downloaded previous firmware versions (3.0 first, then 2.2.1). Both attempts left me with an error message (20). I am going spare about this and would really appreciate any advice!
    There is one thing that worries me. I have been told by the Genius I spoke with that the moisture indicator inside the headphone jack shows that it has been exposed to water. Would this result in the above described problems? Everything else seems to work fine. I have even managed to get YouTube back after fiddling with the date settings (i.e. setting the date to 2030 and then back). I want to either restore my iPod to a previous firmware version that worked or make the update that I paid for work the way it should!
    I appreciate any suggestions!

    this happened to me. I figgered that after you play apps like games which r side ways causes this for example nba live lite it caused the problem to me same when the slider stays in one spot i see that apps cause this problem. i just figgered it out cause it happens allways after certian game apps or other app. To fix this test all the apps and see and delete the ones which cause this but not all apps which r side ways cause it. I hope this helps

  • COPA Report Layout with Object List (ALV)

    Hi,
    I have question about the COPA report layout with object list (ALV). Everytime I executed the report with ALV format, the amount for quantity column always shows with 3 decimal number, menwhile for amount column always follow by 2 decimal number.
    Can anyone help me regarding this matter? I do not know how to turn off the decimal number to be 0 in this type of layout, although in the form itself I already put 0 decimal number.
    Thanks.

    Hi,
    Better to raise this issue in CO Forum. You can expect some solution.
    regards

  • Ipod touch screen went black and then started flashing. Then the turn off slide comes up.

    Ipod touch screen went black and then started flashing. Then the turn off slide comes up. Restored multiple times and didn't work. Ipod works with Itunes fine (can put music and podcasts on the ipod), but can't take songs off of the ipod. Using windows xp and everything is up to date. Any ideas of how to fix it?

    I didn't know that it was posted three times. My computer didn't say that it posted anything.
    My ipod still syncs to itunes and I can put podcasts and music on my ipod, but I can't delete songs after I put them on the ipod. When I try to delete songs I try to delete it from the main music list on the ipod. It's also doing all the other stuff that I posted before. The screen will go black and then the power off slider thing shows up for a few seconds, then it'll show the unlock slider bar. Then goes black again. It will also do that when I have the ipod unocked and changing songs or playing a game. I've restored it to the factory default/new ipod and it still does the same thing. I've uninstalled and reinstalled itunes and then restored it again to the factory default and it's still doing the same exact thing. I checked and my computer is up to date.

  • Objects in Service Interaction Centre

    Hi CRM gurus,
    I'm working with SAP CRM Service and I should use Objects, but I was not able to create them in the CRM system. I read the documentation provided on the SAP Help, and I understood the conceptual difference which exists between Installed Base, products and objects.
    Nevertheless, actually I'm able to create products with the transaction COMMPR01, and add them to the IBases (IB51 - IB52); but I was not able to create Objects in the CRM system.
    I should use Objects because i need to register the information on
    1) purchase date
    2) serial number
    I should create Objects directly in the CRM system, not in R/3
    Can anybody help me?
    Thanks in advance,
    Andrea Ricci

    Hi,
    I resolved my problem!
    Exaclty, through the transaction SU01 I assigned to my User the Parameter "COMMPR01_IND_OBJ" with value "X", and now I'm able to create objects in the Interaction Centre directly from the New Installed Base creation screen!
    Andrea

  • Why Bother with Objective C?

    Given the tools out there for writing iOS apps in HTML, Jquery, C#, Ruby, etc, including some with generate apps that can run on both Android and iOS,
    why bother writing in Objective C?
    What are the advantages?
    thx         

    red_menace wrote:
    RubyMotion is not a bridge or an interpreter or a wrapper, it is built directly on top of the Objective-C run time, so there isn't really a downside if Ruby is your thing.
    Interesting. Do you know of any similar projects with different languages? RubyMotion looks cool, but only if, as you say, "Ruby is your thing". For me, it is just another syntax. Objective-C is just C with a few "@" characters and a lot of "[]", so why bother? Now if there was a Perl front-end, that would be interesting.
    I found the following list of LLVM front-ends:
    Here is a tutorial on building your own: http://gnuu.org/2009/09/18/writing-your-own-toy-compiler/
    LLVM Projects page has more information: http://llvm.org/ProjectsWithLLVM/
    Now, where am I going to find a BNF for Perl
    PS: Yes, I know about CamelBones. Unfortunately, both the project and its author are no more.
    But to get back to the question of why bother with Objective-C, the answer is clearly the Objective-C runtime. It doesn't turn C into Perl, but it comes quite close. It comes so close that it really isn't worth ones time to bother with Objective-Perl.

  • I have turned PowerPoint slides into a PDF and now want to insert this into a docx packet.  I can't do this.  Help.

    I have turned PowerPoint slides into a PDF and now want to insert this into a docx packet.  I can't do this.  Help.

    Hi leastoners,
    If you're trying to insert a file into a Word document, your best bet is to check the Word online Help. (What you describe sounds like a function of Word, not of Acrobat). I did a quick search and came up with this: Add a PDF to a document - Word. But I'm not sure that's what you're looking for.
    If I misunderstood your request, please let me know and we can take it from there.
    Best,
    Sara

  • DropDownList populated with Objects

    I have the following problem when populating a DropDownList with Objects and then calling getSelected():
    1. Create a new project.
    2. Add options and MyObject to the code:
        private Option[] options;
        public Option[] getOptions() { return options; }
        class MyObject {
            String label;
            public MyObject(String label) {this.label = label;}
            public String toString() {return "from toString():"+label;}
        }3. Initializise the options:
            options = new Option[] {
                new Option(new MyObject("Test1"), "Label1"),
                new Option(new MyObject("Test2"), "Label2")
            };4. Place a DropDownList, a Button and a StaticTextField on the page and reference the options from the DropDownList:
    #{Page1.options}5. Call the getSelected() method on the DropDownList:
        public String button1_action() {
            Object o = this.dropDown1.getSelected();
            if (o instanceof String)
                this.getStaticText1().setValue(o);
            return null;
        }6. When clicking the button it reveals that the getSelected() method is not returning the selected object but the String returned from its toString() method.

    In case you didn't get an answer to this on another thread. I did some checking and it looks like the online help is incorrect. selected() returns a String, not a object per say. that is why it calls the toString() method to get its value. ie,
            if (o instanceof MyObject)
                this.getStaticText1().setValue("its MyObject");does not return a true value, only instanceof String does.
    Hope it helps,
    Lark

  • UI Design help / Slider with multiple thumbs?

    I've got an application which is trying to set multiple bounds
    around a single value. For instance, if my value was "temperature",
    possible bounds might be cold, temperate, hot.
    I want my user to be able to assign all of those ranges.
    My first thought was to use a slider with multiple thumbs. I could
    have 0 and 100 as min and max, say, with 2 sliders. Everything
    to the left of the first slider is "cold", everything between the two
    sliders is "temperate", and everything to the right of the second
    slider is "hot.
    Of course, JSlider does not have support for multiple thumbs.
    So, I was hoping someone could either suggest a freeware/LGPL
    widget that did *or* could propose a clever redesign to obviate
    the need for one.
    In reality, my problem is more complex -- multiple values with
    varying start values, end values, and number of thresholds. I'm
    using multiple sliders right now, and it's functional, but really fugly.
    Thanks for any help you might be able to provide!
    Eric

    Have found this triple slider from Gene Vishnevsky. Needs some work to adapt to your needs :
    * TripleSlider_Test.java
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import javax.swing.*;
    public class TripleSlider_Test extends JFrame {
        public TripleSlider_Test() {
            setTitle("TripleSlider Test");
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setSize(400,300);
            setLocationRelativeTo(null);
            MyTripleSlider slider = new MyTripleSlider();
            add(slider, BorderLayout.NORTH);
        public static void main(String args[]) {
            new TripleSlider_Test().setVisible(true);
        class MyTripleSlider extends TripleSlider{
             * This method is called when the "thumb" of the slider is dragged by
             * the user. Must be overridden to give the slider some behavior.
            public void Motion(){
                // TODO add your handling code here:
    * TripleSlider
    * Description:     Slider with two thumbs that divide the bar
    *   into three parts. Relative size of each part is
    *   the value of that part, so the three values add up to 1.
    * Author: Gene Vishnevsky  Oct. 15, 1997
    * This class produces a slider with 2 thumbs that has 3 values.
    class TripleSlider extends JPanel  {
        private final static int THUMB_SIZE = 14;
        private final static int BUFFER = 2;
        private final static int TEXT_HEIGHT = 18;
        private final static int TEXT_BUFFER = 3;
        private final static int DEFAULT_WIDTH = 300; //200;
        private final static int DEFAULT_HEIGHT = 15;
        /** Array that holds colors of each of the 3 parts. */
        protected Color colors[];
        private boolean enabled=true;
        private Dimension preferredSize_;
        /* this value depends on resizing */
        protected int pixMin_, pixMax_, width_;
        private int pix1_, pix2_;               // pixel position of the thumbs
        private double values[];                    // the 3 values
        /** current font of the labels. */
        protected Font font;
         * Enables/disables the slider.
        public void setEnabled( boolean flag ) {
            enabled = flag;
         * Constructs and initializes the slider.
        public TripleSlider() {
            values = new double[3];
            colors = new Color[3];
            preferredSize_ = new Dimension( DEFAULT_WIDTH,
                    DEFAULT_HEIGHT + TEXT_HEIGHT + TEXT_BUFFER );
            font = new Font("TimesRoman", Font.PLAIN, 12);
            pixMax_ = DEFAULT_WIDTH - THUMB_SIZE - 1;
            pixMax_ = DEFAULT_WIDTH - THUMB_SIZE - 1;
            width_ = DEFAULT_WIDTH;
            resize( width_, DEFAULT_HEIGHT + TEXT_HEIGHT /*�+ TEXT_BUFFER*/ );
            setValues( 0.33333, 0.33333 );
            setColor( 0, Color.blue );
            setColor( 1, Color.green );
            setColor( 2, Color.red );
            addMouseListener(new MouseAdapter() {
                public void mousePressed(MouseEvent evt) {
                    mouseDown(evt);
            addMouseMotionListener(new MouseMotionAdapter() {
                public void mouseDragged(MouseEvent evt) {
                    mouseDrag(evt);
         * Sets color of a part.
        public void setColor( int part, Color color ) {
            colors[part] = color;
         * Returns color of a part.
         * @return current part's color.
        public Color getColor( int part ) {
            return colors[part];
         * This method is called by the runtime when the slider is resized.
        public void reshape( int x, int y, int width, int height ) {
            // setBounds() is not called.
            super.reshape(x, y, width, height);
            width_ = width;
            pixMin_ = THUMB_SIZE;
            pixMax_ = width - THUMB_SIZE - 1;
            // recompute new thumbs pixels (for the same values)
            setValues( values[0], values[1], values[2] );
            repaint();
        private void setValues( double a, double b, double c ) {
            // we know the values are valid
            values[0] = a;
            values[1] = b;
            values[2] = c;
            double total = (double)( width_ - THUMB_SIZE * 4 ); // sum
            pix1_ = (int)(a * total) + THUMB_SIZE;
            pix2_ = (int)(b * total) + pix1_ + THUMB_SIZE * 2;
         * Sets new values of the slider.
         * is 1 - a - b.
        public void setValues( double a, double b ) {
            double sum_ab = a + b;
            if( sum_ab > 1. || sum_ab < 0. ) {
                /* invalid input: should throw exception */
                System.out.println("invalid input");
                return;
            /* call this private method */
            setValues( a, b, 1 - sum_ab );
            repaint();
        private void updateValues() {
            double total = (double)( width_ - THUMB_SIZE * 4 ); // sum
            int a = pix1_ - THUMB_SIZE;
            int b = pix2_ - pix1_ - THUMB_SIZE * 2;
            int c = width_ - (pix2_ + THUMB_SIZE);
            values[0] = (double)a / total;
            values[1] = (double)b / total;
            values[2] = (double)c / total;
         * Returns value for a part.
         * @return value for the part.
        public double getValue( int part ) {
            return values[part];
         * This method is called when the "thumb" of the slider is dragged by
         * the user. Must be overridden to give the slider some behavior.
        public void Motion() {
         * Paints the whole slider and labels.
        public void paint( Graphics g ) {
            int width = size().width;
            int height = size().height;
            g.setColor( Color.lightGray );          // bground
            g.fillRect( 0, 0, width, TEXT_HEIGHT );
            g.setColor( colors[0] );
            g.fillRect( 0, TEXT_HEIGHT,
                    pix1_ - THUMB_SIZE, height - TEXT_HEIGHT );
            g.setColor( colors[1] );
            g.fillRect( pix1_ + THUMB_SIZE, TEXT_HEIGHT,
                    pix2_ - pix1_ - THUMB_SIZE * 2, height - TEXT_HEIGHT );
            g.setColor( colors[2] );
            g.fillRect( pix2_ + THUMB_SIZE, TEXT_HEIGHT,
                    width_ - pix2_ - THUMB_SIZE, height - TEXT_HEIGHT );
            /* draw two thumbs */
            g.setColor( Color.lightGray );
            g.fill3DRect( pix1_ - THUMB_SIZE, TEXT_HEIGHT /*+ BUFFER*/,
                    THUMB_SIZE * 2 + 1, height /*- 2 * BUFFER*/ - TEXT_HEIGHT,
                    true);
            g.fill3DRect( pix2_ - THUMB_SIZE, TEXT_HEIGHT /*+ BUFFER*/,
                    THUMB_SIZE * 2 + 1, height /*- 2 * BUFFER*/ - TEXT_HEIGHT,
                    true);
            g.setColor( Color.black );
            g.drawLine(pix1_, TEXT_HEIGHT + BUFFER + 1,
                    pix1_, height - 2 * BUFFER);
            g.drawLine(pix2_, TEXT_HEIGHT + BUFFER + 1,
                    pix2_, height - 2 * BUFFER);
            g.setFont(font);
            // center each value in the middle
            String str = render( getValue(0) );
            g.drawString(str,
                    pix1_ / 2 - (int)(getFontMetrics(font).stringWidth(str) / 2),
                    TEXT_HEIGHT - TEXT_BUFFER);
            str = render( getValue(1) );
            g.drawString(str,
                    (pix2_ - pix1_ ) / 2 + pix1_ -
                    (int)(getFontMetrics(font).stringWidth(str) / 2),
                    TEXT_HEIGHT - TEXT_BUFFER);
            str = render( getValue(2) );
            g.drawString(str,
                    (width_ - pix2_ ) / 2 + pix2_ -
                    (int)(getFontMetrics(font).stringWidth(str) / 2),
                    TEXT_HEIGHT - TEXT_BUFFER);
        private String render(double value){
            DecimalFormat myF = new DecimalFormat("###,###,###.#");
            return myF.format(value);
         * An internal method used to handle mouse down events.
        private void mouseDown(MouseEvent e) {
            if( enabled ) {
                HandleMouse((int)e.getPoint().getX());
                Motion();
         * An internal method used to handle mouse drag events.
        private void mouseDrag(MouseEvent e) {
            if( enabled ) {
                HandleMouse((int)e.getPoint().getX());
                Motion();
         * Does all the recalculations related to user interaction with
         * the slider.
        protected void HandleMouse(int x) {
            boolean leftControl = false;
            int left = pix1_, right = pix2_;
            int xmin = THUMB_SIZE;
            int xmax = width_ - THUMB_SIZE;
            // Which thumb is closer?
            if( x < (pix1_ + (pix2_ - pix1_) / 2 ) ) {
                leftControl = true;
                left = x;
            } else {
                right = x;
            /* verify boundaries and reconcile */
            if( leftControl ) {
                if( left < xmin ) {
                    left = xmin;
                } else if( left > (xmax - THUMB_SIZE*2) ) {
                    left = xmax - THUMB_SIZE*2;
                } else {
                    if( left > (right - THUMB_SIZE * 2) && right < xmax ) {
                        // push right
                        right = left + THUMB_SIZE * 2;
            } else {
                // right control
                if( right > xmax ) {
                    right = xmax;
                } else if( right < (xmin + THUMB_SIZE*2) ) {
                    right = xmin + THUMB_SIZE*2;
                } else {
                    if( right < (left + THUMB_SIZE * 2) && left > xmin ) {
                        // push left
                        left = right - THUMB_SIZE * 2;
            pix1_ = left;
            pix2_ = right;
            updateValues();
            repaint();
         * Overrides the default update(Graphics) method
         * in order not to clear screen to avoid flicker.
        public void update( Graphics g ) {
            paint( g );
         * Overrides the default preferredSize() method.
         * @return new Dimension
        public Dimension preferredSize() {
            return preferredSize_;
         * Overrides the default minimumSize() method.
         * @return new Dimension
        public Dimension minimumSize() {
            return preferredSize_;
    }

Maybe you are looking for

  • Authorization issue in Info spoke

    Hi all, I am facing some authorization issue when executing info spoke in process chain. Info spoke is working fine in direct Scheduling (both background and Dialog). Am getting this error after execution of process chain "System error: RSDRC / FORM

  • Printer says offline,cannot print

    Printer ran out of ink. Bought more and installed. Printed off required documents. Next day went to my online work, tried to print my documents. Nothing happens. Went to My Computer, says printer offline. My son,who is a university student and tech g

  • Apple Apps like Weather, the App Store and even the Facebook App don't work on WIFI

    Since a few days all my apple apps (Itunes, AppStore, Weather) don't work via Wifi. The strange thing is that all other apps work without problems (just Facebook and Youtube don't view profile pictures). Via 3G all apps work without any problems. I j

  • Quicktime X issues

    I recently upgraded to Snow Leopard, and since then iTunes and all of my iWork programs are crashing at launch. I finally figured out last night that my Quicktime is faulty, as well. I'm sure this is why iTunes won't open, but not sure if that also h

  • TL11g & EJB3: One-to-Many problems with removing entity from list

    Hi, I posted this problem on JDev11g forum, but I hope I will get some information here as well. I have two entities based on tables in HR schema (Departments and Employees). Department has a list of employees. These are the annotations: @Entity publ