How to create an infinite loop that cannot be cancelled?

Hi , im new around java and i need a program that keeps on repeating after each each input/uses(generally meant for different user) and cannot either stop using "Cancel" or "x" while stopping only using the "stop" button
I got a few lines of codes that look like this : String arg = "";
do{
JOptionPane.showInputDialog("hi");
}while ( arg != "y" || arg!= "Y");
and it cannot be stop with both cancel and"x"(which i wanted)
but when i used this logic with
Valid validUserInput = new Valid();
do {
userInput = validUserInput.validUserInput(a);
switch(userInput){
case 1 : validUserInput.optionOne(b);break;
case 2 : validUserInput.optionTwo(c);break;
case 3 : validUserInput.optionThree(d,e);break;
default : validUserInput.validUserInput(f);
}while(looping != "" || looping != " ");
it does not really work(while it will keep looping, it can be easily stop by pressing cancelled or "x")
So is there any logic or method that can prevent the program from being stop?
Thankyou!

elricscript wrote:
"That is helpful. It gives him a direction where he can focus his research. Namely, 'how to run a program in kiosk mode' rather than 'how to create an infinite loop that cannot be cancelled.'"
No... He already mentioned he wants to "e.g Interactive kiosk", so saying "properly kiosk it" isn't adding any new information. Rather it's just giving the person a dead point of: you're doing it wrong. Pointing out someone is wrong is not a positive enlightenment. Pointing someone in the right direction is more productive.
>"That is helpful. It gives him a direction where he can focus his research. Namely, 'how to run a program in kiosk mode' rather than 'how to create an infinite loop that cannot be cancelled.'"
No... He already mentioned he wants to "e.g Interactive kiosk", so saying "properly kiosk it" isn't adding any new information.
Yes it is. He asked how to do it using some Swing trickery, and I said it won't work. Which is true. The OP didn't already know that, clearly, hence the question. Now he does. That's pretty much new information if you ask me.
Rather it's just giving the person a dead point of: you're doing it wrong.Right. He is. However, the problem is now no longer related to Java, and not something I can help him with. You should try that: not answering questions you don't know the answer to. It's actually more helpful than posting misleading, wrong answers.
Pointing out someone is wrong is not a positive enlightenment. I'm giving basic technical help, not yoga lessons.
Pointing someone in the right direction is more productive.As already stated, I am as ignorant of how to make a Java application into a kiosk app as the OP is. What value can I add in light of that information? I began by answering a question that was not stated to be about kiosks. Once the question moved outside of my area of knowledge, I stopped trying to answer.
I notice you're not giving him any help, being more interested in admonishing others as you are.

Similar Messages

  • How to create a button loop until mouse is released?

    How would I go about creating a button loop that continuously increments while the button is being pressed and stops incrementing on release?

    Just want to post the finished code for anyone who is interested.
    var interval;
       var count=0;
    //PlayerCastBar
      //Bar
       //X Pos
       i_Mercinova.PCBBXPDecrease.onPress = function()
         interval=setInterval(incrementPCBBXPDecrease, .01);
        function incrementPCBBXPDecrease()
         count++;
         _root.playercastbar.i_Castbar._x=(_root.playercastbar.i_Castbar._x-2)
       i_Mercinova.PCBBXPDecrease.onRelease = function()
         clearInterval(interval);
         count==0;
       i_Mercinova.PCBBXPIncrease.onPress = function()
         interval=setInterval(incrementPCBBXPIncrease, .01);
        function incrementPCBBXPIncrease()
         count++;
         _root.playercastbar.i_Castbar._x=(_root.playercastbar.i_Castbar._x+2)
       i_Mercinova.PCBBXPIncrease.onRelease = function()
         clearInterval(interval);
         count==0;
    It does exactly what I wanted it to.  Again, Thank You Very Much, Ned!! 

  • How to create a standard report that allows filtering?

    Hi Guys and Gals,
    Sometimes, the standard report is great because it gives the user the feeling of a grid. i.e. All of the values are editable on one page, kind of like a spreadsheet. That is sometimes very useful. But if there is a lot of data, a filtering mechanism is necessary.
    So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
    Allowing the user to specify the number of rows displayed would be peachy-keen too.
    Thanks,
    Kim
    P.S. I'm running Apex 4.1 with Oracle 11g.

    Kim2012 wrote:
    Your idea sounds very promising, but I apparently need a nudge in the right direction. From "Create Page", I clicked on "Form" and then "Tabular Form". Why would you do this? The advice given was
    create a standard report page using the Create New Page wizardi.e. go to Home > Application Builder > Application > Create Page and click Classic Report, this was suggested because the original post said:
    >
    So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
    >
    Nothing about forms. Tabular Forms, Tabular Forms. Despite many enhancements over the last few versions, tabular forms still cause problems, especially for novices trying to go beyond their own competence and the built-in capabilities of wizard-generated tabular forms.
    More good advice: Re: Newbie question-how does the tabular form work?  How to populate prim key? and—if based on decent database design—out of the box you have a usable and robust application. Use an Interactive Report or a custom report template and add some CSS and you can get something a lot more powerful, flexible and better looking than any tabular form. Spend the time you haven't wasted on frustrated hacking of tabular forms adding more features and enhancements to your app.

  • I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    Have a look at the menu file/process multiple files. You can choose to add your signature (or the caption) to the image and export the new files.
    If that solution is not flexible enough, consider using the very affordable (12$)  Elements+ add-on which offers a 'meta stamp' script :
    http://elementsplus.net/v5/en/meta-stamp.htm
    Otherwise, have a look at other free and good solutions like Faststone Photoresizer, Xnview...

  • Creating an Apple ID that cannot be changed or retrieved

    Is there a way to create an Apple ID that cannot be changed or looked up?  We're setting up some phones for students and don't want them to be able to find out their Apple IDs or change them...

    At a basic level, if you are not installing profiles, you can enable pass code protected restrictions on each ipad by going to settings -general - restrictions. You prevent access to itunes, prevent app installation, etc.

  • How to create a popup window that shows detail information when press submi

    hi,all
    how to create a popup window that shows detail information when press the submit button ?I mean,when I press the button "Sumit"there will appear a popup window that shows the detail information you typed before.it means are u sure to submit,it is like some confirmation window.
    how to do achieve this ?help plz .
    best regards
    hlee
    Edited by: hlee on 2011-4-15 上午1:26

    hey,vee
    thanks for your response,but i had already read this thread before i put up a new question.any way,thanks.
    best regards
    hlee

  • Schedule Shutdown that Cannot be Canceled?

    Would like to schedule a shutdown that cannot be canceled (except by Admin user obviously). So I can force my teenager off the computer at bedtime! Normal scheduled shutdown can be canceled by anyone.
    Would be happy to pay for a 3rd party utility that permits this if needed.
    Thanks

    One idea: if your teen connects through a router, you often can configure the router to allow Internet access only at certain times.
    Or, set up a separate, non-Admin user account for your teen's use.
    Also, from OS X Help:
    To set time limits on computer use:
    Choose Apple menu > System Preferences and click Parental Controls.
    Open Parental Controls preferences
    Click the lock icon to unlock it, and then enter an administrator name and password.
    Select the account you want to limit, and then click Time Limits.
    To set a maximum amount of time that the computer can be used during the week (Monday through Friday), select the “Limit computer use to” checkbox under “Weekday time limits,” and then drag the slider to adjust the number of hours per day the computer can be used.
    To set a maximum amount of time that the computer can be used during the weekend, select the “Limit computer use to” checkbox under“Weekend time limits,” and then drag the slider to adjust the number of hours per day the computer can be used.
    To restrict computer use on evenings prior to a weekday (Sunday night through Thursday night), select the “School nights” checkbox under Bedtime and then use the up and down arrows to specify the time during which computer use is blocked.
    To restrict computer use on Friday night and Saturday night, select the Weekend checkbox under Bedtime and then use the up and down arrows to specify the time during which computer use is blocked.
    Message was edited by: inandoutofgrace

  • How to: Create a master form that auto-fills data into other pdf forms?

    I hope someone can please help me.  I have about 15 PDF forms that all require similar data entry (name, address etc). Can I create a master form that we fill in once per client, and then auto-fill in the matching data on the 15 forms? 
    I am not looking for an online solution as the information is highly sensitive. 
    I have already created a form in Acrobat X Pro with the 'master data', and created the (15) forms with identically named fields.  How I link the forms now to the master, I cannot figure out (after much searching).
    I have read similar questions on the same topic but have not found any answers.   I hope this time someone can please help.
    Many thanks in advance.

    Thank you!  I had just figured out how to export the data from the master as an FDF file and then import it to the other files.  I'm afraid I don't understand scripting to automate the process across multiple files.  To you mean with java script? 
    I've also thought about combining the forms, once we know which ones the particular client will need.  I have to see how it works in practice for my colleagues who will be using them.
    Thank you again.

  • Help on how to make an infinite loop with the same space on all images

    HI:
    I made a movie clip with infinite  loop in which there are images that move from right to left something simple like a marquee, and each image has a blank space between  them, but between last and first image there is a more space, how I can do to  make all images have an equal space between each one and that the motion never stops.

    Thanks for your time and answers my friend, but I'm still not be able to achieve what I want, I forgot to tell that I'm doing this by layers, let's say, I have 5 images, (in fact I have like 50 images converted to movie clip symbols) each image has it's own layer, layer 1, layer 2, layer 3, layer 4, layer 5, then I put a 200 frame motion tween on all layers at 30 fps, then I arranged layer 1 on the first frame to the frame 200, the second layer from frame 50 to frame 250, third layer from frame 100 to frame 300, fourth layer from frame 150 to frame 350, and fifth layer from frame 200 to frame 400, by this I mean I put a 50 frame of space on each image but if you can see, the last image has a duration from frame 200 to frame 400, and there's nothing on frame 250 where it is supposed to be another image to match the same blank space of all the others, the movie clip restarts on the frame 400, and there's a 150 frames of blank space between the last image and the first image, I put the gotoandplay on the frame 250, but it abruptly restarts the movie.
    Is there another way to do this ?
    Am I doing something wrong ?
    Please I really really need help on this.
    Thanks

  • How to create a step loop control in a screen

    Hi,
    Basically, what I need to do is to create a fully dynamic screen. I want to send the structure name and the fiednames and the function will create a screen will all the required fields.
    I explored many possibilities and the best one seems to be using the step loop control in a screen. I know, this is really old technology but I do not care as long as this work great !
    I saw that the function group MASSFREESELECTIONS is doing it, this look pretty simple, fast and fully dynamic...
    My only problem is that I'm not able to create a step loop control in a standard screen.... is it an obsolete function that was removed from the control list ?
    Thanks
    Dany
    Message was edited by:
            Dany Charbonneau

    Hi,
    STEP LOOPS
    Step Loops are type of screen table . Step loops are repeated blocks of field in a screen. Each block contains one or more fields and these blocks are repeated. Step loops aren’t like actual table. You can scroll vertically but not horizontally. Three steps are associated with creation of step loops:
    • Creation of step loops on screen, which includes declaring fields on the screen and then defining the step, loops for these fields.
    • Passing data to the step loop is exactly similar to the passing of data to table controls.
    • In step loop, you don’t need to define the step loop as such in the module pool program but the cursor needs to be defined in the program.
    Types of Step Loops
    • Static – Static Step Loop (SSL) have fixed size that cannot be changed during the runtime. If user resizes the window, the size of the static step loop is not changed.
    • Dynamic – Dynamic Step Loop (DSL) is variable in size. When the user resizes the window, the system increases or decreases the number of the step loop blocks.
    You can have only one dynamic step loop and can have as many static loops in your transaction.
    Programming with the Static and dynamic step loop is exactly same. For the system or for the user it doesn’t make any difference whether it is static or dynamic step loop. Only attribute, which you fix during designing of the step loop, is type attribute for step loop F for fixed i.e static and V for variable i.e. dynamic.
    Writing code for Step Loop in the flow logic.
    PBO.
    Loop at itab cursor cl.
    Module set.
    Endloop.
    PAI.
    Loop at itab.
    Endloop.
    Empty loop is must for both table control and step loop
    LOOP AT statement for step loops and Table controls is similar. Loop At statement transfers the data to screen table. You need to have the Module to assign the values for the screen table.
    In module pool program you need to define the cursor.
    Date: CL TYPE i.
    Cursor parameter tells which line of step loop display should start.
    “Module Set” in module pool program assigns the values to step loop fields, which is similar to table controls.
    Refer to this program <b>DEMO_DYNPRO_STEP_LOOP</b>
         hope u can get some idea about table control & step loop in this line.
    http://www.sapfans.com/sapfans/repos/comelite.htm
    Check this link,
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm
    <b>Reward points</b>
    Regards

  • How to create a smart folder that only selects from a specific directory?

    I am trying to create a smart folder that lists all my iPhoto original content in the last few months. I want this so that my wife can connect into the smart folder over the LAN when copying specific photos to her PC.
    I am have trouble working out how to restrict the search to only those files that exists in the iPhoto directory. When I look at info for a photo is states "Where: /Users/Shared/iPhoto Library/iPhoto Library/Data/2009/....etc etc".
    However if I add an filter for "Where from" begins with "/Users/Shared/... etc etc" it returns nothing. Is there a way to do this?

    Find the iPhoto library file.
    Right click -> Show package contents.
    Double click the Originals folder.
    Type anything in the Search box at the top of the Finder window.
    In the top of the Finder window, click "Originals".
    Click the + (plus) sign next to Save.
    Select Kind is Image.
    Click the + (plus) sign again.
    Select *Created date* is *within last 3 months* (or whatever you want).
    Go to the search box and delete what you typed. Don't hit the X to delete the search text.
    Now save the smart search.
    This is saved in ~\Library\Saved searches. Copy or move it to the desktop where your wife can get access to it.

  • How do I make apples loops that show up in the loop browser

    How do I make apples loops from my audio files that show up in the loop browser, and where do they reside on the computer so that I know they are there.

    Refer to Logic manual page 848 where it is well explained.
    Regarding the path you can search:
    localdrive\Users\your_ user_account\Library\Audio\Apple Loops\User Loops
    !http://img59.imageshack.us/img59/4967/aglogo45.gif!

  • How to create a radio button that changes colors

    I'm using Acrobat X and ID CS5 on Mac OS X.
    A couple of years ago someone on the forums explained to me how to create a button that changes color with each click. You can view a sample PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle.pdf. They gave me the document JS and showed me how to set the properties of the button. I've integrated the button into a particular series of PDF forms and it's worked out very well.
    Now I would like to do the same thing, but using a circle instead of a square. Can anyone tell me the best way to do this? Can I somehow set a radio button to cycle through colors in the same way? I design my forms initially in ID CS5 and then activate and format the fields in Acrobat X. I've tried using circles instead of squares in my ID document, but when I export to an interactive PDF, they're converted to squares.
    Any ideas?

    I understand how to make buttons cycle through colors-- the problem I'm having is that I'm trying to figure out how to make a circular button cycle through colors. When I export my ID document to PDF, my round button maintains it's original appearance, but when I click on it to cycle through the colors, it behaves like a square (see new PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle2.pdf).
    If I use a radio button, I can get it to cycle through colors, but I don't want it to have a black dot in the middle. Is there a way to format the radio button to not show the black dot when clicked?

  • How to create an OAF page that does not need login to access

    We have a lot of Oracle users, and everyday there are some users forget there username or password and need reset. I really want to use a web page to let them reset their passwords automatically. The web page will call the API to reset password if it found the user request is legible.
    So based on the situation, the users should not need a login to get to this page, can I do this using OAF?
    And idea is welcome, thank you for your help!
    -Bill
    Edited by: billzheng2004 on Jun 18, 2009 12:12 PM

    Srini,
    Thank you for your response, I think we need to go back to my original question, is it possible to create an OAF page that does not need login, how can I do that.
    I think I said too much and led us to go to a different direction I did't want to. But I am still glad to texplain why I need a custom password reset process, that is all about business requirement, here it is:
    ----I am not sure that "company issues" (such as what you described) can be solved by software -
    I already have a solution for that. Create a custom OAF page, ask user to input his SSN / Date of Birth.... then I can figure out what his real username easily. And I can reset his password as his SSN or something which only this particular user knows. Then he can login.
    ----you may have to impart training to end users.
    As I mentioned, most of our users use only Benefit self service. They only login several times a year, even they are trained this year, most of them will forget next year, this is just human nature. And because the nature of our business, thousands of employees may change at the end of a year. It does not make any business sense for company to prepare trainers every year.
    ----In any case, the functionality you require is already built into the product.
    I guess the reason most companies hire Oracle Developers is that some functionality Oracle Applications provide is not exactly the companies needed. When there is Oracle Apps product, there is alway customization.

  • How to create EP-iView (SPS19) that shows BI planning template (NW2004s)

    Hi,
    we have an EP6 SPS19 with many reports coming from a BW system. Now we migrate the BW from 3.5 to NW2004s (7.0) to use integrated planning. We also implemented the BI Java which is required for planning. Now I wonder how to create iViews on our  EP6 system which points to these kind of reports. Which kind of iView do I need? Do I have to create a system object for the BI Java instance? A system object that points to the ABAP instance is already there, because we already have many iViews to reports from the ABAP stack.
    I would appreciate if one points me to a good documentation.
    Thanks in advance,
    Uwe

    Hi Uwe,
    If you have designed the templates in Web Application Designer then you can publish the template to the portal. You would get an url pointing to the template in the portal. You can then create an "URL iView" in the portal pointing to the url.
    You can also create Bex Application iViews from the published templates.
    You would not need to create a new "System" object if there is already one  pointing to the BI ABAP system.
    This link points to publishing BI Content to Portal
    http://help.sap.com/saphelp_nw70/helpdata/en/43/6ee85d99506fcfe10000000a1553f6/frameset.htm
    Thanks,
    Abhishek

Maybe you are looking for

  • Iphone 4 IOS 5 restore from back up is taking long time

    Hello, it's my first time on the forum.I'm quite new in the apple world. Yesterday I upgraded my Iphone4 to IOS 5. The device asked me to plug it to the PC for the restore from my backup and here come problems.The restore started and after few second

  • Print Report with multiple copies

    i have an one page report called Receipt voucher which is in format of form. I have an query. I have to take four prints of same report. but the problem is that if i take print of 1st copy it should appear on report like origional-Customer,2nd time-

  • Link to an external RoboHlp8 html file

    Hi, I am trying to create a link to another RH8 project. I have been using Insert Hyperlink\Link to\File\Locating the html file in the other project. When I click OK it displays This action will create an external link to the help system. The link ma

  • Xorg randomly freezes

    I recently installed Arch Linux on this computer, which hasn't had Linux installed on it before, but Xorg randomly freezes after a hour or so for me, and won't let me switch out into a console, forcing me to use Magic SysRq. Oddly enough, the mouse s

  • JVC Everio GZ-MC200 compatible?

    JVC Everio GZ-MC200 compatible with minimac? http://www.apple.com/macosx/upgrade/camcorders.html there is no my camcorder!