How can I tell if a button is enabled or disabled?

Is there any way of tell if a button is enabled or disabled? For example if I use setEnabled is one part of a program, how can I find out if the button is enabled or disabled in another part of the program?
Thanks
Peter

Is there any way of tell if a button is enabled or
disabled? For example if I use setEnabled is one part
of a program, how can I find out if the button is
enabled or disabled in another part of the program?
Thanks
Peter
btn.isEnabled()That wasn't so hard to guess now, was it? Even better, use the API, then you don't have to guess:
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.html

Similar Messages

  • How can flex tell if  it's a mouseup event when the user releases the mouse button outside the flex application?

    how can flex tell if it's a mouseup event when the user
    releases the mouse button outside the flex application? Say for
    instance mousedown was done within a 500x500 embedded flex app but
    mouseup is outside or relased on the HTML background. One more
    thing, when we have something draggable, Flex doesn't execute the
    stopDrag() when the user releases the mouse button outside the
    embedded swf or fles app. Pls. help me with this. Thanks!

    I don't think the flex app can tell what happens outside the
    app. But it can detect when it leaves the app, so I have found the
    following line works fine inside initApp():
    this.stage.addEventListener(Event.MOUSE_LEAVE, yourFunction);
    and you have to:
    import flash.display.Stage;
    Doug

  • How can I tell if Droid 4 is fully charged?

    Just received a Droid 4 in mail today after my daughter's Incredible 2 died. I have a Stratosphere that shows a battery icon while phone is on charger and powered off, but this Droid has a completely black screen. It's on charger and powered off. My daughter won't let me touch it because she's afraid I'll ruin it if I turn it on while it's not fully charged. How can I tell if it's fully charged before we activate the phone?

    By giving the power button a Quick press it should Revel the batteries level like this.. in this photo shot taken.. b33

  • How can we tell if a VI is already running before calling Start Asynchronous Call?

    The new Start Asynchronous Call node is awesome for spawning multiple instances of reentrant VIs.  However, I've stumbled a bit in using it for non-reentrant VIs.  The old practice of using the "Run VI" method would allow us to check the Execution.State of the VI before invoking the method to run it.  That way if the State was Running or Run Top Level, we could skip the invoke node and just use a property node to open its front panel.  WIth the Start Asynchronous Call node, it looks like we have to use a strictly typed static VI reference, and when we open the VI reference, the VI gets reserved and its Execution.State = Running.  So, how can I tell if it is not just reserved by the thread but actually executing before making a redundant Start call?
    By the way, the redundant Start has interesting behavior.  It will actually cause the targeted VI to be executed again after it stops.  Even if you hit the Abort button on the target VI, it will immediately execute again and again equal to the number of times the Start Asynchronous Call node was run.  There's nothing wrong with that, and I suppose the simple answer is to just go back to using the old "Run VI" method.  It's just that the ability to wire up those inputs directly to the connector pane is so nice.  Perhaps I am missing something obvious.  Oh, I am referring to the Call and Forget mode (0x80).
    Thanks,
    Dan
    Solved!
    Go to Solution.

    Just throwing it out there, I know I'm a year.5 late on this but if it's a psuedo-modal dialog or some other window that you only want a single instance visible at one time, you can check the FP.State property on the strictly typed vi reference. If it's loaded and visible to the user it will be "Standard", if it was closed or not opened prior then the state will be "Closed".
    I think the standard behavior of serializing execution on another thread would be great for doing a pre-set number of iterations with a sub vi in a non-blocking sort of way but for sub vi's meant for UI interaction checking FP.State works.
    Philip
    CLD

  • How can I tell if a page is secure

    How can I tell if a page is secure? There used to be an option to view a security certificate although this has been removed from the toolbar?
    Also, how can I refresh a page now that the button has been deleted from the toolbar?
    Thanks

    It has been changed. Please read this article:
    https://support.mozilla.com/en-US/kb/Site%20Identity%20Button
    You can use this add-on to get the classic icon back:
    https://addons.mozilla.org/en-US/firefox/addon/padlock-icon/
    Refresh Button:
    It has been incorporated into the far right end of the Address Bar. When you load a page, it is a "Stop" button, when it finished loading, it turns into a "Reload" button.
    If you want it to be somewhere else in the Toolbar, you can drag it out to wherever you want. If that doesn't work, try this:
    View > Toolbars > Customize and drag the Refresh/Stop icon into the window, then drag it back out to wherever you prefer.

  • How can we make the save button active in standard toolbar in outout of alv

    Hi experts ,
    I am using factory method to print alv with oops .
    Cancel , Exit and Back button are active by default in Standard tool bar  in output of Report , But Save button is not active , How can i make that save button active .
    Also Pls tell me how i can make editable to the cell in output , 
    My Code is like this :
    cl_salv_table=>factory( IMPORTING r_salv_table = gr_table CHANGING t_table = ispfli ).
      gr_functions = gr_table->get_functions( ).
      gr_functions->set_all( abap_true ).
      gr_display = gr_table->get_display_settings( ).
      gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
      gr_display->set_list_header( 'This is the heading' ).
      gr_columns = gr_table->get_columns( ).
      gr_column ?= gr_columns->get_column( 'CITYTO' ).
      gr_column->set_long_text( 'This is long text' ).
      gr_column->set_medium_text( 'This is med text' ).
      gr_column->set_short_text( 'This is sh' ).
      gr_column ?= gr_columns->get_column( 'CITYFROM' ).
      color-col = '6'.
      color-int = '1'.
      color-inv = '0'.
      gr_column->set_color( color ).
      gr_sorts = gr_table->get_sorts( ).
    *gr_sorts->add_sort( 'CITYTO' ).
      gr_sorts->add_sort( columnname = 'CITYTO' subtotal = abap_true ).
      gr_agg = gr_table->get_aggregations( ).
      gr_agg->add_aggregation( 'DISTANCE' ).
      gr_filter = gr_table->get_filters( ).
      gr_filter->add_filter( columnname = 'CARRID' low = 'DL' ).
      gr_layout = gr_table->get_layout( ).
      gr_layout->set_key( key ).
      key-report = sy-repid.
      gr_layout->set_save_restriction( cl_salv_layout=>restrict_none ).
      gr_table->display( ).
    Rgds,
    Premraj

    Hi,
    1)you need to give the function code to that save in the Function Keys of that screen from the GUI Status.
    2) while filling the field catalog of that field you need to put the        
    wa_fieldcat_edit-edit = c_x.
    i.e use the edit and append to that field catalog internal table.
    for more infomation you can refer to below links:
    problem with alv edit and save
    *Edit* and *Save*  for the selected records in ALV
    solves your problem
    Thanks!!

  • I'm having trouble turning on my ipad and how can I tell when it's fully charged?

    I'm having trouble turning on my ipad and how can I tell when it's fully charged?

    Try a Reset - hold the Home and Sleep/Wake buttons down together for 15 seconds.
    Have you read the User Guide?
    Unless the charge indicator has bee turned off you see the percentage charged in the top right of the screen.

  • How can i tell what generation of ipod shuffle I have?

    We have various ipods and I need to know what generation of ipod shuffle we have.  How can if tell?

    This document about resetting the iPod shuffle shows a picture of the four types.
    http://support.apple.com/kb/ht1655
    1st gen - It is white plastic and looks like a USB "thumb drive."  It as a full USB connector on it, so you don't need a cable to connect it to the computer.
    2nd gen - It is a clip-on design.  It has separate switches for setting playback order (shuffle or in order) and for turning ON/OFF.
    3rd gen - It is a narrow clip-on design, with no playback control buttons on the shuffle itself.  You use the "remote control" buttons on the ear buds cord.  It has the new VoiceOver feature.
    4th gen - Apple went back to the 2nd gen style, except smaller.  It has only one switch that is both for setting playback order (shuffle or in order) and turning ON/OFF, plus a small VoiceOver button (for using the VoiceOver feature introduced in 3rd gen)

  • How can I tell if my songs got replaced by Itune version?

    I just subscribed to Itunes Match and it has finally uploading 2929 songs. How can I tell which of my songs got matched and I can get a higher quality version from Itunes? I want to replace those songs in my library.
    Thanks!

    You must enable the "iCloud Status" column. Switch to Song view and pull down View > View Options. Select the option for iCloud Status then close the little window. You will now be able to see the staus of each song. To download matched tracks, delete the original track from the library but do NOT hide the track in the cloud. Then click the download button.

  • I just got an IPAD2 on Saturday.  With the Mac, I could always tell when programs were open/running by going to the menu bar.  How can I tell what programs are running in the background.  I am struggling with not being able to go to a menu bar at the top

    I just got an IPAD2 on Saturday.  With the Mac, I could always tell when programs were open/running by going to the menu bar.  How can I tell what programs are running in the background.  I am struggling with not being able to go to a menu bar at the top

    You can see which apps are open and/or recently used by double-clicking the home button to bring up the taskbar at the bottom of the screen (not all apps that appear there are active) - you can then close apps on it by pressing and holding one of them for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar. If you have an app 'open' on-screen then it won't appear on the taskbar, you will need to go back to the homescreen first, and it should then show when you next open the taskbar.
    If you haven't already got a copy then you can download the iPad manual from here : http://support.apple.com/manuals/#ipad

  • [p7-1240] How can I tell which graphics cards will work with my motherboard?

    I recently went through the nightmare of trying to install a Gigabyte GTX 650 in my PC. After a few days of struggling and scouring the internet for answers, I discovered that it is incompatible with the BIOS on my motherboard, and HP does not offer BIOS updates. I returned the card and am now looking for a new one, but I am unsure of which cards will work now, since my computer met all of the system requirements for the graphics card, and It stil ldid not work. Since GPU manufacturers do not list BIOS specs under system requirements, how can I tell if a graphics card will work with my sytem?
    My computer is a p7-1240 with an upgraded 520W PSU and approximeately 11" of room to install the card.
    This question was solved.
    View Solution.

    Thexn, welcome to the forum.
    The problem is, many of the newer video cards require the computer to have a full UEFI BIOS.  HP began using one in mid-October, 2012.  Before this date the BIOS is Legacy.  This is why the video card didn't work with your computer.
    I don't know what you want to spend for a card, but MSI makes a GTX 750ti that has a hybrid VBIOS.  It has a switch to change to Legacy or UEFI.  There is a video link directly below the picture of a card.  Paul from Newegg gives a full description of the card.
    I like EVGA cards the best.  Their Tech Support has given me a lot of information about their cards.  However, you have to go back to a GT 640 card to find one of their cards that doesn't require the UEFI BIOS.  They do have some updates for their BIOS'es that solve the problem, but you have to call them for the exact cards.
    Please click the "Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • How can I tell where the OS (Snow Leopard) is? I'm not sure if it is on the SSD or the regular HD.

    How can I tell where the OS (Snow Leopard) is? I’m not sure if it is on the SSD or the regular HD. I just had a rough weekend trying to back things up with Time Machine and I think the OS was copied to the regular HD, or could be in two places? How do I find where the OS is? If it is on the regular drive I want to put it on the SSD.
    Thank you very much!

    Some recent systems don't observe that convention - not sure at the moment about Snow Leopard but I have a feeling it doesn't.
    Copy the following into the AppleScript Editor (in Applications/Utilities)
    set dsk to the path to startup disk as string
    display dialog dsk
    click the 'run' button.

  • My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more.

    My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more. Was working while watching a movie but when I pulled it out from the computer and put it back in the system would no longer mirrorr the screen on the TV.

    The best option is an appointment at an Apple store genius bar.  The evaluation will be for FREE!
    Ciao.

  • How can you get your submit buttons to be a single click instead of the default double click?  (The

    How can you get your submit buttons on the quiz template to be a single click instead of the default double click?  (The option to choose double click or not is not showing in properties for this).

    Hmmm... Submit button doesn't need a double click at all. Maybe you are talking about the two-step process? When you click on Submit, the feedback appears with the message to click anywhere or press Y. Is that what you are talking about? If you are talking about a real double-click, something must be wrong in your file. And which version are you using?
    http://blog.lilybiri.com/question-question-slides-in-captivate
    Lilybiri

  • My ipad does not have the amount of GB on the back and in the settings it says 56gb! Also there is no setting called regulatory. It is an ipad 4 retina w wifi that i got as a Christmas present. Could it be a fake? How can i tell?

    My ipad does not have the amount of GB on the back and in the settings it says 56gb! Also there is no setting called regulatory. It is an ipad 4 retina w wifi that i got as a Christmas present. Could it be a fake? How can i tell?

    The amount of storage that is shown on the box and in Settings are calculated differently - the package uses 1 billion bytes as a gig (i.e. decimal), whereas in Settings it's shown as the binary definition : http://support.apple.com/kb/TS2419
    Also some space has been used for iOS, the built-in app and some space is lost due to formatting.

Maybe you are looking for