Determine which button is clicked

I am creating the download buttons on my page dynamically and I am assigning the name also dynamically attaching the counter with the name. Now On form post, i want to know which button( button at which counter ) was being pressed. Could u help me on this.

Use request.getParameterNames( ) to get an enumeration of all the names passed by the form. You can then go through the list and determine which button was pressed since the name of that button would be passed along.
If you are uncomfortable with using the enumeration technique, do a request.getParameter( button_name ) for each button and check whether you get a null value which implies the button wasn't pressed, or the counter value, which implies the button was pressed. If you have a lot of buttons, this results in some redundant code, but if you have only one or three, then this is probably an ok way to do it.

Similar Messages

  • How can I determine which image was clicked in 3D carousel?

    I have been modifying some 3D carousel code that I found in hopes that I can get it such that when image "resolv2.jpg" (or any of my other images) is clicked on at the front of my carousel, it goes to a specific webpage. By just replacing "moveBack(event.target) from the toggler section of the code with "navigateToURL:(newURLRequest('http://google.com'), the target DOES sucessfully go to google when clicked on. However, I want to modify this code by altering the else statement to say something to the effect of "else if event.target (clicked on object) is 'resolv2.jpg' THEN go to google". So essentially, my question is how can I determine which image was clicked? Here is the entire code with the area I was altering bolded:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" applicationComplete="init();" backgroundGradientColors="[#000033, #000033]" backgroundGradientAlphas="[1.0, 1.0]">
    <mx:Script>
              <![CDATA[
    //Import Papervision Classes
                   import org.papervision3d.scenes.*;
                   import org.papervision3d.cameras.*; 
                   import org.papervision3d.objects.*;
                   import org.papervision3d.objects.primitives.*;
                   import org.papervision3d.materials.*;
                   import org.papervision3d.materials.shadematerials.*;
                   import org.papervision3d.materials.utils.MaterialsList;
                   import org.papervision3d.lights.*;
                   import org.papervision3d.render.*;
                   import org.papervision3d.view.*;
                   import org.papervision3d.events.*;
                   import org.papervision3d.core.*;
                   import org.papervision3d.lights.PointLight3D;
                   import flash.filters.DropShadowFilter;
                         import caurina.transitions.*;
                         private var numOfItems:int = 5;
                         private var radius:Number = 600;
                         private var anglePer:Number = (Math.PI*2) / numOfItems;
                         //private var dsf:DropShadowFilter = new DropShadowFilter(10, 45, 0x000000, 0.3, 6, 6, 1, 3);
                   public var angleX:Number = anglePer;
             public var dest:Number = 1;
                   private var theLight:PointLight3D;
            //Papervision Engine
                   private var viewport:Viewport3D; 
                   private var scene:Scene3D; 
                   private var camera:Camera3D;
                   private var renderer:BasicRenderEngine;
             private var planeArray:Array = new Array();
             [Bindable]
             public var object:Object;
             private var arrayPlane:Object;
             private var p:Plane;
             //Initiation function           
             private function init():void 
             viewport = new Viewport3D(pv3dCanvas.width, pv3dCanvas.height, false, true); 
             pv3dCanvas.rawChildren.addChild(viewport); 
             viewport.buttonMode=true;
             renderer = new BasicRenderEngine();
             scene = new Scene3D(); 
             camera = new Camera3D();
             camera.zoom = 2; 
             createObjects(); 
             addEventListeners();
    //Create Objects function          
              private function createObjects():void{
              for(var i:uint=1; i<=numOfItems; i++)
                        /* var shadow:DropShadowFilter = new DropShadowFilter();
                        shadow.distance = 10;
            shadow.angle = 25; */
                        var bam:BitmapFileMaterial = new BitmapFileMaterial("images/resolv"+i+".jpg");
                        bam.oneSide = false;
                        bam.smooth = true;
            bam.interactive = true;
                        p = new Plane(bam, 220, 200, 2, 2);
                        p.x = Math.cos(i*anglePer) * radius;
                        p.z = Math.sin(i*anglePer) * radius;
                        p.rotationY = (-i*anglePer) * (180/Math.PI) + 270;
                        scene.addChild(p);
                        //p.filters=[shadow];
                        p.extra={pIdent:"in"};
                        p.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, toggler);
            planeArray[i] = p;
              // create lighting
            theLight = new PointLight3D();
            scene.addChild(theLight);
            theLight.y = pv3dCanvas.height;
              private function toggler(event:InteractiveScene3DEvent):void
                            // if the cube's position is "in", move it out else move it back
                            if (event.target.extra.pIdent == "in")
                                    moveOut(event.target);
                            else
                                   moveBack(event.target);
                    private function moveOut(object:Object):void
                              trace(object +" my object");
                            // for each cube that was not selected, remove the click event listener
                            for each (var arrayPlane:Object in planeArray)
                                    if (arrayPlane != object)
                                            arrayPlane.removeEventListener(InteractiveScene3DEvent.OBJECT_PRESS, toggler);
                            //right.enabled=false;
                            //left.enabled=false;
                            // move the selected cube out 1000 and rotate 90 degrees once it has finished moving out
                            Tweener.addTween(object, {scaleX:1.2, time:0.5, transition:"easeInOutSine", onComplete:rotateCube, onCompleteParams:[object]});
                            Tweener.addTween(object, {scaleY:1.2, time:0.5, transition:"easeInOutSine", onComplete:rotateCube, onCompleteParams:[object]});
                            // set the cube's position to "out"
                            object.extra = {pIdent:"out"};
                            // move the camera out 1000 and move it the to same y coordinate as the selected cube
                            //Tweener.addTween(camera, {x:1000, y:object.y, rotationX:0, time:0.5, transition:"easeInOutSine"});
                    private function moveBack(object:Object):void
                            // for each cube that was not selected, add the click event listener back
                            for each (var arrayPlane:Object in planeArray)
                                    if (arrayPlane != object)
                                            arrayPlane.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, toggler);
                            // move the selected cube back to 0 and rotate 90 degrees once it has finished moving back
                            Tweener.addTween(object, {scaleX:1, time:0.5, transition:"easeInOutSine", onComplete:rotateCube, onCompleteParams:[object]});
                            Tweener.addTween(object, {scaleY:1, time:0.5, transition:"easeInOutSine", onComplete:rotateCube, onCompleteParams:[object]});
                            // set the cube's position to "in"
                            object.extra = {pIdent:"in"};
                            // move the camera back to its original position
                            //Tweener.addTween(camera, {x:0, y:1000, rotationX:-30, time:0.5, transition:"easeInOutSine"});
                            //right.enabled=true;
                            //left.enabled=true;
                    private function goBack():void
                            // for each cube that was not selected, add the click event listener back
                            for each (var arrayPlane:Object in planeArray)
                                    if (arrayPlane != object)
                                            arrayPlane.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, toggler);
                    private function rotateCube(object:Object):void
                            //object.rotationX = 0;
                            //Tweener.addTween(object, {rotationZ:0, time:0.5, transition:"easeOutSine"});
              private function addEventListeners():void{
        this.addEventListener(Event.ENTER_FRAME, render);
    //Enter Frame Listener function             
    private function render(e:Event):void{ 
                     renderer.renderScene(scene, camera, viewport);
                     camera.x = Math.cos(angleX) * 800;                                                  
                     camera.z = Math.sin(angleX) * 800;
    private function moveRight():void
              dest++;
              Tweener.addTween(this, {angleX:dest*anglePer, time:0.5});
              //goBack();
    private function moveLeft():void
              dest--;
              Tweener.addTween(this, {angleX:dest*anglePer, time:0.5});
              //goBack();
              ]]>
    </mx:Script>
              <mx:Canvas width="1014" height="661">
              <mx:Canvas id="pv3dCanvas" x="503" y="20" width="400" height="204" borderColor="#110101" backgroundColor="#841414" alpha="1.0" backgroundAlpha="0.57"> 
              </mx:Canvas>
              <mx:Button x="804" y="232" label="right" id="right" click="moveRight(),goBack()"/>
              <mx:Button x="582" y="232" label="left"  id="left"  click="moveLeft(),goBack()" />
              </mx:Canvas>
    </mx:Application>

    Your answer may be correct, but I am very much a beginner to actionscript, and I was wondering moreso if it is possible to determine the root/url (i.e. images/resolv2.jpg)? Or even if InteractiveScene3DEvent calls a variable that holds this url? However, specifically, I'm just wondering if the actionscript itself could determine the url in a line of code such as "if object == BitmapFileMaterial("/images/resolv2.jpg"); "? Also, here's a copy of InteractiveScene3DEvent in more detail if you think that will help:
    public class InteractiveScene3DEvent extends Event
                         * Dispatched when a container in the ISM recieves a MouseEvent.CLICK event
                        * @eventType mouseClick
                        public static const OBJECT_CLICK:String = "mouseClick";
                         * Dispatched when a container in the ISM receives an MouseEvent.MOUSE_OVER event
                        * @eventType mouseOver
                        public static const OBJECT_OVER:String = "mouseOver";
                         * Dispatched when a container in the ISM receives an MouseEvent.MOUSE_OUT event
                        * @eventType mouseOut
                        public static const OBJECT_OUT:String = "mouseOut";
                         * Dispatched when a container in the ISM receives a MouseEvent.MOUSE_MOVE event
                        * @eventType mouseMove
                        public static const OBJECT_MOVE:String = "mouseMove";
                         * Dispatched when a container in the ISM receives a MouseEvent.MOUSE_PRESS event
                        * @eventType mousePress
                        public static const OBJECT_PRESS:String = "mousePress";
                         * Dispatched when a container in the ISM receives a MouseEvent.MOUSE_RELEASE event
                        * @eventType mouseRelease
                        public static const OBJECT_RELEASE:String = "mouseRelease";
                         * Dispatched when the main container of the ISM is clicked
                        * @eventType mouseReleaseOutside
                        public static const OBJECT_RELEASE_OUTSIDE:String = "mouseReleaseOutside";
                         * Dispatched when a container is created in the ISM for drawing and mouse interaction purposes
                        * @eventType objectAdded
                        public static const OBJECT_ADDED:String = "objectAdded";
                        public var displayObject3D                                        :DisplayObject3D = null;
                        public var sprite                                                            :Sprite = null;
                        public var face3d                                                            :Triangle3D = null;
                        public var x                                                                      :Number = 0;
                        public var y                                                                      :Number = 0;
                        public var renderHitData:RenderHitData;
                        public function InteractiveScene3DEvent(type:String, container3d:DisplayObject3D=null, sprite:Sprite=null, face3d:Triangle3D=null,x:Number=0, y:Number=0, renderhitData:RenderHitData = null, bubbles:Boolean=false, cancelable:Boolean=false)
                                  super(type, bubbles, cancelable);
                                  this.displayObject3D = container3d;
                                  this.sprite = sprite;
                                  this.face3d = face3d;
                                  this.x = x;
                                  this.y = y;
                                  this.renderHitData = renderhitData;
    Thank you so much!

  • How to identify which button is clicked in an action

    Hi,
    I am just checking whether it is possible to build calculator or not in webdynpro for abap.
    I have some buttons and i have associated same action for all the buttons and in that action i would like to know which button is clicked.
    Please let me know the code for that
    Thanks
    Bala Duvvuri

    Hi Bala,
    Its possible. Just go to the action handler for the button & read the attribute ID of the WDEVENT which is passed by the framework. This id will contain the id of the button which triggered the event. Consider the code fragment below:
    method ONACTIONACTION .
        DATA:  lv_button_name type string.
        lv_button_name = wdevent->get_string( name = 'ID' ).
    endmethod.
    At the end of execution lv_button_name will have the ID of the button which triggered the event.
    Regards,
    Uday

  • Which button is clicked?

    hello,
    I have a an array of buttons, which has 20 buttons.
    How can I know which button is clicked inside actionPerformed method.
    THANKS
    Chamal.

    Search for the Java Tutorial and carefully read the section on event listeners. You can find lots of sample code there.
    Basically, you can branch on action commands (typically the label on the button) or event sources (a reference to the object which fired the event). The second method is preferrable to the first, particularly with regard to internationalized applications.

  • How can I find which button is clicked?

    I have two buttons on my page.Is there any way so that I can find which button is clicked in my JSP page?I do not know javascript I tried to pass a parameter by url rewriting through a Javascript function to another page.
    But it did not work? how can I do this?
    Can I return a parameter from javascript to a JSP page?
    Plz help me
    Thanks in advance
    Amit Varshney

    If you give the submit button a "name" attribute, the name of the button you pushed will come through as a parameter, along with its "value" (the text on the button)
    ie
    // in your jsp page
    <input type='submit' name='button1' value='FromB1'>
    <input type='submit' name='button2' value='FromB2'>
    // in your servlet code...
    boolean b1Pressed = request.getParameter("button1") != null;
    boolean b2Pressed = request.getParameter("button2") != null;

  • How to determine wich button is clicked?

    ... and so on. If you have the time the whole thing is
    downloadable
    here.. Greetings
    from Sweden. Here's some of the code...

    that is very easy to do that.
    First u assign a separate variable for each button (or) keep
    an array where its length is total no of buttons instead of
    variables.Store 0 as values for all buttons.
    When one button is clicked make the index for that button to
    1 and if another button is clicked make the index for that button
    to 1 and remaining values to 0.
    So,write a function to check the values in array and if 1 is
    there change the color of that button to grey and other buttons to
    black.
    Try this and tell me whether it works or not.

  • Trying to get a movie clip to go both up and down depending on which button gets clicked

    hello,
    I have a file with 5 movie clips in it. I have a button that when clicks, plays each one. One of the movie clips needs to move both up and down and I am having a lot of trouble with this.
    stop();
    function showVenue(Event:MouseEvent):void
              mc_speaker.play();
    function showSpeaker(Event:MouseEvent):void
              mc_compliance.play();
    function showCompliance(Event:MouseEvent):void
              mc_strategic.play();
              mc_data.play();
    function showStrategic(Event:MouseEvent):void
              mc_data.gotoAndPlay("down");
    function showData(Event:MouseEvent):void
              mc_data.gotoAndPlay("up");
    btn_viewMore_Venue.addEventListener(MouseEvent.CLICK, showVenue);
    btn_viewMore_Speaker.addEventListener(MouseEvent.CLICK, showSpeaker);
    btn_viewMore_Complinace.addEventListener(MouseEvent.CLICK, showCompliance);
    btn_viewMore_Strategic.addEventListener(MouseEvent.CLICK, showStrategic);
    btn_viewMore_Data.addEventListener(MouseEvent.CLICK, showData);
    Is there anyway to attach my file here for someone to look at???
    thanks!
    babs

    Well, on the mc_data movie clip, I had the animation going up and down with stop actions to stop it. so I put labels on those areas and tried to just control it that way. Seemed simple enough, but not working.
    I really don't know how to control the toggle up and down in AS without using the timeline....just trying to help a friend, and ready to scream..I thought this would be so simple...
    would be easier to explain if I could show you a dummy file...but I still don't see an attach button????

  • Knowing which button is clicked

    i have code that creates button objects ,stores them in array
    and adds action listeners as follows.i want to code clickstart such
    that i can change the label of the clicked button.
    var buttonlist=new Array();
    for(var i:int=0;i<10;i++){
    mybutton=new Button();
    mybutton.x=10;
    mybutton.y=10+50*i;
    mybutton.width=50;
    mybutton.height=50;
    mybutton.label="no:"+i;
    mybutton.addEventListener(MouseEvent.CLICK,clickStart)
    mycanvas.addChild(mybutton);
    buttonlist.push(mybutton);
    thank you

    Try this:
    private function clickStart(evt:MouseEvent):void {
    evt.currentTarget.label = "some new label";
    Vygo

  • Which row was clicked in an SQL Query (updateable report)?

    I have an application with a report based on an SQL Query (PL/SQL function ...) defined on the Global Page.
    On the pages where the report is used, I want to click in a particular column (TCKT_ID) and pass the values in that row to another page for processing.
    Things I would like to know:
    1) How to determine which row was clicked?  The column is TCKT_ID and it is used as a link to another page.  The SQLis a non-trivial (for me!) join of tables.
    2) How to refer to the values of the other columns in that row?  Because I format with "div," the columns are named -- no "f02", "f03", etc.
    3) How to pass multiple values (ENAME, JOB, MGR, SAL, COMM) to the target page?  You might ask: Why not just re-query for the data using a unique key.  Splendid idea, but the unique key is four columns so I still need some way to pass these four values to have that unique key.
    I've constructed a "pretty close" example of the situation here:
    WS APEX_EXAMPLES_01
    demo / demo
    Application: Row Info  10782  - Page 0 has the report.  Page 1 displays it with a link (in red) to page 2.
    I think I can complete most of what I need if someone can just show me how to get, say, the ENAME of the row clicked on page 1, so I can use it to filter the query on page 2 to just this row clicked on page 1.
    Using <tt> </tt>, I tried to display the actual row from View -- Source of the real report I'm dealing with but it just comes out like this
    M - F
    MM_O_BD_DAILY.ctl (ftp D046)CMM_O_BD_DAILY.sh (ftp D046)17:15
    10JUN13 17:00:52
    10JUN13 17:00:53
    17:15
    10JUN13 17:00:52
    10JUN13 17:00:53
    17:00
    10JUN13 17:00:59
    10JUN13 17:01:00
    Y
    ARS003_TESTNBD

    I wonder if I'm not understanding something. This seems like a very simple thing to do without any "tricks"
    Take a look, I've modified the LINKING_NUMBER column on the p0 report.
    Basically, you just specify the fields you want to populate and their assignments.  I added 4 destination fields on p2 to receive the assignments.  Then you can do anything you want with them like modifying a report, etc...
    The only trick here is that in order to pass more than 3 items in the URL you need to change your link type from Page in this application to URL.  Then you can specify lost of items this way.
    Thanks
    -Jorge

  • Making a text field required when a radio button is clicked

    Hello all, I am very new to designing PDF forms, and I want to implement this requirement but have no idea how to go about doing it. I am designing an order form, and in a few different sections of the form are text fields that I want to be required, but only if a certain radio button on the form is clicked. So for example, I have a radio button group on the page consisting of two buttons, and then immediately to the right is a text field. If the user selects button 1, the text field is not required, but if they select button two, the text field is required. How do I implement this? I am using Livecycle ES3. And when I say required, I am referring to the field value/property of "User Entered - Required". Also, I cannot accomplish this by hiding and unhiding the field depending on which button is clicked, as this form will also be printed and filled out by hand, so all fields must be visible at all times. This form does have a submit by e-mail button and that is how it will be used primarily.
    Also, I have searched around the forums a bit, and have tried some Javascript I have found, tying it to a mouseup event on the radio button, for example "getField("Text1").required = (getField("Radio1").value == "Yes");" and "getField("Text1").required = true;" with the names changed for my fields, but no matter what I try it has no effect
    Thanks!

    i hope this helps u.You can always optimize tht code a bit more , it's coded roughly but it works.
    <html>
    <head>
    <script>
    var cursel='r1';
    function radioClick(x)
         if(cursel!=x)
              cursel=x;
         if(cursel=='r2')
              var z=document.getElementById('mydiv');
              mydiv.innerHTML='<input type=text name=ss size=20/>';
              mydiv.style.display='inline';
         else
              var z=document.getElementById('mydiv');
              mydiv.innerHTML='';
              mydiv.style.display='inline';
    </script>
    </head>
    <body>
    <form>
    <input type=radio name=rtt onClick="radioClick('r1');" checked />Radio 1
    <br>
    <input type=radio name=rtt  onClick="radioClick('r2');"/>Radio 2
    <br>
    <div id=mydiv></div>
    </form>
    </body>
    </html>

  • Servlet: How do I know which button was pushed?

    Hi All,
    I have a web page that has two buttons on it, one to log out and to other to retrieve items (HTML is below). I have a servlet that receives the HTTP Respone/Request and passes the Config and Request to an BasicHandlerManager class that will look to see which button was pushed and then perform an action based on the button that was pushed. Well, in the BasicHandlerManager class I do not know how to determine which button on the web page was pushed. How do I determine that? I've found that they 'if' and 'else if' that contains the "Logout" and "Retrieve" always executes the 'if' statement and never the 'else if'. When I swap the "Logout" and "Retrieve" that are in the 'if' 'else if' statement it will still execute the 'if' and not the 'else if'. So, how do I determine which of the 2 buttons was pushed on the web page?
    Here's my HTML and some code from the BasicHandlerManager.
    Thanks for your help.
    HTML Code:
    <INPUT TYPE="HIDDEN" NAME="requestID" VALUE="HOMEPAGE">
    <INPUT TYPE="SUBMIT" NAME="Retrieve" VALUE="Retrieve">
    <INPUT TYPE="SUBMIT" NAME="Logout" VALUE="Logout">
    BasicHandlerManager Class:
    BasicHandler handler = null;
    if (request != null)
        String strRequestID = request.getParameter("requestID");
            if (strRequestID != null)
                if (strRequestID.equals("LOGIN"))
                    handler = new AccountDelegate(config);
                else if (strRequestID.equals("HOMEPAGE"))
                    if (request.getParameter("Logout").equals("Logout"))
                        handler = new Logout(config);
                    else if (request.getParameter("Retrieve").equals("Retrieve"))
                        handler = new ProductDelegate(config);
                if (handler == null)
                    handler = new DefaultHandler(config);
            } // end if (strRequestID != null)
    } // end if (request != null)
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    First change your buttons so they have the same name
    thus
    <INPUT TYPE="HIDDEN" NAME="requestID" VALUE="HOMEPAGE">
    <INPUT TYPE="SUBMIT" NAME="Retrieve" VALUE="Retrieve">
    <INPUT TYPE="SUBMIT" NAME="Logout" VALUE="Logout">
    becomes
    <INPUT TYPE="HIDDEN" NAME="requestID" VALUE="HOMEPAGE">
    <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Retrieve">
    <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Logout">
    Now in your servlet you will want something akin to the following.
         public void performTask(
              HttpServletRequest request,
              HttpServletResponse response)
              throws ServletException, IOException {
              String action = request.getParameter("SUBMIT") ;
              if( "Retrieve".equals(action) ){
                   //     Perform whatever operation needs to be done on Retrieve
              else if( "Logout".equals(action) ){
                   //     Perform whatever operation needs to be done on Logout
              else {
                   //     Perform whatever operation needs to be done if all else fails
         }By giving your buttons different names, which seems like a really good idea at the outset, you give them different parameter names in the request which A) takes up more space in the request and B) means you have to check both parameters. These are essentially the same action (Submitting) so you use the Value to retrieve the action indicated by the button.
    Regards,

  • How to get a node  in a Jtree on which right mouse button is clicked

    I am dealing with a situation in which whenever tree component is clicked by right mouse button I am needed to get the tree node on which right mouse button was clicked.

    MouseEvent e = ...
    TreePath path = tree.getPathForLocation(e.getX(), e.getY());
    Object nodeClickedOn = path.getLastPathComponent();Or something along those lines.

  • What's the best way to determine which row a user clicked on via a link?

    Hello. Probably simple question, but my googleing is failing me. I have a table, with a column that is a command link. How can I determine which row the user clicked on? I need to take that value, and pass it to a different page to bind it for a different query. I was thinking of setting the result in a session bean? Or is there a better way?
    Thanks!

    Hi,
    You have two options:
    1. (Complex) Have your ActionListener evaluate the event to get the source, then climb the component tree up to the table and get the current row data;
    2. (Simple) Add a setPropertyActionListener to the link with value="#{var}" target="#{destination}" where var is the table's var attribute value and destination is your managed bean that required the clicked row.
    Regards,
    ~ Simon

  • How  can i determin which tab has been clicked??

    hi there
    how do i determine which one of the tabs in a tabbedPane has been clicked? do i add ActionListener to the tabbedPane or its sub JPanel?

    I import them all, it finallly compiled, but I am not sure if they are ok. here is the codes
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    TabbedPane = new JTabbedPane();
    TabbedPane.addTab("Easy", easyTab);
    TabbedPane.addChangeListener(new ChangeListener()
    public void stateChanged( ChangeEvent ce )
    Object source = ce.getSource();
    if (source == "Easy")
    currentTab = "easy";
    does it look all right to you?

  • Friend help me to fix my laptop and runing the program Piriform CCleaner and is finish but which button should I click - Analyze or Run Cleaner

    Need a big help!! A Friend help me to fix my laptop and runing the program Piriform CCleaner and is finish but which button should I click - Analyze or Run Cleaner

    Laptop? this is the ipad forum.
    Is your laptop a macbook? If so I can have the hosts move your post there
    But for specific info about a non-apple program, the best place to look is on the site for the program you're using, In your case Piriform's site.

Maybe you are looking for

  • Cannot connect to wifi network

    I've seen other folks discussing issues with Wifi connectivity in Mavericks, but can't find a specific answer to my problem - hopefully somebody can chime in. I recently purchased a (refurbished) 15" retina Macbook Pro, Mid-2012 model.  It came with

  • Using iMac with KVM switch

    Hello -- Can someone tell me if I purchased a new iMac with either the corded or cordless keyboard, could I hook up the keyboard, mouse, and monitor to a KVM switch and use the keyboard, mouse, and monitor with a PC? The KVM switch uses USB for the k

  • 64-Bit Vista RC1 - Video no worky

    Anybody know how to get the video working with Vista x64? The video stays in VgaSave mode with these conflicts: Input/Output Range 03B0 - 03BB used by: Intel(R) 5000X Chipset PCI Express x16 Port 4-7 - 25FA Input/Output Range 03C0 - 03DF used by: Int

  • Duet workflow configeuration

    Hi, We have configured duet workflow & implement a simple test workflow to test the same. After executing the workflow and the scheduled programs we get the following error in slg1 : Exception of type CX_SY_REF_IS_INITIAL has occurred. See details fo

  • Flvplayer.dmg hidden in my trash is this a virus?

    My macbook started acting very strangely such as having lots of adverts and unwanted pages opened, however decided to read a little about it from mac support and running the adwareMedic so it was very helpful i also decided to run avast mac security