Disabled button to look like selected button

I have a set of toggle buttons. If I wanted to disable a button the moment it was clicked, but not have the user know that this was done, how could I set the disabled button to look like a clicked button?
I tried using
ImageIcon disabledIcon = (ImageIcon) button.getIcon();
button.setDisabledIcon(disabledIcon);
button.setDisabledSelectedIcon(disabledIcon);But this made the button look like an unclicked button. The clicked button has the exact same icon in the middle, but the rest of the button is darker.
Any help appreciated!

may be you want like this,
<a id="btnLink" class="brnLink" href="javascript:Form.submit('myAction')"/>
     <img id="next" src="/images/next.gif" />
</a>

Similar Messages

  • When trying o play Youtube videos I only see "Plug-in failure". It looks like a button but does nothing.  What should I do?

    When trying o play Youtube videos I only see "Plug-in failure". It looks like a button but does nothing.  What should I do?

    Wait until Adobe updates the Flash Player.

  • Z_Dialog prog initial input screen-looking like selection screen of Report?

    Hi Experts,
    In internet, I found 2 screens( code is not mentioned there) and mentioned that, they r Dialog Prog. screens, they r as below,
    1 - Initial input screen-programmer mentioned it as a selection screen-1000
    2 - Output screen in ALV grid (Object ALV)
    So, when I saw this initial input screen, it looks like same as selection screen 1000 of a report prog., I mean, its containing all selection screen components, like Select-options with out interval, with out extension, blocks, titles for these blocks!!
    So,pls. let me know that,
    1) How the programmer achived this screen? is he used like,
    SELECTION SREEN 1000 START
    END OF SELECTION SCREEN 1000
    2) How these input fileds r looking like select-optins, parameters,  blocks etc.?
    thanq

    Putting selection screens on dialogue transactions have been covered before in the forum. Please search.
    Rob

  • Make A Canvas Look Like A Button?

    I have some canvases (canvasi?) that I want to make look like
    buttons with rounded corners and bevels, maybe a drop shadow, but I
    know this can't be done to a canvas.
    Ideally, I like the way panels look but I don't want the
    white space in the middle of it.
    I also like buttons but I'm not sure if I can use a button
    like a layout component.
    The item needs to have room for some text (a label), a
    graphic, and it also needs to work like a button (meaning it can be
    clicked and can navigate and store some information).
    Any ideas?

    "Holomew" <[email protected]> wrote in
    message
    news:gbgrc4$rho$[email protected]..
    >I have some canvases (canvasi?) that I want to make look
    like buttons with
    > rounded corners and bevels, maybe a drop shadow, but I
    know this can't be
    > done
    > to a canvas.
    >
    > Ideally, I like the way panels look but I don't want the
    white space in
    > the
    > middle of it.
    >
    > I also like buttons but I'm not sure if I can use a
    button like a layout
    > component.
    >
    > The item needs to have room for some text (a label), a
    graphic, and it
    > also
    > needs to work like a button (meaning it can be clicked
    and can navigate
    > and
    > store some information).
    >
    > Any ideas?
    Canvas _does_ have a cornerRoundness style and a filters
    property.
    HTH;
    Amy

  • How to create a 3-state button (similar look as OK button) that toggles between 3 different colors.

    How do I create a 3-state button that looks similar to the OK button except it changes to 3 different colors every time it is pressed. Does anyone have such a control ready for use that I can just drop in my front panel?

    With a picture ring you can implement a 3 color button without any code. Look at the attached customized control.
    I have imported the picture of a boolean in three different items and
    colored them. I centered the text and hide/made transparent uneeded
    graphic elements. I set the size of the decrement arrow to cover all
    the picture and made it transparent so when you click on the control
    you decrement the value of the ring and change the picture/color
    Edit: you'll notice that the picture is not fullt covered by the
    decrement arrow so if you click near the bottom of the button, the
    picture ring will show its normal behavior displaying all 3 available
    items
    Message Edité par Jean-Pierre Drolet le 07-07-2005 10:07 PM
    LabVIEW, C'est LabVIEW
    Attachments:
    3COLORSBUTTON.vi ‏8 KB

  • How can I create a button that looks like this?

    Hey everyone,
    I'm trying to create a button in photoshop for a web project I'm working on and I found something similar to what I'm trying to do already being used online. I'm trying to get something similar to the bottom row of buttons in this image:
    The bottom row of buttons uses a gradient overlay effect... but there is a small darker area in the top left corner of each of those images. It looks to be exactly the same in each image... meaning I'm guessing it's not hand drawn with something like the burn tool?
    How would I go about doing something similar? What's the easiest way to reproduce the effect shown above keeping it consistant from button to button?

    One way is using layers.
    Color layer on the botton so changing colors simply change color layer.
    Place all your image effects on the overlying layers.

  • Do think the firefox back and forwoard button should look like what it look like in netscape?

    Netscape is the ancestor of firefox.i think it would be greater if firefox would use its ancestors back and forward button to show respect.if you agree with me click i have this problem too button and well show firefox what we want.

    The Firefox button displays by default only in Windows Vista and Windows 7. You '''''can''''' have it display in Windows XP
    '''Menu Bar'''<br />
    *right-click empty space at the end of the Tab Bar, click "Menu Bar" to place a checkmark
    *Menu Bar checked = Menu Bar on; Firefox button off
    *Menu Bar un-checked = Menu Bar off; Firefox button on
    *Other methods of doing the same:
    **click Firefox button > Options, click Menu Bar
    **Quick toggle Menu Bar on/off: ALT+V+T+M
    To have the Menu Bar '''''temporarily''''' display when the Firefox button is on, press the ALT key or the F10 key to make the Menu Bar appear and use your mouse to make selections from the temporarily displayed Menu Bar. Why would you want to do this? The selections available are different.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How to send commands to command button to look like an event

    Hi all
    I am trying to find the proper way to send a software command to a command button.
    For example say you have a simple (OK) command button, within that command button the callback function has multiple lines of code that are run from within that one callback.
    Now what I want to do is call the (OK) button in another function as if the user pushed the button without effectively having the function to wait for all the process in the (OK) callback to finish, I want it to call the (OK) button and get out of its function and continue on.
    What I have seems to work but I am not sure if this is the proper way of coding it.
    Code sample to turn on =1and off 0:    OK Callback (panelnumber =2, controlnumber = 2, event=2 , callback= NULL, event1=0, event2=0)
    if(ON)
    SetCtrlVal(panelmain, PANELMAIN_OK,ON)
    OK(2,2,2,NULL,0,0);
    else
    SetCtrlVal(panelmain, PANELMAIN_OK,OFF)
    OK(2,2,2,NULL,0,0);

    You can call the callback function as any other function, see e.g. here

  • Why do the site identity buttons not look like what you are showing on the information page?

    Just read the email about security from Firefox. I do have the identity button show up in a color, but I do not get the passport officer, nor do I get the information in the drop-down window. All I get is "Verified by: ... or "This site does not supply identity information."

    On Windows, you can switch between a classic menu bar and a compact menu opened with an orange button with the word Firefox.
    You can switch between these using one of these methods:
    * right-click a blank area of the tab bar and turn Menu Bar on or off
    * View menu > Toolbars > Menu Bar
    * orange Firefox button > Options triangle > Menu Bar
    Does that help?
    To get to the tab preferences, you can do this:
    orange Firefox button (or Tools menu) > Options > Tabs
    To remove the Ask toolbar, you can go here:
    orange Firefox button (or Tools menu) > Add-ons > Extensions category
    You might still have to do a little cleanup after removing an extension, if it changed your home page, new tab page, search provider, etc. Please describe any remaining problems in more detail.
    Hope this helps.

  • Making custom buttons dissappear when not selected

    I am trying to get around the limitiation of not being able to add audio to a layered menu item.
    Correct me if I am wrong but I think if I create my own buttons (that would reflect the same look as the active layers of the Photoshop file) then I could have audio in the Menu with the same look using the buttons I create.
    Here is my question ... Is it possible to have a button dissappear when its not in the "activated" or "selected" state? I figure that I can create the button to look like the same active state and have the normal state revealed in the background graphic when the button is deselected. I just don't know how to make the button invisible or transparent when its not "selected" or "activated"
    Thanks in advance
    Lou ..

    Yes use overlays for the buttons and do not highlight them in normal state (though you may consider having something showing for normal state so people know it is there as oppossed to totally not visibale)
    Some examples and techniques showing mapping and then some others with video backgrounds also
    http://dvdstepbystep.com/newmap.php
    http://dvdstepbystep.com/rollover.php
    http://dvdstepbystep.com/useelements.php
    http://dvdstepbystep.com/buttons07.php
    http://dvdstepbystep.com/motion.php

  • How do I tell Apple to fix their software like apps that play sound even though the sound is turned off and not being able to disable features you hate like game center

    Apple is suppose to be the pinnacle of usability and, yet, I want to throw my new IPhone 4s as far as I can and watch is smash into a million pieces on concrete. Seriously, I've already got three things that irritate the **** out of me. First, there are Apple apps that insist on playing sound even though the sound is turned off. If I flick a switch to turn the sound off, I want the sound off!!!! Second, if I do not want a totally unnecessary feature like Game Center, I should be able to disable it. I completed most of the Angry Bird levels with 2 or 3 stars and now I have to start over from square one. Maybe, this happened when I upgraded to the 4s but it sure seemed to happen when I joined Game Center. Tomorrow, I am going to reset my 4s to factory defaults to try to get rid of my Game Center account. I don't want Game Center! I do need Game Center! I hate Game Center! Finally, I had an alarm go off to wake me up and there was a Snooze button but no button to turn the alarm off. I flicked the slider to access the main screen expecting to see something to turn the alarm off but there was nothing. The alarm just kept alarming. I had to warm boot my IPhone to shut the alarm off! Really, Apple!!!!

    The sound is turned off. Only, some Apple apps like YouTube and Siri make sound when the sound is turned off. It is very embarrassing when this happens at work. My question was how do I tell Apple to fix this?
    Turning off game center does not work. The games just prompt me to sign in when they are started.I have tried everything I can find online to stop this behavior. It is annoying and should not happen. My question was how do I tell Apple to fix this?
    The alarm went off. There was a green thing that looked like a button but pressing it did nothing. There was a red button that said snooze. I did not want to snooze. I wanted to turn the alarm off. I slid the bar to unlock the phone and there were no running apps with a button to press. The alarm just keep running. I have not had this problem since it first occurred. The alarm now shuts off when I just unlock the phone. It may have happened because I had another alarm app running. The two may have interfered with each other. I would like to tell Apple about it.
    It also annoys me that the button that closes apps leaves the phone app running. If I press on a number at 6:00 AM to get information about who called me, the phone automatically dials the person back and my natural reaction is to press on the button to close the phone app but the phone keeps dialing this person at 6:00 AM. It is a bad design. I would like to tell Apple about it.
    Finally, I looked all over Apple's site to try to find someplace I could send them a polite message to let them know that I was not happy with these "features" but could not find anything. It is extremely frustrating to have issues with a product and not being able to tell the manufacturer about it. So, you grow up!.
    When trying to fix the Game Center issue, I saw a link someone posted to report issues with the IPad to Apple. The answer I am looking for is where is the link to report issues with the IPhone.

  • Disabling screen elements on a selection screen

    Hello all!
    How can one disbale/enable radio buttons on a standard selection screen, like the one created for a report?
    The screen looks like:
    Radio buttons 1,2, and 3 are in the same group G1.
    Radio button 1
    Radio button 2
    Radio button 3
    There is another radio button group G2, that has 3 other radio buttons.
    I want to enable the user to be able to select radio buttons from G2 only if they have selected radio button 3.
    I have tried the available AT SELECTION-SCREEN statements but with no luck.
    Thanks for all your help.
    Ahmed

    Hi
    Just the guys said to you, u need to change the attribute of selection-screen in the event AT SELECTION-SCREEN OUTPUT, but u need to assign an OK-CODE to the radiobutton of group1, in this way after pressing a radiobutton the event will be triggered automatically.
    So your modification should be like following code:
    PARAMETERS: r1 RADIOBUTTON GROUP g1 default 'X' USER-COMMAND AAA,
                r2 RADIOBUTTON GROUP g1,
                r3 RADIOBUTTON GROUP g1.
    PARAMETERS: r4 RADIOBUTTON GROUP g2 DEFAULT 'X' MODIF ID 001,
                r5 RADIOBUTTON GROUP g2             MODIF ID 001,
                r6 RADIOBUTTON GROUP g2             MODIF ID 001.
    AT SELECTION-SCREEN OUTPUT.
      case 'X'.
        when r3.
        when r1 or r2.
          loop at screen.
            if screen-group1 = '001'.
              screen-active = 0.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
      endcase.
    Max

  • I have downloaded updates for Firefox but my browser doesn't look like it should, no single menu button etc, how do I get it to look like your demo?

    The last few times I have been prompted to update my firefox for desktop, my browser has not looked any different even though I get notification to say updates completed successfully. When I update firefox gives a demo of new features and how my browser should look, mine has not looked like the demo for the past few updates. It's annoying because I really like the look of having just one menu button. How can I change the look of my browser?

    The Firefox button displays by default only in Windows Vista and Windows 7. You '''''can''''' have it display in Windows XP
    '''Menu Bar'''<br />
    *right-click empty space at the end of the Tab Bar, click "Menu Bar" to place a checkmark
    *Menu Bar checked = Menu Bar on; Firefox button off
    *Menu Bar un-checked = Menu Bar off; Firefox button on
    *Other methods of doing the same:
    **click Firefox button > Options, click Menu Bar
    **Quick toggle Menu Bar on/off: ALT+V+T+M
    To have the Menu Bar '''''temporarily''''' display when the Firefox button is on, press the ALT key or the F10 key to make the Menu Bar appear and use your mouse to make selections from the temporarily displayed Menu Bar. Why would you want to do this? The selections available are different.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Why is FFX 4.0.1 so ergonomically poor? Doesn't save tabs anymore and some buttones, eg refresh "designed" virtually out of existence. This starts to look like IE!!

    I am running FFX 4.0.1 over XP with SP3 and latest Windows downloads until yesterday pm.
    I don't like the way I don't get offered opportunity to save multiple tabs on closing FFX - in fact I think I ought to be offered the chance to save any tabs I have open when I close it. To me - and I guess to a lot of others that's important. I also don't like the way that the refresh button (which I use often) and others have been relegated, aren't and aren't as obvious as they used to be.
    FFX used to be ergonomically well-thought out...this looks like it is slipping backwards towards IE Standards.
    I wanted to submit this via the normal "complaints" channel, but that doesn't want to work properly. Come on Mozilla; get your act together. This is possibly the worst release in years!!
    FWIW I have been using FFX since it appeared and Netscape before that. I have never moaned about this sort of thing before. That is how poor I think that this is.

    '''Saving multiple tabs'''
    Firefox now always stores the old session, and you can access it by going to the History menu and selecting "Restore Previous Session"
    If you want Firefox to display the message to save the session, it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''
    If you always open the last set of tabs, an alternative approach is this:
    # Click the orange Firefox button, then select options to open the options window
    # Go to the General panel
    # Change the setting "When Firefox starts" to "Show my windows and tabs from last time"
    '''Refresh button'''
    In Firefox 4 by default the Stop, Go and Reload (refresh) buttons are combined and attached to the right hand edge of the location bar.
    When you are typing in the location bar it will show the Go button. When a site is loading it shows the Stop button. At other times it shows the Reload button.
    If you want separate buttons, right-click on a toolbar and choose Customize, you can then drag and drop the stop or reload buttons and place them elsewhere. If you place them in the order "Reload-Stop" on the right hand edge of the location bar they will be combined again. For more details on customizing the toolbar see https://support.mozilla.com/kb/How+to+customize+the+toolbar
    '''Appearance'''
    If you do not like the new UI, you can make Firefox 4 look and behave more like Firefox 3.6, for details see http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6

  • Disabling complex selection button

    Hi Experts,
       In my select-options, based on the user ( sy-uname ), I am disabling the select-option-High value.
       i.e.      if screen-name = 'S_DATE-HIGH'.
                    screen-input = 0.
                 endif.
      But at the same time I need to disable the complex selection button also. It means that the user has to give only one input like parameter.
    How can I disable complex selection button.
    Thanks and regards,
    Venkat

    hi,
    please check this below code
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME  TITLE TEXT-027 .
    PARAMETERS: P_RADIO1 RADIOBUTTON GROUP RAD DEFAULT 'X' USER-COMMAND UCOM .
    PARAMETERS : P_KEY TYPE SYDATUM DEFAULT sy-datum MODIF ID MO1.
    PARAMETERS: P_RADIO2 RADIOBUTTON GROUP RAD.
    SELECT-OPTIONS: SO_BUDAT FOR BSIS-BUDAT MODIF ID MO2 .
    SELECTION-SCREEN END OF BLOCK B2.
    *--AT SELECTION-SCREEN OUTPUT STATMENTS--
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
         IF P_RADIO1 = 'X'.
           CHECK SCREEN-group1 = 'MO1'.
           SCREEN-INPUT = 1.
         ELSE.
           CHECK SCREEN-group1 = 'MO1'.
           SCREEN-INPUT = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
      LOOP AT SCREEN.
        if P_RADIO2 = 'X'.
          CHECK SCREEN-GROUP1 = 'MO2'.
          SCREEN-INPUT = 1.
        ELSE.
          CHECK SCREEN-GROUP1 = 'MO2'.
          SCREEN-INPUT = 0.
       endif.
           MODIFY SCREEN.
      ENDLOOP.

Maybe you are looking for

  • Address Book sync with lotus Notes is possible

    Hi, I'd like to know if it is possible to sync Personal Address book with lotus notes? Or there are Ip phone services that can query address book of lotus notes? Regards MC

  • XI- Xi Scenario XI Adapter (Port Issue)

    Hi all           we are implementating <b>File - XIA--|Internet|-- XIB -File</b>. At XIA i am using XI Adapter(receiver)                   Message protocal HTTPS At  XIB I am using XI Adapter(sender)                  Messaage protocal HTTP Now the is

  • Robohelp 8: Korean language code

    I am using Robohelp 8 to build Korean HTML and Web Help file When I selected Project Setting- Language - Korea(Korea),  there is folder name ko_KP created under !Language! folder. My understanding is ko_KP is for North Korea. Please would someone let

  • System does not recognize the attendees?

    The User has listed the attendees for but the tool is still stating that she must add attendees. Is this because she itemized the business meal expense? So should the attendees be added to the itemized expense also? Even though added to the main expe

  • Can Oracle run in real time OS(such as PSOS) and communicate with data server by OCI?

    Hi, all! i have a question to get your help! now my oracle client running in SUN solaris communicate with oracle data server by OCI(oracle call interface). In future, my client system will port to embeded system that will use real time OS, such as PS