How to gray out textbox and button

Hello, I am new to Java, and I am do not know how to disable a textfield and a button, as in just gray it out. Does anyone know how to do this.
Button max = new Button("Max");
TextField box = new TextField("Enter your name",20);
box.whatDoIputHere(false);
max.whatDoIputHere(false);Thanks for any help

    box.setEnabled(false);
    max.setEnabled(false);

Similar Messages

  • What can I do, iPad disabled/lockout and iTunes keeps asking for password, I cannot restore...iTunes grays out backup and restore but my iPad and iPod shows on Apple etc..

    What can I do, iPad disabled/lockout and iTunes keeps asking for password, I cannot restore...iTunes grays out backup and restore but my iPad and iPod shows on Apple etc..???

    Try and force iPad into Recovery Mode:
    1. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
    If you cannot turn off the device using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the device turns off, release the Sleep/Wake and Home buttons.
    2. Connect USB cable to computer, leave the other end alone
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPad
    Note: You need to be patient and repeat the above many times to recover your iPad

  • Create Window with Textbox and Button For getting Input Value

    Hi All,
    I have create plugin application but i want to take input from user. Therefore i want to create window with textbox and button.
    please may i get solution...

    Or if that's all you need to do, just use JavaScript or a form.

  • HT1391 Hi can anyone tell me how to find out what and when my last purchases were made from the App Store ? I think my kids used all my credit

    Hi can anyone tell me how to find out what and when my last purchases were made from the App Store ? I think my kids used all my credit

    .from iTunes, go to View > Show sidebar
    From sidebar > Itunes Store > Click top left on your Apple ID email address > Account > ...scroll down > Purchase History > View All

  • How to gray out certain fields on the selection screen based on the radio b

    HI All,
      I have an ALV report. On the selection screen I have 2 radio buttons ..for eg..A and B.
    When radio button A(its on by default) is on..certain fields not relevant to this should be grayed out. Similarly when radio button B is on, certain fields should be grayed out.
    I did the AT SELECTION SCREEN OUTPUT and also did the
    LOOP AT SCREEN....ENDLOOP logic. The logic works but when I click the radio button B...the screen fields automatically does not gray out. I have to press ENTER and then its grays out.
    I know a USER_COMMAND needs to be attached.
    Can anyone give me a step by step details of how to do this. I truly appreciate it. if a screen painter thing is required..please give me the tcode and step by step detail to do this.
    Thanks

    Try this one too:
    REPORT ztest.
    TABLES: mara,
            bkpf.
    CONSTANTS:
                  c_pos(3) TYPE c VALUE 'POS',
                  c_acc(3) TYPE c VALUE 'ACC',
                  c_all(3) TYPE c VALUE 'ALL',
                  c_x TYPE c VALUE 'X'.
    The Selection Screen Definition
    SELECTION-SCREEN BEGIN OF BLOCK b_0 WITH FRAME TITLE text-000.
    SELECT-OPTIONS: s_mara FOR mara-matnr.
    SELECTION-SCREEN END OF BLOCK b_0.
    SELECTION-SCREEN BEGIN OF BLOCK b_1 WITH FRAME TITLE text-037.
    PARAMETER: rb_all RADIOBUTTON GROUP rb1 USER-COMMAND rad default 'X',
               rb_acc RADIOBUTTON GROUP rb1.
    SELECTION-SCREEN END OF BLOCK b_1.
    SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-011. "Acct
    SELECT-OPTIONS:   s_blrtc1 FOR bkpf-blart MODIF ID acc,
                      s_blrti1 FOR bkpf-blart MODIF ID acc.
    SELECTION-SCREEN END OF BLOCK b_2.
    SELECTION-SCREEN BEGIN OF BLOCK b_3 WITH FRAME TITLE text-011. "Acct
    SELECT-OPTIONS:   s_blrtc2 FOR bkpf-blart MODIF ID all,
                      s_blrti2 FOR bkpf-blart MODIF ID all,
                      s_blrtv2 FOR bkpf-blart MODIF ID all.
    SELECTION-SCREEN END OF BLOCK b_3.
    AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      PERFORM f0200_screenfield_hide_logic.
    initialization.
      PERFORM f0200_screenfield_hide_logic.
          FORM f0200_screenfield_hide_logic                             *
    FORM f0200_screenfield_hide_logic.
      LOOP AT SCREEN.
        IF rb_acc = c_x.
          IF screen-group1 = c_all.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
        IF rb_all = c_x.
          IF screen-group1 = c_acc.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDFORM.                    " F0200_SCREENFIELD_HIDE_LOGIC

  • Grayed Out "To Do" Button in Mail

    The "to do" button in mail is grayed out. I used to be able to link emails with "to dos" but am no longer able to. I've tried "right clicking", making sure that the mail calendar to link it to is not a subscribed to calendar, and high-lighting the text in the actual email itself. I've also searched online for an answer but not have worked so far. I know this used to work!!!! Any suggestions would be welcomed.

    I have the same problem and I wondered how one makes sure that the mail account has a CalDAV calendar. I had tried all the ways I could think of to create a todo from mail 1 From message window tool bar while is a yellow tick it is grayed out, 2 From file New ToDo also grayed out, and 3 selecting the text and right clicking also grayed out . Only have one IMAP account . Interestingly MobileMe will not allow me to upgrade my calendar.
    Thanks
    Peter

  • Asmca has grayed out Volumes and ASM Cluster File Systems 11.2.0.3

    I've got a two node cluster which is up and running with the latest 11.2.0.3 grid install on Oracle Linux 6.3
    I need to get a shared storage location I can use for File I/O testing, ASM looks like the solution with an ASM Cluster File System.
    When I run asmca I do not have the ability to create these volumes or file systems as they are Grayed out.
    I found some instructions on how to get it to work, and they said to use acfsload to start up the required daemons:
    [root@oracleA bin]# ./acfsload start -s
    ACFS-9459: ADVM/ACFS is not supported on this OS version: '2.6.39-300.17.3.el6uek.x86_64'
    I installed Patches: 13146560, 14596051 - Which I thought would fix the problem. Rebooted after successfully applying the patches, but asmca still shows them greyed out
    and not supported on this OS error persists.
    I see some posts online saying to edit osds_acfslib.pm and update it to allow for the supported ORACLE version
    Right now it shows: ($release =~ /^oraclelinux-release/))) # Oracle Linux
    under /etc it only has oracle-release - could that have something to do with it not passing the check?
    uname -r
    2.6.39-300.17.3.el6uek.x86_64
    From what I can tell this kernal should support asm..
    Any help in getting these shared storage asm disks setup would be very helpful, oracleasm creates them and sees them fine for databases. Thanks.

    Turns out the Kernel version 2.6.39 does not have support for the ASM Drivers for the ACFS mounting.
    I'm going to have to use Oracle Linux 6.2 (instead of Oracle Linux 6.3) and rebuild my RAC to get a supported version of the drivers -> Kernel version 2.6.32
    http://docs.oracle.com/cd/E11882_01/install.112/e16763/oraclerestart.htm#BGBGEDGA

  • How to gray out fields in VA01 & VA02

    Hi All,
    My requirement is to restrict manual entries of line items.
    While creating a  credit memo with refrence to billing document the items from billing document gets copied to this document.
    User wants to restrict entering more line items apart from these.
    Therefore the rows after the last line item should be grayed out i.e in display mode. (Not the columns).
    This should happen in VA01 & VA02 transaction.
    I have found the Userexit_field_modification in include MV45AFZZ.
    Also the screen nunmber is 4902 and table control TCTRL_U_ERF_GUTLAST whose screen input should be 0.
    Please let me know if there is some other way by which this can be achieved also if this is correct; then how should I proceed with the logic.
    Thanks in advance.
    Regards,
    Darpana.Ahire

    Hi,
    For doing so you can use the concept of the transaction variants. Using transaction variants, you can do the below:
    1) Make fields mandatory on screen
    2) Hide fields on the screen
    3) Default values on screen fields
    4) Make fields input disable on screen.
    Hence for doing this, go to SHD0 transaction and do the recording for the standard transaction. Once done Save the transaction variant.
    Finally from menu((tab page: Standard Variant in SHD0): Activate as Standard Transactions variant.
    Give the Name as your Transaction variant name.
    Once you active the transaction variant as the standard variant, then if the std transaction is called, the screens which you defined in the transaction variant will be called.
    No code changes need to be done. The transaction variant will only change the appearance of the screens
    Regards
    Shiva
    Edited by: Shiva Kumar Tirumalasetty on Sep 11, 2009 4:41 PM

  • How to grayed out fields in Pop screen in FBL1n while doing mass change

    Dear All,
    I want encorporate user specific screen with some edit fileds  with validations and some grayed out fields in pop screen
    in FBL1N Transaction while mass change option.
    Can you tell how can achive if any BADI or enhance pont or BTE or any exit .
    Regards
    Amar

    Hi amar,
    try with transaction variant
    with transaction variant we can hide or grey out fields
    bye
    T Bharat Bhushan

  • TS1559 4s iphone grayed out wifi and have taken all steps and still no wifi

    I have turned the phone on and off. Reset the network. Reset the entire phone and still no wifi. When I updated it has never worked properly.
    I have read that many people are having this problem. Why does Apple not have a fix for this.  It is obviously something wrong with the phone.
    If anyone has any suggestions on how to reset the phone to get back Wifi let me know.

    Grayed out WiFi is almost always a hardware failure that requires replacment or repair of the phone.  If you tried everything in the article that led you here without success, take to to Apple or an Apple authorized service provider.
    FYI, do NOT try the "freezer" or "hairdryer" methods you may see posted.  At best, they are only temporarly fixes and are likely to cause more damage.

  • Why has my wifi grayed out? And why can't I connect to wifi anymore?

    A week ago my WiFi just stopped connecting, and anytime I try to turn it on again it is grayed out. How do I fix this?

    iOS: Wi-Fi settings grayed out or dim - Support - Apple

  • How to create a textbox and dropdown list in Java similar to google search

    Hi,
    I want to create a textbox and dropdown in java very much similar to google search . As user types in the letters it should display the dropdown list similar to google. Can anyone help me with this one asap.
    Thanks
    Lavanya

    But my real problem is how to apply the chmod 777 on a folder containing spacesSo why not say so in the first place?
    Runtime.exec ("chmod 777 My\\ Folder");Runtime.exec(new String[]{"chmod", "777", "My Folder"});
    That is why I chose the example of mkdirYour reasoning on this point is incomprehensible. You wanted help with A so you asked about B. Just wasting time.

  • How to find out CPU and memory usage for an instance?

    Hi DBA Gurus,
    How to find out CPU usage and memory usage for an instance?
    Any information is appreciated!
    Thank you!
    Robert

    you can calculate cpu usage by adding fallowing three factors which you can get from v$sysstat
    1. Parse CPU time : This represents the percentage of CPU time spent parsing SQL statements. Parse time CPU can be a strong indication that an application has not been well tuned. High parse time CPU usually indicates that the application may be spending too much time opening and closing cursors or is not using bind variables.
    2. Recursive CPU time : Sometimes, to execute a SQL statement issued by a user, the Oracle Server must issue additional statements. Such statements are called recursive calls or recursive SQL statements. For example, if you insert a row into a table that does not have enough space to hold that row, the Oracle Server makes recursive calls to allocate the space dynamically if dictionary managed tablespaces are being used.
    Recursive calls are also generated due to the inavailability of dictionary info in the dictionary cache, firing of database triggers, execution of DDL, execution of SQL within PL/SQL blocks, functions or stored procedures and enforcement of referential integrity constraints
    3. Other CPU time : This represents the percentage of time spent looking for buffers, fetching rows or index keys, etc. Generally, \"Other\" CPU should represent the highest percentage of CPU time out of the total CPU time used.
    total memory used you can calculate adding
    total_agrigate_area+sga
    memory usage on os level you can know by fallowing commands
    vmstat 5 20 depending upon os

  • Voiceovers - How to Edit Out Breaths and Move Audio Track Together

    I am a Voiceover professional and new to Logic Express. I have learned how to edit out breaths between sentences to conserve time if I have to, but I do not know how to move the track together to eliminate the resulting "silence gap". Is there a way to grab/select and drag?

    I think you will find this free video tutorial helpful. Click on "Organizing the Takes."
    Ron

  • Grayed-out airport and bluetooth options (pulldown-menu)

    Hi,
    since the last week, i got some trouble with pulldown-menus of the desktop menu-bar.
    everything in an apple (no third-party stuff) pulldown menu is grayed-out.
    grayed-out:
    bluetooth
    airport
    battery
    time machine
    working:
    MobileMe
    Audio
    Language
    Time
    still i can change these options through the system preferences.
    i tried the basic, "switch of and on" but this does not work.
    because i do not have any more ideas and this problem is a little peeving, i hope someone here can help me.
    thanks in advance!
    Ps.: sorry about my language abuse
    Message was edited by: freeman339

    you mean in the sharing and permissions for the airport utility?
    if so, yes. i'm running as admin there.
    i can change networks through the system preferences menu. but not through the finder ribbon under the airport signal fan

Maybe you are looking for