How to ignore any input on the component

i want to make a JFrame Container ignore all input event (ie. key, mouse) until "start" button is pressed .
for example , there are button on the Container. but these buttons are prevented from be pressed until "Start" button is pressed.
i want to implement those function not using setEnabled(false) method. because it makes button's shape changed.
Actually what i try to make is a game that blocks all the input from user until game is started .
any comment will be helpful.
thank you

Try using a [url http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html]Glass Pane.

Similar Messages

  • Can anyone explain to me why sometimes my ipad2 locks up and won't respond to any input from the keyboard.

    My iPad 2 locks up sometimes and won't respond to any input from the keyboard. Have to reboot in order to fix the problem.

    You have 3 choices:
    1. Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears, ignore the Slide to Power Off that appears)
    Note: You will not lose any data.
    2. Restore from backup using iTunes
    3. Restore as new without the backup

  • How to get form input in the same portlet using pageflow

    Hi this is premkumar
    i created 2 portlet in a portal how to get form input in the sampe portlet using
    pageflow
    help as early as possible

    Do to the complexity of the program we need to run it with sequences.  This is because we need to aquire data with DAQ until it reaches a certain point and then stop collecting so that it can do its process (only once for all times criteria is met), and then loop around till again collecting after DAQ drops back below certain point looking to once again reach that point.  Another flat sequence is going outside of this where I want to put the prompt and have a user input to affect how many times that that the inner loop is run (No a For Loop instead of the while loop will not work either for other reasons). 
    I just want to know if after the program starts you can have a user input that will change the effect of the rest of the programs action based on the number inputed.

  • How doi print Any variable at the end of page in ALV report?

    Hi,
    Anyone can tell me that How do i print Any variable at the end of page in ALV report?
    Exmale: at the ende of alv report i want to print total no of employee who has taken house loan or education loan.

    Hi,
    Go through these links
    Thread in sdn regarding FOOTER IN ALV
    [ALV  FOOTER;
    Wiki in sdn regarding HEADER AND FOOTER IN ALV
    [https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP%20Objects%20-%20ALV%20Model%20-%20Using%20Header%20and%20Footer]
    Header and Footer in ALV
    [http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm]
    Hope this helps.
    Thank you,
    Pavan.

  • How do i get input from the user?

    For example if i wanted to ask "Whats your favorite number" and then get the input from the user and assign it to a variable how would i go about doing that?

    hi,
    if you want to get input from your console your should work with io(input and output).The BufferedReader class, InputStreamReader class
    you should import "java.io.BufferedReader" and "java.io.InputStreamReader" package, and do something like this:
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    String favoriteNumber;
    System.out.println("Whats your favorite number ");
    favoriteNumber = input.readLine();
    System.out.println ("Your favorite Number Is " + favoriteNumber);
    if its a gui you should import "javax.swing.JOptionPane" and do the following
    String favoriteNumber = JOptionPane.showInputDialog(null, "Enter your favorite Number", "Favorite Number", JOptionPane.INFORMATION_MESSAGE);
    anjiie([email protected]).

  • How to ignore 1st row form the file(csv) sender CC

    Hi,
    I have a CSV File (File sender) that I need to load with PI.I want to Ignore 1st row from the file.
    For example the File contains 10 rows  but PI  need to read  the data from 2nd row.
    because in the 1st row contains header data like name, number, mobile, address, etc., I don't want to read this 1st row. I want to read only the data which starts from the 2nd row.
    can you pls tell me the ignore command File Receiver CC
    I am using these commands.
    Record structure: item,*
    item.fieldSeparator: ,
    item.endSeparator : 'nl'
    item.fieldNames:   Name, Number, Address, Mobile
    Thanks in Adv
    Vankadoath

    Hi Vankadoath,
    In your content conversion use the field document offset which ignores the number of lines to be ignored.
    for example if you provide the value as "1" for document offset it will ignore the first line in your file.
    (Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
    This enables you to skip comment lines or column names during processing.
    Regards,
    Naveen.

  • How to listen for inputs without a component? For creating bots

    I mean, for example, I want to write a a program that listens for keys f12 to (for example) skip the track in a media player and f11 to skip back. Thinks like the like :P. But I want to do this without any component, becasue the program won't have the focus at all.
    If it is needed to create a dll just tell as much as you pacience affords.

    I mean, for example, I want to write a a program that
    listens for keys f12 to (for example) skip the track
    in a media player and f11 to skip back. Thinks like
    the like :P. But I want to do this without any
    component, becasue the program won't have the focus
    at all. >Translation : I need a system keylogger.
    You can't do this in Java. And it will be OS specific.

  • Hi, I'm running Logic Pro 8 with an audiophile sound card. I have my keyboard midi-ed into the sound card and obviously plugged into the computer. I can't get any input into the computer though. Nothing registers when I play. Output is fine. Any help? Tha

    Hello,
    My midi keyboard isn't registering on Logic Pro 8 and I can't work out why. It's all plugged up correctly. The sound card outputs fine - I can hear what I've previously recorded but can't input any more. Any help gratefully received.
    Stephen.

    Hi, thanks for reply. I was running Logic Express but upgraded. Now I seem to have problems. I have latest drivers for my audiophile. The operating system is 10.4.11. The keyboard just doesn't seem to register - in or out. I've spent hours on the environment, trying to decide which of the conflicting video tutorials to follow......

  • How can I disable input on the ALV gridview?

    Hi everybody,
    I'm developing an application and would like for my users to be able to view the data in the ALV grid. Actually the only thing they may be able to do are delete rows from the ALV.
    I set the ALV grid to editmode so you can insert and delete rows. But  how can I disable the Insert functionality without losing the delete functionality?
    Is is possible to just remove or hide the 'add row' button in the toolbar?
    Thanks in advance
    Regards,
    Wouter

    Wouter,
    It is possible to EXCLUDE buttons from the ALV GRID tool bar.  You didn't mention if you were using OO or not, therefore I will assume you are not.
    * In Global Data
    data:
      g_exclude                  TYPE slis_t_extab.
    * somewhere before you call the FM to display ALV
      PERFORM exclude_icons.
    *  You will need to find out the FCODE of your Add Row Icon in the GUI Status being used.
    *      Form  exclude_icons
    FORM exclude_icons.
      APPEND '&ETA' TO g_exclude.     "Details
    *  APPEND '&OUP' TO g_exclude.     "Sort Up
    *  APPEND '&ODN' TO g_exclude.     "Sort Down
      APPEND '&ILT' TO g_exclude.     "Set Filter
      APPEND '&UMC' TO g_exclude.     "Sum
    *  APPEND '&RNT_PREV' TO g_exclude.     "Print preview
    *  APPEND '&VEXCEL' TO g_exclude.     "Excel
    *  APPEND '&RNT_PREV' TO g_exclude.     "Word processing
    *  APPEND '%PC' TO g_exclude.     "Local File
    *  APPEND '%SL' TO g_exclude.     "Mail recepient
      APPEND '&ABC' TO g_exclude.     "ABC Analysis
      APPEND '&GRAPH' TO g_exclude.     "Graphic
    *  APPEND '&OL0' TO g_exclude.     "Change layout
    *  APPEND '&OAD' TO g_exclude.     "Select layout
    *  APPEND '&AVE' TO g_exclude.     "Save Layout
      APPEND '&INFO' TO g_exclude.  "Information
    ENDFORM.                    " exclude_icons
    * When you execute the FM to display...
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program = g_repid
                is_layout          = g_layout
                it_sort            = g_sort[]
                it_events          = g_events[]
                it_fieldcat        = g_fieldcat[]
                i_save             = g_save
                it_excluding       = g_exclude  "<== Need this parameter defined to pass
           TABLES
                t_outtab           = it_out
           EXCEPTIONS
                program_error      = 1
                OTHERS             = 2.

  • How to set partial trigger of the component which is in different Page Fragements

    I want to set the partial trigger of a ADF control which is in different page fragment.
    Would you please help me regarding this.

    Hi,
    so fragments on a page are within regions and your requirement is to refresh a component in region A in response to an action on a component in region B. If this is correct, then the choice is
    1. use contextual events
    2. use a managed bean that is injected to region B to notify the parent page (manged bean in view scope) about a component change. Now this parent page can refresh the region B container performing e.g. a PPR or a full refresh
    Frank

  • How to require field input using the this.mailDoc function

    I have a this.mailDoc script in a form I'm putting together. It's working fine, but what I'm needing are instructions on how to require certain fields to be filled in before the this.mailDoc can execute. I know how to do this using the stock Submit Form button, but that won't work for me in my particular situation. Thoughts?

    You have to use your own validation function to make sure the required
    fields are filled-in.
    I've posted some code that does this on these forums a while ago... Try
    searching for "validate required fields".

  • X ignores keyboard input during the installation of Solaris 10

    Hi!
    I have a problem when I'm trying to install Solaris 10 on my Ultra 5. After hardware detection phase passed, X starts up, displays a terminal window and asks to choose the locale. But when I'm trying to type something - nothing happens. What is the problem?
    PS.: I have no Sun mouse, so I'm booting w/o mouse. I've also tried to connect USB mouse to the USB PCI Hub that i've plug into the PCI slot. It is D-Link DU-520 based on the NEC chip, and before I got no problems with it.
    Thanx

    Hi. I'm having the same problem with the installation on my laptop and it doesn't have to do anything with the focus of the window. I've read in other posts that it might be a problem with usb keyboards. Have you allready found a way to work this arround?

  • How to capture user input for customer exit processing?

    I need to calculate the number of working days elapsed in the current fiscal quarter BASED on the USER INPUT on the reporting front.  i.e., say the fiscal quarter started on 1 July 2005 and if the user enters 10 July 2005, I should get the value 8 (Assume that Monday through Friday are all workdays).  If the user enters 12 July 2005, I should get 10.  I have written customer exits and know how to use factory calendar, but <b>THE CHALLENGE</b> is how do I <b>CAPTURE</b> the user input and use it in my exit?  During the varible definition, if I select the check box "Ready for input" then the customer exit is not being processed and unless I check that box I can't get a user entry!  If I look at the import values in the customer exit, I see i_t_var_range with type rrs0_t_var_range.  My strong feeling is that this parameter gets the user input, but I am unable to use it as the customer exit is not being called if I make the user to input the data.  Based on the empirical evidence, I felt that user input and customer exit can not co-exist!!  Please somebody prove me wrong and let me know how can I use the user input to process my "customer-exit" variable.  I would really appreciate any input from the BW community here.

    Hi Sameer,
    Most likely, I'm missing something, but I think that the answer is very simple.
    CASE I_VNAM.
    WHEN 'YOUR_CUSTOMER_EXIT_VAR'.
    IF I_STEP = 2. “ After selecting of input variable
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'USER_INPUT_VAR'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4).
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDLOOP.
    ENDIF.
    ENDCASE.
    In this typical user exit coding you have a user entered value in LOC_VAR_RANGE (originally in I_T_VAR_RANGE) and you construct your user exit variable value in E_T_RANGE.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • Ignoring duplicate Alias in the load rule

    Hi,
    Could anyone tell me how to ignore duplicate alias in the load rule while creating the dimension.
    Thanks,
    Ankoosh

    There is no option in load rule to ignore the duplicate alias. Either you need to modify the source or make aliases as unique by appending member names etc..
    Thanks,
    Naveen Mikkilineni

  • Loading external swf, how to deal with errors within the loaded swf?

    I have a Flex app that basically lets you browse a bunch of thumbnails that represent swf files, when you click a thumbnail it opens a window that loads the actual swf into an image control. The problem I have is that these swfs can be uploaded by our clients, so they may have actionscript errors being thrown, etc. We can't really predict what they may do. Is there a way I can load these swf in such a way as to ignore any errors that the loaded swf may generate within itself.
    For example, one such swf reads some text from a text file to display, but when they are viewing it in this manner the file isn't there so a stream error is generated. My parent Flex app doesn't care about this error and I don't want to see it thrown up in an actionscript error box (I have debug verison loaded on my PC obviously) or interfere with the parent app in any way.
    Would application domains help at all? Would it make a difference if I loaded the swf into a separate domain? Or is there some way I can generically trap any error coming from the loaded swf and just ignore them?
    Any help appreciated.
    Thanks,
    Marcus

    There is no way to catch errors thrown at random times.  Remember that most folks have the release player which does not show error dialogs.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for

  • File Adapter as Sender not picking the files

    We configured the File Adapter as Sender, Transport Protocol =NSF and message protocol as FCC. In OS we have folder to read the file, but SAP XI unable to read the file. To trouble shoot this issue we copied that file into another location and revert

  • Adobe Creative Suite 5 Web Premium won't launch on Mac

    I use 13 inch MacBook Air. I downloaded Adobe Creative Suite 5 Web Premium from my college. It has Flash, Photoshop, Dreamweaver, Fireworks and Illustrator CS5. But only Flsh and Dreamweaver launch when I click them. When I click Photoshop and Illust

  • Question about the distribution of web service or servlet

    Hello, I don not know how to distribute a web servcie or servlet on the web server. I can only use this web service with the open state of the glassfish. If I close the glassfish server, the servlet cannot be accessed. I just want the web service or

  • Function module "OCS_ALV_UI_QTRACE_AVAILABILITY" not found.

    Hi,Guy ,      When we use the spam ,the system raise an Abap dump ,the message is : Function module "OCS_ALV_UI_QTRACE_AVAILABILITY" not found. My System is ECC6.0 can anybody tell me how to solve it ?thanks in advance . Jialiang.Qiu

  • Is Xcode 3.2(i think) for a ppc still available

    I have a old ibook g4 (ppc) with osx 10.4.11 on, and i would really like to get in to the world of programing ..... so i figured this would be the best place to start. but i cannot afford to get a new intel based mac because in only 15, so is it poss