How to create timed events in java? Urgent for student project
Hi all, its my first post so forgive me if it doesn't follow the normal standards!
I'm doing a project which involves creating a game where things appear and disappear on the screen by calling up the relevant methods. Its one step away from being complete but the only problem is that I don't know how to make it so that all the appearing and disappearing happens automatically (via a timer that also terminates the game after 30 seconds of play).
For the moment, I've programmed it so that every time i click on a button, the relevant actions occur.
Please could someone help- I'd remember you forever! I've looked everywhere but i can't find anything.
xxx,
ruthless ruth!
thank you so much hunter9000 for that quick response. Only, I'm really dumb! I haven't been using Java for long and that thread is confusing for me.
I need a knight in shining armour to save my day by creating the variables and methods i need so that I can copy and paste it into my work. The timer needs to be called after clicking on the:
startGame(); button which then calls the doAnimation(); method
every 3 or 4 seconds which does all the things i need. It then needs to terminate stop the game after 30 seconds by calling:
endGame();
after which it resets itself and only redoes it once the user clicks on startGame() again.
PLEASE HELP!
xxx
Ruthless ruth.
Similar Messages
-
How to create the event in the report for jobs scheduling.
Hi Experts,
i have a requirement like as follows:
The following triggers for Batch Jobs in the SCM system will be created.i.
Background Processing Event = u201CAPO Background Processing Eventu201D. After sending the Event, write a Log Report line u201CEvent u201CAPO Background Processing Eventu201D sentu201D.
Could you please suggest me how we create the Event or which transaction ?
Please give me a steps for creating events so that based on these events we use
CALL METHOD cl_batch_event=>raise
EXPORTING
i_eventid = p_bpeve
i_server = p_server
i_ignore_incorrect_server = p_ignore
EXCEPTIONS
excpt_raise_failed = 1
excpt_server_accepts_no_events = 2
excpt_raise_forbidden = 3
excpt_unknown_event = 4
excpt_no_authority = 5
OTHERS = 6.
Right now i received message "APO Background Processing Event" is doesn't exists.
Thanks in Advance.
Puneet.Hi Puneet,
Goto transaction SM62 and in there to BckProcEvents tab. There you can create the events.
You just need to specify the name and Description of an event.
Hope this serves your purpose.
Thanks -
How to create own event of sending email for IDI
Hi Gurus,
We have one requirement to navigate the screen to inbox once the user sends the email. Currently the screen goes back to initial incoming email screen after user clicks the send button.
I added the event ZSENDEMAIL in IDI event repository (CRMC_IC_EVENT_REP) with below parameters:
component: CRMCMP_CCS_EML
view: CRMCMP_CCS_EML/MAILBODY
UI event: SENDMESSAGE
Also I created a IDI policy in IC_manager as below:
if current event = ZSENDEMAIL
navigate to IC webclient inbox:display
However, it did not work. The screen still goes back to the initial incoming email screen. Did anyone have any similar expenrience? Could you help to share your successful example? Any suggestion or idea are welcome!
Thanks in advance!
Edited by: Zhijie Kong on May 31, 2011 11:12 PMHi Hannes,
I used below IDI rule to navigate to IR screen.
(If Current Event Equals Contact Ended and
MEDIA Equals "Email"
Then Navigate To ( Navigation Object type:Action = Interaction Records:Edit ) )
Thanks,
ZJKong -
How to create sub domain using java ?
how to create sub domain using java ?
for example:
name1.domainname.com
name2.domainname.com
is it possibe ?You don't do that using Java.
Consult the documentation of the application server in question how to configure it. If you're using for example Tomcat 6.0, then you should be consulting this document: [http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html]. -
Webinar (Aug 11): How to create Cross-Platform Automated GUI Tests for Java Apps
Join Squish expert, Amanda Burma, and learn how to create cross-platform automated GUI tests for your Java applications!
Register here (multiple time slots)
August 11th 2014
Duration: 30 minutes plus Q & A
This webinar will cover:
General Squish for Java overview
Automating BDD Scenarios
Executing Cross-Platform Automated GUI Tests
Interacting with Java application objects, properties & API
See you there!
Unable to attend? Register and we'll send links to future events and access to our webinar archive following the event.
Webinar schedule
Learn more about Squish
Evaluate froglogic squish<property name="messaging.client.jar.path" value="Location in your local drive" />
<property name="messaging.client.jar.name" value="nameOfYourFile.jar" /> -
How to create an Event & schedule a rpt based on results of that Event..
Help,
I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
select count(*) as RegCounts from [reg contact log]
where [due date] = date() +1 and [response due]=Yes
ErinHelp,
I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
select count(*) as RegCounts from [reg contact log]
where [due date] = date() +1 and [response due]=Yes
Erin -
How to create web services in java?
Hi,
I am a newbie to java webservices. Can anybody tell me how to create web services in java?
Any tutorial link or step by step doc would be useful.
Appreciate your help in this regard.
Thanks in advance.
naymo01.Creating web services in Java appears to depend highly upon the server you intend to use.
Here's a tutorial: http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html -
PALM Z22 HOW TO CREATE CALENDAR EVENTS THEN UPLOAD THEM TO THE PALM Z22
Hello, I would like to know if anyone can advise me on how to create calendar events in say, excel, and then upload them to my Palm Z22. The reason I want to create them in excel is so that I can also update the file information to my cell phone as well.
Thanks for your assistance.....
Tony
Post relates to: Palm Z22Hello Tony,
If you want to use Excel, then I would suggest that you export your calendar spreadsheet as a comma separated values (.csv) file and then import that data into the Calendar application in Palm Desktop. Then Hotsync your Palm.
Alan G -
How to create facebook event in Xcode 4.6
Hi All,
I am doing a Facebook application in ios sdk 6 using Xcode 4.6.
I have to create a facebook event. I am in pretty confusion that How to create facebook event in my code.
Can anybody help me..
Thanks in advance.
Regards,
R.V.Lakshmi kanthYou should update to Xcode 4.6.3, to begin with. Then Google the latest FB iOS API...details should be provided there on usage.
-
How to create a event to display records depend on selection ofdropdownlist
BSP
how to create a event to display records depend on selection of dropdownlist box,
Using BHTML,
thank you,
regards,
jagrut bharatkumar shukla1) Copy this script to the code
<script type="text/javascript">
function displayVacationDates() {
for (var i=0; i < document.forms[0].Status.length; i++) {
if (document.forms[0].Status[i].checked && document.forms[0].Status[i].value=='Vacation'){
document.getElementById('startDateRow').style.visibility='visible';
document.getElementById('endDateRow').style.visibility='visible';
if (document.forms[0].Status[i].checked && !(document.forms[0].Status[i].value=='Vacation')){
document.getElementById('startDateRow').style.visibility='hidden';
document.getElementById('endDateRow').style.visibility='hidden';
</script>
2) Set initial style to 'hidden'
<tr id="startDateRow" style="visibility:hidden">
<td align="left"><blockquote>
<p><span class="style16 style8"><strong>Start date:
</strong></span></p>
</blockquote> </td>
<td align="left"><script>DateInput('VacStart', true, 'DD-MON-YYYY')</script></td>
</tr>
<tr id="endDateRow" style="visibility:hidden">
<td align="left"><blockquote>
<p><span class="style16 style8"><strong>End date:
</strong></span></p>
</blockquote> </td>
<td align="left"><script>DateInput('VacEnd', true, 'DD-MON-YYYY')</script></td>
</tr>
3) Call the display script
<input name="Status" type="radio" value="In the Field" onclick="displayVacationDates()">
<input name="Status" type="radio" value="Vacation" onclick="displayVacationDates()">
<input name="Status" type="radio" value="Sick day" onclick="displayVacationDates()">
<input name="Status" type="radio" value="Admin Day" onclick="displayVacationDates()">
<input name="Status" type="radio" value="DSR Ride Along" onclick="displayVacationDates()">
<input name="Status" type="radio" value="ServiceCall" onclick="displayVacationDates()"> -
How to Create adf table from java bean
Hi,
How to Create adf table from java class (Not from ADF BC).
Thanks
Satya@vlsn -- you have to follow what shay said.
Do the following in Model layer ::
create a table property java class with your columns setters and getters like :
*public class gridProps {*
private int sno;
private String orderNum;
*public void setSno(int sno) {*
this.sno = sno;
*public int getSno() {*
return sno;
*public void setOrderNum(String orderNum) {*
this.orderNum = orderNum;
*public String getOrderNum() {*
return orderNum;
Create another table java class which will populate the values to your column values and return the collection :
*public class gridPopulate {*
private List<gridProps> gridValues ;
*public List<gridProps> setToGrid(ArrayList<ArrayList> valuesToSet) {*
*if (valuesToSet == null) {*
return gridValues;
gridValues = new ArrayList<gridProps>();
if(btnValue.equals("completeBtn"))
return gridValues;
for(ArrayList<String> tempArr:valuesToSet)
gridProps gp = new gridProps();
gp.setSno(Integer.valueOf(tempArr.get(0)));
gp.setOrderNum(tempArr.get(1));
return gridValues;
Right click gridPopulate class and create this as data control.This class will be seen in Data control list.Under this data control,Drag the grid property collection(created earlier) to your page.Then execute your binding(gridPopulate) according to your logic.
Thanks.(My jdev version 11.1.1.5.0) -
How to run .jar on linux & how to create .jar file using java?
hi, may i know how to run .jar on linux & how to create .jar file using java? Can u provide the steps on doing it.
thanks in advance.Look at the manual page for jar:
# man jar
Also you can run them by doing:
# java -jar Prog.jar -
How to create webservice in Webdynpro java
Hi Experts,
I need to develop one application in Visual Composer.Since VC doesn't support coding so i need to create Webservice in webdynpro java and use that webservice in VC.Can any one of you please suggest how to create Webservice in Webdynpro Java.
Regards,
Prasanna.Hi prasanna,
Refer this links.
/people/sridhar.k2/blog/2006/09/12/creating-and-exposing-bapi-as-web-service-and-using-it-in-web-dynpro
BAPI Exposed as Web Service
Connect R/3 from Java web application
Web Dynpro integration with R/3
http://help.sap.com/saphelp_nw04s/helpdata/en/82/6a0e7bbe744276bf393654b9b576ed/frameset.htm
Regards,
karthik. -
How to create a custom task in SRM for the standard task
Hi Gurus,
How to create a custom task in SRM for the standard task eg: TS10407929
regards,
George.from PFTC itself. Same.
-
How To Create A Technical And Business Systems For Web AS ABAP ???
Hi Experts,
How To Create A Technical And Business Systems For Web AS ABAP ???
Please Let me Know All the Step-By-Step Process to Create ????
Points Will be Given
Regards
KhannaHi Sumit,
When U Told the thing that first time to execute the RZ70 and All i Did this in XI System
So I got An Entry for the Technical System for XI System.
Now i Deleted that and Executed RZ70 in R/3.
When I Executed RZ70, I got this Error.
<b> "RFC Call failed: Error Opening an RFC Connection "</b>.
Now I am Unable to see Any Technical System Under Web As ABAP. It's Showing Empty Now.
Please Let me know
Regards
Khanna
Maybe you are looking for
-
Date Comparison in BI Publisher Report
Hi, I have a requirement to generate calendar report from " Daily Calendar View' in Calendar screen. I have written code to get the "Current Selected date" in the calendar applet and passing it to report using profile Attribute. I have created I/O an
-
Standard test error in the task list operations
Hi Friends, We made a Z program in such a way that Task list operation long text through standard text key (CA10) will get updated automatically for those associated operations, but the problem we never observed that program is overwriting the standa
-
Lose of focus (mouse click/enter key)
Hello, we have a problem customers are complaining about for quite a while now, but despite our efforts, we can not fix it or at least determine with certainty the problem cause. We have an application launching forms apps, and from time-to-time we c
-
Extracting x,y co-ordinates of SDO_GEOMETRY into two variables say x1, ya
Hi All, I am able to store the output SDO_GEOMETRY into a variable but i am facing difficulties in extracting ordinates in sdo_geometry to two independent variables say xa, ya. Kindly suggest some solution. The procedure is as follows: CREATE OR REPL
-
Any way to access ddimage forensic images?
Hi - I've been given a series of drives that supposedly contain images of a bunch of Mac HD's. The drives all contain folders and files named like this: qhq005qla1 qla51ddimage.001 qla51ddimage.002 qla51ddimage.003 qla51ddimage.029 Each drive has two