How do you set a button to unselectable?

How do you set a button so it us unselectable?

... or even remove ot form the panel (less confusing for the client)
    if(e.getSource()==button1){
        // do things and
        myPanel.remove(button1);
        myPanel.add(newInterestingButton);
}OR: use a boolean
     if(e.getSource()==button1){
        if(allowUseButton1){
           // do things and set the condition false
           allowUseButton1 = false;
        }  // and tell them
        if(!allowUseButton1){
           myTextArea.setText("Please use the newInterestingButton");

Similar Messages

  • How do you set up Port Forwarding for ARD 2.2 in AEB N?

    Help,
    I'm a novice at Apple Remote Desktop (ARD) - not an IT guy, so it has to be pretty basic and detailed.
    How do you set up Port Forwarding for ARD 2.2 on the Apple Airport Extreme BS router, 802.11 N. I have one at each end of the internet connection. At one end I have an Airport Extreme N router with 2 macs and eventually 1 windows XP machine (if I can) that I would like to be able to connect to over the interenet (the clients) and at the other end, I have a Mac with ARD 2.2 installed also with an Airport Extreme N router. Note: Both routers use Static IP addresses and all computers use static IP's internally not through DHCP. What are the settings or directions to do this.
    I have read and printed out the directions for Configuration of ARD 3.0 that are posted many times in the ARD discusion group, but it uses a Linksys router ( http://www.starkpr.com/ard.htm posted by Dave Sawyer). The Mac router is different, particularly with the place to set a Private IP address. I'm not sure about alot of things, but especially about the Private IP address, what number do I set it to, the one that is in my Network connections list? It automatically changes to a different number in AE N setup for Port Forwarding (by one) as if it is not suppose to the same?????
    Are there any directions available that are as straight forward for the Airport Extreme N router, as the one's that are listed here for the Linksys Router's? ( http://www.starkpr.com/ard.htm )
    Any and All help will be greatly appreciated.
    P.S. I know I should have 3.0 but bought 2.2 just weeks before 3.0 came out and they would not give me an upgrade price, so I'm waiting for 4.0 to upgrade.
    Thanks,
    Jim

    Try the following for each AirPort Extreme ...
    AEBSn - Port Mapping Setup
    To setup port mapping on an 802.11n AirPort Extreme Base Station (AEBSn), either connect to the AEBSn's wireless network or temporarily connect directly, using an Ethernet cable, to one of the LAN port of the AEBSn, and then use the AirPort Utility, in Manual Setup, to make these settings:
    1. Reserve a DHCP-provided IP address for the host device.
    Internet > DHCP tab
    o On the DHCP tab, click the "+" (Add) button to enter DHCP Reservations.
    o Description: <enter the desired description of the host device>
    o Reserve address by: MAC Address
    o Click Continue.
    o MAC Address: <enter the MAC (what Apple calls Ethernet ID if you are using wired or AirPort ID if wireless) hardware address of the host computer>
    o IPv4 Address: <enter the desired IP address>
    o Click Done.
    2. Setup Port Mapping on the AEBSn.
    Advanced > Port Mapping tab
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s): 3283
    o Public TCP Port(s): 3283
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s): 3283
    o Private TCP Port(s): 3283
    o Click "Continue"
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s):
    o Public TCP Port(s): 5900
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s):
    o Private TCP Port(s): 5900
    o Click "Continue"
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s):
    o Public TCP Port(s): 5988
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s):
    o Private TCP Port(s): 5988
    o Click "Continue"
    (ref: "Well Known" TCP and UDP ports used by Apple software products)

  • How do you Set up a Family Pack sub-account

    how do you Set up a Family Pack sub-account i have purchased a Family Pack account and enter the activation key and i can not find where to set up the sub-account.
    please help
    Denis

    Thanks Shepart
    when i activated the account i ticked the upgrade button, should i have ticked the new account button?
    anyway, when i do what you say (below) there is not a manage "Accounts button" so i went to reactive it again ( for a new account) and is says that the activation key is all ready in use.
    Denis, go to www.mac.com and sign into your account. Click on the word "Account" at the top of the left hand column. You will need to sign in again for security purposes. Once your account settings show up, click on the "Manage Accounts" button and you can take care of everything.
    i think i hit a brick wall !!
    Cheers
    Denis

  • How do you set up the passkey between the Mac & Palm?

    Hi all,
    I need help with a couple of things relating to bluetooth and Mac;
    a) when I try to HotSync the Palm TX and iBook(OS 10.3.9) using BT, I get an error message saying "can't initiate Hotsync because port is in use by another application'.
    b) how do you set up the passkey between the Mac & Palm? I can't work out how to input anything on the Palm at the step where it asks for the passkey.
    thanks
    iBook 1.2GHz   Mac OS X (10.3.9)  

    Palm has this to say about the issue:
    'Unable to initiate HotSync operation because the port is in use by another application.'
    This error can occur on the Palm™ Zire™ 72 handheld after setting up a Bluetooth® HotSync® connection. When you configure the Bluetooth application on the handheld for synchronization (or when you set up a Bluetooth connection in the Connections preference screen), the HotSync button in the Writing Area may try to launch a Bluetooth connection, regardless of the connection selected in the HotSync application on your handheld. The HotSync icon in the Writing Area will always try to connect using whatever method was last used. When you set up Bluetooth HotSync, it used Bluetooth, and now tapping the icon in the Writing Area will result in a Bluetooth connection.
    The issue arises if you launch the HotSync application on your handheld, and select the "Cradle/Cable" option from the pulldown menu, and then tap on the HotSync icon in the Writing Area. Your handheld will still try to perform a Bluetooth HotSync operation, because that was the method last used. You will see an error message, and won't be able to synchronize.
    Unable to initiate HotSync operation because the port is in use by another application.
    Why does this happen?
    Because your handheld was set up for Bluetooth, tapping the HotSync icon in the Writing Area should launch a Bluetooth HotSync. But if you select a different method in the HotSync application, your handheld will try to connect using that method as well. The HotSync application is unsure which method to use, and you will see the error message.
    What should I do?
    If you see this error, here's how to correct the issue:
    1. Launch the HotSync application on your handheld.
    2. In the pulldown menu at the center of the screen, choose the connection method by which you wish to synchronize.
    3. Then, instead of tapping the HotSync icon in the Writing Area, tap the large onscreen HotSync icon in the middle of the HotSync application screen.
    4. Do this every time you wish to synchronize using Cable/Cradle.
    5. Whenever you want to synchronize using Bluetooth, exit the HotSync application and tap the HotSync icon in the Writing Area.
    6. This will allow you to keep multiple connection methods for synchronization, and the flexibility of alternating between them.
    For more information on such issues, perform a keyword search here, in the Palm Macintosh Support area:
    http://www.palm.com/us/support/macintosh

  • How do you set up nested rules for iTunes smart playlist

    How do you set up nested rules for a iTune smart playlist

    Hello \"alice\",
    It sounds like you want to add additional criteria to your Smart Playlists.  I found an article with steps you can use to refine your Smart Playlist.  Step 2 specifically has what I think you are looking for:
    2. To have iTunes add songs that match specific criteria, make sure to select "Match the following rule," then make your selections from the pop-up menus.
    For example, you might want iTunes to only add songs that are by a particular artist, or songs with at least a four-star rating.
    To add additional matching criteria, click the Add button.
    You can find the full article here:
    iTunes: How to create a Smart Playlist
    http://support.apple.com/kb/ht1801
    The article says it is archived.  In the current version of iTunes, in step 1 you will select File>New>Smart Playlist.  Also, if you need to edit an existing Smart Playlist, you can right click (or hold command while you click) on it and select Edit Smart Playlist. 
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How do I set the buttons on my website to trigger an iFrame when I hover over them?

    How do I set the buttons on my website to trigger an iFrame when I hover over them?  At the moment they work when I click on them.
    I have tried everything to try and get them to work when I hover over them.
    If anybody could point me in the right direction or give me any help it would be greatly appreciated.
    imbriggy

    I think this would pose a major usability issue for touch screen devices that have no mouse and thus don't respond to mouseover/hover.  In that sense, OnClick is much more reliable.   But to answer your question, you would need to invoke the event with JavaScript.
    Nancy O.

  • How do you set an image into the background of a JPanel or JFrame?

    How do you set an image into the background of a JPanel or JFrame?

    Something like this, Ive thrown in an ImageIcon on a
    button too for good measure.
    import java.awt.*;
    import javax.swing.*;
    public class JFrameImage extends JFrame {
    public JFrameImage() {
    Container c    = getContentPane();
    JPanel panel = new JPanel(){
                 public void paintComponent(Graphics g)     {
    ImageIcon img = new
    = new ImageIcon("background.jpg");
                      g.drawImage(img.getImage(), 0, 0, null);
                      super.paintComponent(g);
            panel.setOpaque(false);
    ImageIcon icon = new ImageIcon("onButton.jpg");
    JButton button = new JButton(icon);
    panel.add(button);
    c.add(panel);
    public static void main(String[] args) {
    JFrameImage frame = new JFrameImage();
    frame.setSize(200,200);
    frame.setVisible(true);
    Going totally fancy pants
    ImageIcon bigImage = new ImageIcon(bgImage.getImage().getScaledInstance(getWidth(), getHeight(),Image.SCALE_REPLICATE));
    g.drawImage(bigImage.getImage(), 0, 0, this); Will scale the image to the size of the panel
    whereas
    for (int y = 0; y  < getHeight(); y = y + image.getHeight(null))
    for (int x = 0; x< getWidth(); x = x + image.getWidth(null))
    g.drawImage(image, x, y, this); Will give a tiled effect
    Try tiling with an animated gif and bring your processor to a standstill.

  • Speed dialing - how do you set it up?

    Hi,
    How do you set up the speed dial buttons for frequently used numbers?
    The Answerphone is set, can't seem to find a way to set the other buttons!
    Any ideas anybody?
    Thanks...

    Hi Archiver,
    Welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    You can also add contacts to the homescreen for faster calling to specific contacts. 
    1. Tap and hold finger on Homescreen
    2. Tap Apps
    3. Tap Shortcuts
    4. Tap Direct Dial
    5. Choose contact
    Once chosen the contact will be added to the Homescreen and can simply be pressed to make a call.
    i hope this helps.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How Do You Set Mail To 'Manual' ?

    Never had problem with iPhone until yesterday. I am not receiving 'push' e-mail anymore. I did not do any changes to the iPhone at all. Any e-mail now I have to go to inbox and click on the curved arrow symbol at bottom left of page in order to load the waiting e-mails. In a different posting someone mentioned to test 'push' function by setting e-mail to 'manual' and then sending your Yahoo account an e-mail from your computer (I assume using a different e-mail service). In the 'settings' menu for 'mail' I do not see where you set for 'manual'. How do you set mail to 'manual' setting? And do you think I should just RESET the iPhone (using the iPhone or hooking it up to iTunes on the computer to RESET) ?

    I have no other e-mail accounts set up. Anyway I did RESET my iPhone (using the RESET button on the iPhone) and all is well again (how long I do not know). My e-mails are being 'pushed' again so that I can see from the main menu the little red dots (with the numerals inside) showing how many e-mails are waiting for me. I love this feature. I had 'push' e-mail on my ex-Blackberry. BUT, I do not see the AUTO-CHECK anywhere. I am heading over to the Apple Techies at my local Apple store to ask them about this missing AUTO-CHECK. I have a feeling you need two account set up on your iPhone for this feature to appear. I could be wrong. Thanks, everybody........

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • How do you set up multiple accounts in itunes so phones don't automatically sync each others data ?

    How do you set up multiple itunes accounts to prevent multiple phones from sharing contact data?

    To add to Rod's answer, I have been blogging to explain more in detail the work flows for Question and Score slides, and some tweaking possibilities in these articles:
    http://lilybiri.posterous.com/question-question-slides-in-captivate
    http://lilybiri.posterous.com/question-question-slides-part-2
    Lilybiri

  • How do you set up separate facetime accounts under one apple id

    how do you set up separate facetime accounts under one apple id

    This is possible, but I haven't found any official Apple topics about it, so I will share a nice web article about it on a Mac fan website:
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    Hope this helped!

  • How do you set up iphone 5? everytime i put it into the computer it erases all my contacts how do i stop this and get my contacts back?

    how do you set up a iphone 5 everytime i conect it to the computer it erases all my contacts how do i put them back on my phone and stop the computer erasing them again?

    Are your contacts not on your computer?

  • How do you set up two different ipads on one computer ?

    I purchased a new ipad for my wife and want to get her started but we both use one imac as our desktop system.  How do you set up two different uses on one computer.
    Thanks,
    Dave

    Other options not covered in the article:
    1) You can plug both in under the same computer username and same iTunes Apple ID and give each device it's own name. You should be able to manage them as separate devices with different media, apps and screen layouts. All of your media would be in a common pool, though.
    2) Under one computer username, you can login and logout of two different iTunes Apple IDs. This option is cleaner with two computer usernames but it can be done with one.

  • How do you set NLS_LANG environment variable in report builder

    How do you set up the reports builder environment to display foreign fonts.
    So far what I read makes me think that in report builder I have to set the NLS_LANG environment variable .
    If anyone has done this is that true and if so how.
    Also the languages I want to use are the following.
    Armenian
    Cambodian
    Chinese
    Russian
    Tagalog
    Vietnamese
    How do I find the NLS_LANG environment variables for these.
    Where I am at now+
    I have to set the DEVELOPER NLS LANG. I see the NLS LANG in the registry and I guess I have to add the DEVELOPER NLS LANG.
    Now I am searching for syntax. If anyone knows the syntax for those languages please let me know and how do I set more than 1 at a time.
    Howard
    Edited by: csphard on Apr 14, 2010 5:17 PM
    Edited by: csphard on Apr 14, 2010 5:22 PM
    Edited by: csphard on Apr 15, 2010 9:02 AM

    Hello Howard,
    Check out the following link here you can find your desired NLS parameters.
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    And about the NLS_LANG for developer why you want to create for developer. Its is already there in REGISTRY. Just seaching in developer registry you can find there.
    how do I set more than 1 at a time.
    You can set only one NLS_LANG parameter at a time.
    -Ammad
    Edited by: Ammad Ahmed on Apr 15, 2010 8:52 PM

Maybe you are looking for

  • I ned help i need to start fresh new firefox dont know how to remove old profiles its totally ruined i can use it but not like suppose to thank you for your time

    there are so many things not working right i really do not know where to start if someone counld assist me PERSONALLY hands on that would be very much appreciated i just need to delete ALL old files the whole firefox and i need someone willing to hav

  • Twin video monitors (bug?)

    Ever since I changed from Tiger to SL about 90% of my logic projects open on the right side monitor only, They used to open across both monitors every time. Is there anything I can do to fix this?

  • Undo Accounting Process 11i - Analysing ouput

    Hi I have run the Undo Accounting script as solution provided on one SR for a Payable Invoice Accounting issue The script run was as per below: Run UndoAtgh.sql Enter Org ID: XX Enter option 1 for Display Selected Event Details Enter option 1 to disp

  • Clip audio is out of sync with video

    After analyzing the clip the code tells the tale. The audio is "shorter by 1 1/2 seconds yet the time line doesn't reflect it. I want to fix the problem but the tool I found requires the clip (red rectangular box with the +/- info.) to option/click o

  • Trade in value not listed

    I am currently playing through The Evil Within and am about 75% done. I was hoping to trade it in next week and apply it to a preorder, but it looks like no trade value is listed. I see borderlands the pre-sequel which came out this week is listed, b