Hyperlink buttons with click-animation

Hi there!
Is there a way to create buttons with "click-animations". I use images as buttons, which have transparent hyperlinks above so when the user taps on it he gets to next page or wherever.
Unfortunately, this solution is not very nice if there isn´t any feedback from the button...
I hope someone has a solution.

Hello again - I've a solution.
The Pop-Over widget has exactly the kind of bottonfeedback I´m looking for so I tried to take advantage of this.
This is what I did:
1.     First I used the Pop-Over widget as usual, with the image of the button I want.
2.     Then I put the hyperlink on top of it and change the hyperlink opacity to 0%.
3.     The scrolling region of the Pop-Over widget remains empty.
4.     Now I set the opacity of the scrolling region to 0%.
If I tap the Button now on the iPad I get to the desired page AND there is the wonderful tapping feedback from the button caused by the Pop-Over widget.
5.     The final little Problem to solve: The Pop-Over widgets scrolling region is highlighted with a shadow, wich is just visible if you tap the widget. If the opacity of the scrolling region is set to 0% the shadow unfortunately remains visible. You can´t see it here in the picture - it´s only if you tap the button.
But as you can see - there is an option to turn off this shadow and it is disabled. I tried for hours but I didn´t find any possibility to enable the option that disables the shadow.
At the moment it disturbs only a little, because I get linked quickly to another page. Further you almost don´t see the shadow if the background is dark but you see it if there´s a bright background. But in an eBook you perhaps pay for, nobody wants to see a shadowbug.
So, anybody has an idea now how to disable the shadow of the Pop-Over widgets srolling region?

Similar Messages

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Symbol with 3 animations controlled by buttons elements within

    alright this thing is bugging the crap out of me.
    I have a symbol (top_nav) with elements inside that will be buttons on click (quad1, quad2, juggle_logo_nav)
    each button moves to a point when clicked and then I need it to move back on a seperate click.
    I have my animations on the same timeline which I thought would make it easier but I guess not.
    I will also be doing this with 2 other symbols (bottom_nav, and slide_right_left) so I need to figure this out. I have spent way to much time creating and trashing this thing. Help
    Here is the flle. https://www.box.com/shared/static/i3lx4xwlaad35ery0ki1.zip

    Hello John,
    Okay, the two ways that I'd approach something like this would be either creating a state machine where you set a variable that you check later to see if the button's been clicked, and then use a conditional to perform the correct action based upon the value of the variable and then give it a new state value (not too complex an approach, but lots of code), or simpler and probably just as effective, use getPosition() to get the current time of the playhead, and then use a conditional to perform the correct action based upon the time in milliseconds derived from getPostion(). Here's some code that you could put on the click event of your button (everything with a double forward slash is a comment, but the lines starting with sym can be uncommented (remove the double slash) and used if necessary:
    var getPosition = sym.getPosition();
    if (getPosition < 1) {
              sym.play();
             // you can also use getSymbol to play other symbols, like the following:
              // sym.getParentSymbol().getSymbol("mySymbol").play();
    } else {
              // assuming you want to play it in reverse back to the last label/trigger
              sym.playReverse();
              // or you could just jump there, like so:
              // sym.stop(0);
    But - looking at how you've set up your animation, it looks like you've already done the reverse animation and you're using triggers to control it - which makes getPosition() a bit of overkill. That's fine, and makes it even easier. So instead of using sym.play(0) as you did in juggle_logo_nav, you could just use sym.play() to advance to the next trigger with the stop action and play the reverse animation. To play symbols outside of the symbol containing the button, reference the sym.getParentSymbol().getSymbol() code above and add it to your code, using your symbol name of course. That would look something like this:
    sym.play();
    sym.getParentSymbol().getSymbol("slide_right_left").play();
    If you want to do any interactivity in Animate, I highly recommend you refer to our Javascript API, which explains all the available commands you can use, with examples of how to use them:
    http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html
    hth,
    Joe

  • [VB CS5] Adding buttons with page hyperlinks (hyperlinkpagedestinations)

    Hi people.
    I'm trying to add buttons with a script that link to pages.
    I have got this far but the documentation is sparse and i can't find a solution.
    My code so far
    REM====Initiliasing
    Set myInDesign = CreateObject("InDesign.Application")
    Set myDocument = myInDesign.Documents.Item(1)
    Set myPage = myDocument.Pages.Item(1)
    REM====Adding the button
    Set but = myDocument.Pages.Item(1).Buttons.Add
    but.GeometricBounds = Array(0,0,25,25)
    but.select()
    REM==== Adding the hyperlink
    set my_hyperlink = myDocument.hyperlinkPageDestinations.add(myDocument.Pages.Item(232))
    Creates the button ok, seems to create the hyperlink ok. That hyperlink should go to page 232.
    How do you add the hyperlink to the button so the button goes to page 232 when clicked?

    Ok i'm just going to go ahead and answer my own question.
    Seems you can't add it to a button but can add the hyperlink to a rectangle and it works.
    So the correct code looks like this
    Set myInDesign = CreateObject("InDesign.Application")
    Set myDocument = myInDesign.Documents.Item(1)
    Set myPage = myDocument.Pages.Item(1)
    Set oImageRect = myDocument.Pages.Item(1).Rectangles.add
    oImageRect.GeometricBounds = Array(50,0,25,25)
    set my_hyperlinkPAGE=myDocument.hyperlinkPageDestinations.add(myDocument.Pages.Item(5))
    Set my_hyperlinkSource = myDocument.HyperlinkPageItemSources.Add(oImageRect)
    set myHyperlink = myDocument.Hyperlinks.Add(my_hyperlinkSource, my_hyperlinkPAGE)
    Voila, goes to page 5!

  • Tried purchasing iTunes music. Put in my apple id and password then i was directed to a 'Terms and Conditions' page. I checked the box then clicked the 'accept' button next page read 'your Session has timed out '  try again  with a Done button to click on

    Tried purchasing music from the iTunes Store. When the window popped up I put in my apple id and password. Then I was directed to a 'Terms and Conditions' page. I checked the box next to the 'Yes I agree to these terms and conditions' - then clicked the 'accept' button next page read 'Your Session has timed out. Try again.'  with a 'Done' button to click on. Oh the same thing happens when i try to download  free iTunes. Yes I have tried & tried it again I even logged off and singed back in-- no joy 
    After accessing my iTunes account I was not able to change anything like my credit card number when I tried and was sent right to the 'Your session has timed out. Try again.'
    The last time I purchased any anything was on September 25th 2011 and the 'terms & conditions' page was last updated on October 12, 2011
    Does anyone have an idea to what is going on with my iTunes version 9.2.1 (5) and I can not upgrade to a higher version my iMac does not have the intel processor chip.Thank you for your time and help with this matter. You are greatly appreciated 

    I am having the same problem also! I posted on here about it, but no one has responded with ideas. I called technical support and e-mailed them, the only suggestions they gave was for the to turn off my firewall. But I didn't change anything, so it shouldn't suddenly stop working. Maybe this is just an iTunes issue? But it doesn't even recognize my account anymore, and I cannot log in now.
    If you happen to get an answer, will you please let me know what works for you?
    Thanks!

  • Problem with getting specific canvas's to display within a viewstack based on button's clicked within a tilelist

    In a new application I'm creating I've managed to set it up so that a user can add up to 5 'user profile buttons' by clicking an 'add item' button and remove each one by clicking an 'remove item' when they are selected.
    That part works fine, however once each button is clicked it should bring up a specific canvas view within the viewstack relevant to that particular button i.e. when a user clicks the 'New Profile 1' button the 'New Profile 1' Canvas view should then be displayed in the viewstack, when they click 'New Profile 2' it should display 'New Profile 2' canvas in the viewstack etc but I am having trouble linking each specific button to 1 specific Viewstack canvas.
    The problem is if, for example, I click the 'New Profile 2' button the 'New Profile 2' canvas IS displayed in the viewstack however if I then delete the selected 'New Profile 2' button the 'New Profile 3' button slides left into it's place but now clicking on New Profile 3 brings up the new profile 2 canvas whereas it should actually bring up the new profile 3 canvas at all times.
    Eventually these canvas's will be personal areas for specific users so it is important that each button in the tilelist links to that specific user but it is also important that a user can add/delete each button at all times.
    I've already had the first part of this problem (which was linking the tilelist to the viewstack) more or less answered but I clicked Correct answer rather than helpful answer in my previous thread. My mistake, sorry. Is ther a better way to do this application. Heres my code so far:-
    <?xml version="1.0" encoding="utf-8"?>
     <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:components="components.*" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#545351, #E3DFDF]">
    <mx:Script>
    <![CDATA[
    import mx.managers.*; 
    private var _dragManager:DragManager; 
    private var _historyManager:HistoryManager; 
    private var _popupManager:PopUpManager; 
    import flash.net.navigateToURL; 
    import flash.net.URLRequest; 
    import flash.net.URLVariables;  
    import mx.events.ListEvent;  
    import mx.controls.Button; 
    import mx.collections.*; 
    import mx.controls.Alert;]]>
    </mx:Script>
    <mx:Script>
    <![CDATA[
    import mx.effects.easing.Elastic; 
    import mx.collections.ArrayCollection; 
    Bindable] 
    private var myDP:ArrayCollection = new ArrayCollection();
    private var dpArr:Array = [{label:"New Profile 1", data:View1},{label:"New Profile 2", data:View2}, {label:"New Profile 3", data:View3},{label:"New Profile 4", data:View4}, {label:"New Profile 5", data:View5}]; 
    private var addedIndices:ArrayCollection = new ArrayCollection(); 
    private function deleteItem():void { 
    if(myDP.length > 0){ 
    for each(var i:int in tlist0.selectedIndices)myDP.removeItemAt(i);
    private function addItem():void { 
    if(myDP.length < dpArr.length && addedIndices.length < dpArr.length){ 
    for(var a:uint = 0; a < dpArr.length; a++){ 
    if(!addedIndices.contains(a) && !myDP.contains(dpArr[a])){myDP.addItemAt(dpArr[a],myDP.length);
    break;}
    private function tileList_itemClick(event:ListEvent):void { 
    private function showAlert(event:ListEvent):void{ Alert.show(
    "You clicked button #"+event.currentTarget.selectedItem.data);}
    ]]>
    </mx:Script>
    <mx:Sequence id="itemsChangeEffect1">
    <mx:Blur blurYTo="12" blurXTo="12" duration="300" perElementOffset="150" filter="removeItem"/>
    <mx:Parallel>
    <mx:Move duration="750" easingFunction="{Elastic.easeOut}" perElementOffset="20"/>
    <mx:RemoveItemAction startDelay="400" filter="removeItem"/>
    <mx:AddItemAction startDelay="400" filter="addItem"/>
    <mx:Blur startDelay="410" blurXFrom="18" blurYFrom="18" blurXTo="0" blurYTo="0" duration="300" filter="addItem"/>
    </mx:Parallel>
    </mx:Sequence>
    <mx:Canvas width="1168" height="716" backgroundColor="#0219FB" horizontalCenter="0" verticalCenter="0" borderColor="#000000" borderStyle="solid" borderThickness="1" cornerRadius="20" backgroundAlpha="0.8">
    <mx:Canvas id="UserArea" left="10" x="0" y="49" width="670" height="594" backgroundColor="#000000" cornerRadius="20" borderStyle="solid">
    <mx:TileList id="tlist0" itemClick="myViewStack.selectedIndex=tlist0.selectedIndex" itemRenderer="mx.controls.Button" top="10" left="10" right="10" color="#FFFFFF" height="50" width="100%" fontSize="12" fontStyle="bold" columnCount="5" rowCount="2" direction="horizontal" dataProvider="{myDP}" itemsChangeEffect="{itemsChangeEffect1}" backgroundColor="#000000" fontWeight="bold" borderStyle="none"/>
    <mx:Canvas x="63" y="129" width="200" height="200" fontSize="36" borderColor="#FFFFFF" id="Canvas1" visible="false">
    <mx:Label x="27" y="25" text="Profile 1"/>
    </mx:Canvas>
    <mx:ViewStack x="115" y="88" id="myViewStack" width="382" height="317" backgroundColor="#F90C0C">
    <mx:Canvas id="View1" label="View 1" width="100%" height="100%" backgroundColor="#0FDDE5">
    <mx:Label x="10" y="10" text="NEW PROFILE 1" fontWeight="bold" fontSize="15"/>
    </mx:Canvas>
    <mx:Canvas id="View2" label="View 2" width="100%" height="100%" backgroundColor="#A90BCB">
    <mx:Label x="10" y="10" text="NEW PROFILE 2" fontWeight="bold" fontSize="15"/>
    </mx:Canvas>
    <mx:Canvas id="View3" label="View 3" width="100%" height="100%" backgroundColor="#E6E413">
    <mx:Label x="10" y="10" text="NEW PROFILE 3" fontWeight="bold" fontSize="15"/>
    </mx:Canvas>
    <mx:Canvas id="View4" label="View 4" width="100%" height="100%" backgroundColor="#F4A40A">
    <mx:Label x="10" y="10" text="NEW PROFILE 4" fontWeight="bold" fontSize="15"/>
    </mx:Canvas>
    <mx:Canvas id="View5" label="View 5" width="100%" height="100%" backgroundColor="#0D1DFA">
    <mx:Label x="10" y="10" text="NEW PROFILE 5" fontWeight="bold" fontSize="15" color="#FFFFFF"/>
    </mx:Canvas>
    </mx:ViewStack>
    </mx:Canvas>
    <mx:Button label="Remove item" click="deleteItem();" color="0x323232" x="96" y="10"/>
    <mx:Button label="Add item" click="addItem();" color="0x323232" x="10" y="10"/>
    </mx:Canvas>
     </mx:Application>

    Hi
    Try this if it works..
    1. In MultiProvider identify those key figure from both the InfoProvider ( DSOs)
    2. In BEx create KF1 . Restrict with 0INFOPROV = DSO1 ( Billing) , hide it
    3. Create KF2 . Restrict with 0INFOPROV = Cube ( condition cube) , hide it
    3. Create a Fomula Key Figure 3 with the definition
    KF3 =  KF1 + KF2* ( KF1==0)
    If KF1 is zero, then KF1 == 0  will be true and it will return value 1.  So, basically you would get
    KF3 = 0 + KF2 *1 = KF2
    When KF1 is non-zero, expression KF1== 0 will be false and gives a value 0. Let;s say KF1 =5 , then
    KF3 = 5 + KF2 * 0 = 5
    Now show KF3 in the report
    Regards
    Anindya

  • How to export the Apex web page to PDF with click of a button?

    How to export the Apex web page to PDF with click of a button?
    Am looking at exporting the Form view on APEX to be exported to PDF.

    In order to get a PDF, you need to generate a Report....in PDF format.
    If you are using the APEX Listener, you can initiate the download of the PDF by calling APEX_UTILS.download_print_document()  (I normally place this in a Process)
    BUT -- You have to create the Report (under Shared Components) and a Template (also under Shared Components).
    The white paper in my first post gives you the HOWTO "[Create] Custom PDF Reports with Oracle Application Express and the APEX Listener".
    Start by creating a Report (in Shared Components, bottom right) that uses a simple SQL statement like:
    Select * from emp where empno = :P15_EMPNO
    You may need to hard code the parameter before you hit "Download XML" button.
    The XML that you get from clicking "Download XML" satisfies the "Step 1 - Create an XML Data Source" found on Page 11 of the document.
    The rest of the instructions is in that whitepaper.
    MK

  • Animating a button with actionScript

    I'm fairly stumped on this one - but probably quite simple to fix.
    I need to animate the scale of a button with actionScript 2.0. I've inherited a project that was done with actionScript 2.0 and have decided to stay with this generation rather than rewrite the whole project. Anyway - I've created a sound object, it plays audio from the library and 3 seconds after it starts playing, I want to animate the "next" button and make it pulse to attract the users attention.
    Doing this by putting the button in a movie clip is not working as I am losing it's button states and besides it's probably far more tighter to program it.
    When the user rolls over the button it stops pulsing but still retains it's up, over and down states.
    Any easy answer?

    Thanks for your help Ned.
    I ended up making an advanced button with movie clips and using programming for all the states.
    Movies are so much easier to control than buttons.
    But you have raised something I had overlooked...setTimeout( )
    I was using setInterval( ) and then doing clearInterval( ) within the function so it would only loop once, which of course was problematic if the user beat the 'clearInterval' code by clicking on the button too early.
    Actually used setInterval( ) to delay all sound on the project - now going to re-program all that.
    Thanks

  • Just started using Safari, 5.1 on Win XP.  Places where there used to be check boxes now have little buttons with triangles on them; clicking them seems to have no visible effect.  Help!

    I just started using Safari, using Safari 5.1 on Win XP.  Any place where there used to be a check box, there's now a little button with a triangle on it.  The triangle changes orientation as I move the mouse cursor around, but there is no visible change if I click on it.  Yet it appears that I must click on it to check, or uncheck, the box; I just can't tell whether it's checked.  If I can't get this to work better, I'll have to give up on Safari.  Please help.  (Note: there's one at the head of this thing saying "Mark this discussion as a Question - this encourages people to answer for points and helps you track answers."  I clicked on it, but don't know whether it's checked or not.  That's a fairly minor example.)

    Can you provide an SSCCE that demonstrates this behavior?

  • Can we perform two actions with one button with two clicks one after other?

    Sir,
    can we perform two actions with one button with two clicks one after other?
    I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
    Regards
    Tanvir

    In code it should be easy.
    The following code adds a button called butman with a text "ADD".
    It then registers a listener that will be called if the button is clicked.
    This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
    Therefore it will swap the button's functionality between ADD and CLEAR on every click.
    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});I hope this is what you wanted.
    Some extra food for thought.
    You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
    I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed.

  • Hi - Re Keynote  I'm trying to figure out how to create a music album on USB flash drive. What I want is a background picture with 'click-buttons' to play each track listed, also similar for embedded videos and photos etc.  Is this possible with Keynote ?

    Hi - Re Keynote  I'm trying to figure out how to create a music album (as an artist) on USB flash drive, (accessible by both Mac and PC). What I want is a background picture with 'click-buttons' to play each track listed, and play in order (like a cd) - also similar for embedded videos and photos etc. This should all be on the one page.  
    Is this possible with Keynote, or any other software package for Mac (am using Macbook Pro) ?
    Gav 88

    Hi there,
    Yikes, it sounds like you've been doing a lot of work on this project... Unfortunately, however, this isn't the Adobe Encore forum, but the Acrobat.com forum. While it seems like an exciting question, we're not able to address issues pertaining to other Adobe products and services. Here's a link to the Adobe Encore forum, where you're more likely to get help for this specific issue:
    http://forums.adobe.com/community/encore
    Sorry not to be of more specific help to you. Best of luck!
    Kind regards,
    Rebecca

  • Help with Reverse Animation On Button

    The buttons are animated with a movie clip inside each button
    and the movie clip plays on rollover, however I need this same
    movie clip inside the buttons to play reversed, when the cursor is
    moved away from the button.
    I know how to do this with an instance but I already made
    each button and fooled around a thousand times with the animation
    and I do not wish to start over again!
    I have only experimented with this type of action script
    before and I must say I am a little lost =(
    Can anyone help me as to how I would go about doing this ?
    Any coding would help.
    I know there is a simple way of doing it with action script,
    but I have no more time to fool around and I need your assistance
    =P
    If you could supply the code it would help me out.
    (I can modify it to work with my page and my buttons)
    Just need something to work off of.
    Maybe a code I can put on the button, or whatever you can
    come up with.
    For future reference,
    thanks

    Without knowing the details of what you have created, or the
    code you have attempted to use, the best I can offer at the moment
    is to say you need to have the reverse playing code of the
    movieclip get triggered by the mouse out event and not stop
    stepping back down the timeline until the _currentframe value
    reaches 1. If another mouse over should occur, then it's your
    decision as to whether it picks up from where it has stepped back
    to or starts from frame 1.
    Starting over again is often the better approach, since what
    you may have created may not be able to facilitate directing things
    to play in reverse.

  • Rearranging buttons with every click

    Here is a sample code. I created button keys for the second row of the keyboard but the order is random. I want to randomize the buttons everytime the user clicks it, but i have no idea how to go with it. How do i re-place the alphabets in each buttons on click? Ignore the Dialog Box.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class OSK extends JFrame {
         private JButton row2[];
         private final String array2[] = {"q","w","e","r","t","y","u","i","o","p"};
         private Container container;
         private GridLayout grid1;
         int random1, random2,x;
         private String store;
         public OSK()
              super("Help Me");
              grid1 = new GridLayout(1,10);
              Container container = getContentPane();
              container.setLayout(grid1);
              x += SortArray(); // call method to sort the array
              row2 = new JButton[array2.length];
              for ( int count = 0; count < array2.length; count++)
                   row2[ count ] = new JButton(array2[count]);
                   container.add(row2[ count ]);
              ButtonHandler handler = new ButtonHandler();
              for (int count = 0; count < array2.length; count++)
                   row2[count].addActionListener(handler);
              setSize(500, 100);
              setResizable(false);
              setAlwaysOnTop(true);
              setVisible(true);
    // method to sort the array
         public int SortArray()
              for ( int i = 0; i < 100; i++)
                   random1 = (int) (Math.random() * array2.length);
                   random2 = (int) (Math.random() * array2.length);
                   store = array2[random1];
                   array2[random1] = array2[random2];
                   array2[random2] = store;
              return 0;
         public static void main (String args[])
              OSK application = new OSK();
              application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         private class ButtonHandler implements ActionListener
              public void actionPerformed(ActionEvent event)
                   JOptionPane.showMessageDialog(OSK.this, "You pressed: "
                   + event.getActionCommand());
    }Thanks in advance

    oh man, i'm really having a hard time understanding
    the code.Sorry about that.
    1. Where's the ActionListener ? Did AbstractAction
    handled that ?Exactly. AbstractAction is just a convenient Action implementation. I strongly recommand you to learn more about Actions
    [url http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html]How to Use Actions.
    2. what does this do?
    public KeyAction(String aKey )
    { super(aKey);
    }KeyAction (couldn't think of another name as I don't know what your buttons are supposed to trigger) is the Action class. By now, if you've read the article about Actions, you know that the String aKey is the Action's name which is displayed on the button.
    3.The for loop is so different. Is this new in 1.5 ?
    can you please explain
    for (String s : theKeys)That's as simple as that : for each String s in the collection theKeys do whatever.
    4. What does this do?
    EventQueue.invokeLater(new Runnable() {
    public void run() {
    //statement;
    //statement;
    [url http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html]How to Use Threads
    EventQueue.invokeLater is the same thing as SwingUtilities.invokeLater (in fact the latter calls the former)
    5. If i were to add another array, say
    {"1","2","3","4","5","6","7","8","9","0"}, how would
    i code it ?You mean for a new row of buttons?
    Your content pane should be a JPanel with a GridLayout(2, 1). Add one OSK instance with the first array (q w e ...) and another with the second array (1 2 3 ...)
    Thank you very much weebib, i owe you oneYou're welcome

  • My buttons with hyperlinks are not browser compatible

    Hi, I've created an InDesign document that has simple buttons with hyperlinks and rollover stage. I have saved the document as an interactive pdf and uploaded to the site, when checking for browser compatibility, the hyperlinks are not working on Firefox 19.0.
    Does any one know how to fix this problem?
    Here is a link for reference:
    http://teen.idrivesafely.com/how-to-get-your-learners-permit.pdf
    Thanks

    I just found the answer in the following thread
    Hyperlink reuse
    go to the New Hyperlink button at the
    bottom of the panel or to the submenu in Hyperlinks, I can go to Shared
    Destination and...it DOES work. Thanks.
    Follow-up question: do I need to make all of the hyperlinks I create with
    Shared Destination or only those that will more than likely reappear in the
    document?

  • I just installed Lightroom 5. It will not open. I have clicked on the desktop icon as well as the start menu button with no results. What am I missing?

    I just installed Lightroom 5. It will not open. I have clicked on the desktop icon as well as the start menu button with no results. What am I missing?

    I had the same problem, and I believe it is caused by having the Creative Cloud application doing the updating of LR.  I "fixed" the problem by:
    1. Uninstall Lightroom
    2. Download the stand-alone LR 5.6 installer from Product updates
    3. Install LR 5.6 using the stand-alone installer, instead of using the Creative Cloud application.

Maybe you are looking for

  • Check printing problem.

    for check printing through f-58 or FBz5 my client requred format is not matching with standard script F110_PRENUM_CHCK . so i need to create new script for check as well as for Pmnt advice . instead of script can we create Smartform and configure the

  • How to create count() measure for certain set of records in BMM Layer

    Hello all. I have a logical table like this one (Table AAA) Table AAA <p> --------------------------+<p> |       *Key*            |    *Name* |   <p> --------------------------+<p> |    1-2EMHS9     | AAA      |<p> --------------------------+<p> | 1-

  • Error loading C;\users\Toshiba\appData\Local\SMBDP.dll

    Can anyone help me? After i start up i keep getting a message that says error loading C;\users\Toshiba\appData\Local\SMBDP.dll and then the module could not be found. I have tried everything but cannot get rid of it, i have asked for help online but

  • HT1491 How do I stop purchases from IPhone?

    How do I block puchases being made from my stepsons IPhone 4?

  • Network Stalls When Downloading A File

    Hi everyone. I have been experiencing this trouble: Whenever I start downloading a file, the whole network stalls, I cannot browse websites, or download other files until the last one finishes. I have a dual band network, with both G and N devices. H