Change Date for Applet
Hi, this is probably really easy and I may not be understanding it, I am trying to design an applet and all i want to do is change the format of the Date I'm inserting into the applet. I looked at the tutorials but that seems to be a lot of extra code just to change the format.
Does anyone know of a quick way to create an instance of a Date object and also switch the format?
Author: Logan
Class: Intro to Java
Project: Class Project 2
Description: Applet Splash Screen
//Import Statements
import java.util.Date;
import java.applet.*;
import java.awt.*;
public class AppletProj2 extends Applet
public void paint(Graphics g)
Date currentDate = new Date();
g.drawString(currentDate.toString(),100,100);
}//end class AppletProj2
java.text.SimpleDateFormat is not hard to use and doesn't require a lot of additional code. It IS the solution to this problem and you should use it.
Similar Messages
-
How to change date for Compensation Package Offer (IT0706)
I try to change date for an existing record in IT0706 to a later date, however system prompted "The compensation package was already activated. It can not be changed" As I checked, the record status is "Activated". Can anybody help to advice on how to change the date ?
Thanks~Hi Kishor...Thanks for reply...
But i need to change my precentation variable date formt...
i need to write one text like: 'Year to dd/month/yy' in one column formula..
So how can i achieve it.. -
Sales Order creation/ change date for the items
I have a unique scenario and i need to get a Report for this
A sales order is created for 4 line items.
Out of these , for 2 line items a delivery is created. I need the sales order creation date and time for these 2 items in a custom report
Now the other 2 items go in to some kind of block- Now these are released by going in the sales order VA02 and after releasing the delivery is created. Again for these two items , i need the sales order change date as after a user goes and changes the sales order to remove the block only then delivery is created for these two items
Also another scenario is the 2 line items go for back order and when we get stock at tht time system confirms the stock and then the delivery is created for these. So also for this when this change occured i need to get the date for these 2 line items
Can any one please suggest how to get this data from the scenarios?
I dont want to get the date when the delivery is created as i can get tht from the LIKP table. I need the sales order create and change dates for these.You may be aware, any changes to a document will be recorded in CDHDR (for header changes) and CDPOS (for item changes). You can explore these two tables.
thanks
G. Lakshmipathi -
Creation and Change Date for Tcode and Function Groups
Hello All,
I need to display the Creation and Change Dates for Custom Tcodes and Function Groups in a Report. Can anyone please let me know the logic of retrieving it.
regards,
MaheshHi,
TADIR and TRDIR is the tables where you can find all these data
Regards
Sudheer -
Table that contains the change date for every cost element
Hi everyone!
Can anyone please help me find a table which contains the change date for every cost element?
Thanks,JessIf you basically want to find out if anyone changed the cost element, you need to use transaction KA05 and enter the cost element and controlling area.
This would actually bring you whatever field was changed and on double clicking give you the actual change and the date on which the change was made.
Problem is this change date is actually the creation date of a change document which is in the table CDHDR.Its not like the change date is on any master tables.
Hope this helps
Deepa -
Hi All,
Could anyone let me know if there is any sap standard program which will give all the changed data for OM related Infotypes? I know we have some idoc types which can do this, but I am looking for some standard program.
Please help.
thanks
shyamHi Suresh,
Thanks for the information. But I am unable to see any documents in the table T77CDOC_CUST even though I made some changes to the OM data for a particular object. I see that there is a SWITCH in the above table which needs to be activated..I think in my system it is not active..So could you please let me know how can I activate this?
Many thanks -
How to fetch last changed date for Header in me22n?
Hi Experts,
I need to create a report for PO, where I have created one screen tab in Header level(customer data), therefore I need to fetch last changed date for header , I must mention that I do not want last changed date for item level, only for header last changed date is required.
Kindly assist me on this.
Thanx
ShireenRead table CDHDR (object "EINKBELEG") and CDPOS (look for table name EKKO), keep the last CDHDR record with "EKKO" data actually changed.
Regards,
Raymond -
Change Date for Order Item Partner Changes
When I make a change to a partner on an Order Item the Change Date VBAP-EDATU is not populated. can anyone recommend a way to have this field filled for all changes to any fields on an Order (header and Item)?
It can be done by WF, Why you need a warning message?
Anyhow check badi
PT_GEN_REQ or PT_ABS_REQ, -
Change date for Leave of absence
Hi,
We have the following scenario in our ESS form--
When an employee uses Portal form for changing the Absence date ( i.e change date after it has been approved or rejected )for the Absence Type LOA . The Manager who receives the work item should get a warning message.
Where can we add this warning message? Is there any user-exit or any configuration changes to achieve this ?.
Thanks,
Veena.It can be done by WF, Why you need a warning message?
Anyhow check badi
PT_GEN_REQ or PT_ABS_REQ, -
Query in changing ide for applets?
Hi all,
I am newbie for applet and java as well.I made GUI for my program for applet in netbeans but need to use eclipse.I tried with using same code and that's running fine with that too.
But unlike traditional html code we use for applet here is showing some different code.How can I make that like mannual code.or that is fine continuing with that?
Regards,
Palak Shah
Message was edited by:
palak_shahI dont understand what you're asking. The IDE you use makes no difference.
-
How to Check Creation/Change data for PO Service Line item
Hi, I was wondering what field(s) from what table(s) I would have to check if I wanted a report to look for the creation or chnaged date of a specific service item in a PO?
Currently it is using the EKPO-AEDAT field to check if a PO line item has been changed, but I would like to narrow it down to just some service line items instead of capturing all the service lines in a recently changed PO line item.
Thank you very much in advance for the advice!Hi Rashid, thanks for the advice, but it doesn't really solve my problem.
What I want to know is if there is a field where the date of a service item was created in a PO line item is stored, so that an ABAP report can be written to retrieve newly created service items from POs. -
Problem while changing data for STO Assign Delivery type and checking rule
Hi All,
In Set up STO..... executing Assign delivery type and checking rule.
I am trying to add values to Rule for Adoption of ATP Results in Purchasing(REVFE),Delivery Type for Stock Transfers Within a Company Code(LFART1) and another two more fields..After entering the data When i clik Save button... it shows "Data was Saved".But its not showing when i went back and come
I have checked in debugg mode and table T161V table ..waht ever i entered its not saved in Database table.
We have checked in another system its working fine..
Can anyone please help me on this?Solved by posting in OSS.
The below include has to be uncommented.
While doing upgrade this include L0ME6F00 has commented INCLUDE L0ME6F99 has uncommented
view related include-files (never change, please) *
*{ REPLACE CB2K900006 2
INCLUDE L0ME6F00. " subprograms -
hello
I have a problem related to the system date
(the date from JVM)
How can I change dynamically the date of a JVM?
my problem: I have to create a test case for
a trigger
I want to create an object, and I need to change
the date to see the result
I want to create a 'contract' object which
will expire at the end of this month. I want
to set the date to the next month and to see
the result (the contract should expire).
It's possible to do this by changing
the date of the system....but it's not at all automatically
Could somebody help me, please?
thanks
petrethe thread is a 'jdring' thread, a product that
is working like the old 'cron' daemon on unix
you can define the pattern to wake up the thread
('every day at 1:01 AM' for example)
when this thread is awaken then it executes a
JDBC request to see if there are contracts
where the expiration date has passed
if any...then it will set the status of those contracts
to 'expire'
the problem comes from the fact that the range of
expiration date is limited
(a contract can expire at the end of this
month | quarter | year )
so, I need to create a contract (stored in a database),
to change the date of the JVM somewhere after
the expiration date of the contract and then
to check the results.
the only solution I found is to change the system date
but it's not an automatically one
(stop the application, change the system date, restart application)
cheers and thanks
so I need to change (in my test program) the
date of the JVM so as to wake up the thread
Hi! What thread is this? Perhaps if you could explain
the situation in a greater detail, for the benefit of
slow folks like myself, we may be in a better shape to
offer suggestions.
Cheers! -
Preloading Data for Applet Game
Hey all!
I was wondering how I could go about preloading all of the images and sounds I use in my game (applet-form) before the user starts playing. It would be especially helpful to have a bar going across that would show the user their status.
It would be even greater to allow the JAR files (I would assume) that hold this data to be cacheable on the user's computer, so they do not need to redownload the data every time they wish to play. This most likely will be a setting they have to choose, but I'm not sure if anything extra would be needed on my part to enable that capability for my users.
I'm fairly advanced with Java; I simply cannot for the life of me figure out how to preload this data.
Any links, resources or tips would be greatly appreciated! Thanks!
--Andrew1. Have the applet load (basically do nothing during construction, init, or run other than get a very basic applet loaded). Have a timer go off to trigger #2 after it is created so it at least loads and the user sees something. A custom class loader might be good, but I don't know anything about them.
2. Then start a thread or threads to load the images and sounds. If you know what file sizes they are you can code a JProgressBar to keep track of how far along you are. (Annoying to maintain, but a good indication of what is left to load.)
3. Definitely use a jar file to bundle everything. The JVM will cache the jar file if the user doesn't modify the defaults.
4. http://sourceforge.net/projects/javoids/
The main problem with Javoids was that I didn't code it in a way so as to observe #1 and 2 above.
Good luck in your project. I hope this gives you some ideas to help you on your project. -
hi
i created the cost element vaild from 01.04.2008 instent of 01.04.2007 then i saved. now i want change the date i.e valid from 01.04.2007,. i don't want delete the cost element in ka05 then create,
i want change the validty with out deleting the cost element.Please read the post. WIth the suggestion you have given teh system will allow to change the period to a future date and not to the past date.
In this case the hasc reated a cost element with effective from 2008 where as he wants to change this to 2007.
system will not allow this.
"You selected an analysis period extending beyond the period for which the object was defined. This is not allowed in the change or display functions."
Maybe you are looking for
-
Crystal Reports: report created on a system can't run on another
Having a problem with fully qualified table names. I have a report that was developed offsite. In the 'show sql query' none of the tables are fully qualified (prefixed with the database name). I added a new table and the table is shown as prefixed
-
No Preview or Download With My XML feed
I have created an XML feed for my podcasts per the Apple specs and everything is working great EXCEPT my mp3's are uploaded to a streaming server. My feed reflects the URL of the mp3 file on the streaming server. The itunes store will not play these
-
I will install BPM EM Weblogic to Redhat. I read the installation guide. It shows that the BPM Enterprise should be installed in Redhat Linux 4 and 5. Is Redhat Linux 4 and 5 are Redhat Enterprise Linux?
-
Help with turning off in-camera selected aspect ratios - Please!
I shoot a Olympus e-P2. It allows me to change the aspect ratio of the file i.e. 4:3, 16:9 etc. I like to use this feature as 'masks' when I shoot to help with composition. When I open the RAW file in bridge or Camera Raw, this pre-selected aspect is
-
I cannot sync my iPad or iPhone to iTunes on my Windows 8 PC, even though I have been doing this successfully for years. I have been through all the troubleshooting steps I can find in iTunes, to no avail. Help please?