Are the APIs of java.swing.Timer thread-safe?

As the title.

They are safe for use with the event thread, as the actionPerformed method is invoked on the event thread,
so you can make UI changes from your actionPerformed without fear.
That is their only thread-related-ness, so other than that, I would think they are not thread safe in general.
: jay

Similar Messages

  • Are the service(), doPost() and doGet() methods THREAD-SAFE?

    Please Let Me know If service(), doPost() and doGet() are Thread-safe. If they are not thread safe, How to make them thread-safe?

    Please Let Me know If service(), doPost() and doGet() are Thread-safe. They are not.
    If they are not thread safe, How to make them thread-safe?The best way is to avoid writing code that depends on a servlet's thread safety; i.e., no servlet instance variables - keep everything local to the method. Else, you'll want to learn about synchronization.
    [JavaWorld article - Write thread-safe servlets|http://www.javaworld.com/javaworld/jw-07-2004/jw-0712-threadsafe.html].
    ~

  • How do i get my apple ID from my old iphone 5 to my new iphone 6 ? what are the steps? because last time i tried getting my apple ID from my old to new phone it all went wrong and i could not sign in or use imessage? thanks

    How do i get my apple ID to work from my old iphone 5 to my new iphone 6? what are the steps? as last time i tried this everything went wrong my imessage would not work and it would not let me sign in?

    Try TransPhone, it's working fine, but a bit expensive...
    After installing this, you'll Be able to send/recieve music, contacts, text messages, photos and Videos over bluetooth. Works fine with all mobile phones and computers...
    I may receive some form of compensation, financial or otherwise, from my recommendation or link
    <Edited by Host>

  • Java swing and threading issue

    i am trying to update swing components from some thread. at my first try, i noticed this was a disaster. upon further research, i found out about the single-threaded model of swing events (i.e. event dispatching thread).
    i did more research and could NOT find a good example on how to update swing components from other threads. many examples were showing too much.
    can someone post a simple example on here? i just want to see how to properly update a swing component from a non-swing class using threading.

    I think its a simple example:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=621226
    Let us know what you think.

  • Where are the API Docs of the appserv-rt.jar classes and others?

    Where do I find the API Documentation/Specification for the classes of :
    com.iplanet ...
    com.sun.appserv ...
    com.sun.enterprise.security ...
    The very of appserv-rt.jar and appserv-rt-ee.jar
    I need it for AS7 (J2EE 1.3) and AS8 (J2EE 1.4).
    Something like http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html would be nice

    For AS8, the docs subdirectory under your installation directory will have javadocs for all classes in com.sun.appserv and javax... namespace.
    For AS7, what is it that you are specifically looking for?
    In general, com.sun.enterprise... classes are not documented. There are exceptions and you should be able to find them in developer's guide.
    Finally, you might want to look at the source code in the Open Source Application Server project GlassFish (http://glassfish.dev.java.net).

  • Where are the Api's that start with com?

    When i see the online documentation i don't find api's which starts with package name "com.sun.*". where can i find documentation for this Api's. these are shipped with jdk by default. I am talking about jdk6.

    Muralidhar wrote:
    When i see the online documentation i don't find api's which starts with package name "com.sun.*". where can i find documentation for this Api's. these are shipped with jdk by default. I am talking about jdk6.Those are not API's and you should not use them. They are implementation classes for the Java platform and subject to change from version to version, from platform to platform or from vendor to vendor.
    Edited by: baftos on Jan 11, 2011 7:56 AM

  • What are the API's and OS Supported by Oracle TimesTen

    1.) What are all the API supported by oracle TimesTen?
    is the below are correct and whether other than this is there any other API supports oracle TimesTen
    JDBC,
    ODBC,
    OLAP,
    ADO.net,
    C++...............
    2.) What are the Platform supports?
    is the below are correct and whether other than this is there any other OS supports oracle TimesTen
    Linux x86-32 and x86-64:
    Oracle Linux 4 and 5
    Red Hat Enterprise Linux 4 and 5
    SUSE Enterprise Server 10 and 11
    MontaVista Linux CGE 5.0 and 6.0
    Asianux 3.0
    Microsoft Windows x86-32 and x86-64:
    Windows XP, Windows Vista, Windows Server 2003, Windows Server 2003 Release 2, Windows Server 2008, Windows 7
    Solaris SPARC 64-bit:
    Oracle Solaris 10
    Solaris x86-64:
    Oracle Solaris 10
    IBM AIX 64-bit:
    AIX 6.1 and 7.1
    Solaris SPARC 32-bit (client only):
    Oracle Solaris 10
    IBM AIX 32-bit (client only):
    AIX 6.1 and 7.1
    3.) What is the latest Version in Oracle TimesTen?
    4.) Maximum number of rows in a table.     2 Power 28 = 268,435,256 for 32 Bit     / (2 power 31-1) = 2,147,483,647 for 64 Bit
    if the Row value exceeds more than the specified value what will happen ? whether we need to have multiple tables
    Say TableA reaches 268,435,256 values and if few more rows are added then the value can be kept in new table TableB and so on..... or how?
    Thanks

    Dear 933663,
    1. What are all the API supported by oracle TimesTen?
    JDBC
    ODBC
    ADO.net
    OCI
    PRO*C
    +
    PL/SQL
    SQL
    2. What are the Platform supports?
    TimesTen 11.2.2.2.0 supports - Windows (32-bit, 64-bit), Linux x86 (32-bit, 64-bit), Solaris Sparc (64-bit), Solaris x86 (64-bit), IBM AIX Power (64-bit) (http://www.oracle.com/technetwork/products/timesten/downloads/index.html)
    The detailed information I could find only in 11.2.1 documentation (http://docs.oracle.com/cd/E18283_01/timesten.112/e13063/install.htm):
    Microsoft Windows 2000, Windows XP, Windows Vista and Windows Server 2003 and 2008 for Intel IA-32 and EM64T and AMD64 CPUs.
    Asianux 2.0 and 3.0 for Intel IA-32 and EM64T and AMD64 CPUs.
    SuSE LINUX Enterprise Server 10 for Intel IA-32 and EM64T and AMD64 CPUs.
    SuSE LINUX Enterprise Server 10 for Itanium2 CPUs
    Solaris 9 and 10 for UltraSparc CPUs
    Solaris 10 for AMD64 CPUs
    Red Hat Enterprise Linux 4 and 5 for Intel Itanium2 CPUs.
    Red Hat Enterprise Linux 4 and 5 for Intel IA-32 and EM64T and AMD64 CPUs.
    Oracle Enterprise Linux 4 and 5 for Intel IA-32 and EM64T and AMD64 CPUs.
    MontaVista Linux Carrier Grade Edition Release 4.0 and 5.0 for Intel IA-32, EM64T and AMD64 CPUs.
    HP-UX 11i v2 and 11iv3 for PA-RISC
    HP-UX 11i v2 and 11iv3 for Itanium2
    AIX 5L 5.3 and 6.1 for POWER CPUs
    3.) What is the latest Version in Oracle TimesTen?
    11.2.2.2.0 (http://www.oracle.com/technetwork/products/timesten/downloads/index.html)
    4) Maximum number of rows in a table. 2 Power 28 = 268,435,256 for 32 Bit / (2 power 31-1) = 2,147,483,647 for 64 Bit
    Actually, I couldn't find any information about rows limits for TimesTen tables and I've never faced with this problem.
    Best regards,
    Gennady

  • What are the limitations of Java,what cannot be done with Java?

    Hello.I want to ask, is there anything which cannot be done with Java related to computer programming ,does Java have limitations?

    BIJ001 wrote:
    You need a JVM to run Java applications.Usually yes but nothing prevents you from writing a compiler to compile Java sources right into native code.@Everyone: Sorry folks, I meant to say "Never say unequivocally that something cannot be done. Time will more than likely prove you wrong."... which I think you all got the gist off, despite what I actually said.
    @BIJ: Hmmm yep, so that sort-of brings writing a device driver in the Java language into the realms of practicality, except you'd still have to work-around the fact that Java is by design a device/OS idependant language, so one suspects that you'd probably end-up using to JNI to call a large and complex library of assembler (or something) functions, which actually do the work... hence you'd probably be better of in assembler, C, or indeed any "native" language, or combination thereof.
    Java excels at writing "large and complex business systems". Java pretty much sucks at writing "low-level CS stuff", which C (and assembler) both excel at... Hence some knowledge of both helps you pick the tool for the task, and create "complementary" layers of abstraction in your application, which (the theory goes) make it robust and flexible.
    I do think that it's interesting that Java excels in exactly the places where C is/was "undercooked".... I do sometimes wonder if that was by design; like the language designers intended them to be complementary tools or something.
    Cheers. Keith.

  • NWADMIN GW snapins for the API Gateway, One more Time?

    Hi folks,
    Find myself in need of these. Looks like Tommy is on vacation. Can
    someone send them over?
    Thanks.
    Jim
    [email protected]

    Originally Posted by Gert
    FYI
    http://gwcheck.biz/download/nwadmin/gw55sp5snapins.zip
    Gert
    GWCheck.com
    Great GroupWise stuff at www.GWWare.com
    "...regardless of what you play,
    the biggest thing is keeping the feel going ..." - Wes Montgomery
    >>> Jim Huddle<[email protected]> 11-8-2007 3:23 >>>
    On Sat, 11 Aug 2007 00:59:06 GMT, Jim Huddle <[email protected]> wrote:
    >Hi folks,
    >
    >Find myself in need of these. Looks like Tommy is on vacation. Can
    >someone send them over?
    >
    >Thanks.
    >
    >Jim
    >
    >[email protected]
    Found that Tommy had posted them here:
    Cool Solutions: GroupWise Snapins for the API Gateway
    Guys, the GW55SP5SNAPINS.zip are the correct ones to use, not the ones on Coolsolutions 19293.html. Download the zip, expand it and then copy expanded files in the root of the \public\win32 directory.
    Regards,
    PaulS.

  • Why are the Apple mods deleting and locking threads?

    I would like an answer as to why the mods are deleting and locking threads that have to do with the error that pervasive in the iPod 1.1 upgrade. It seems that Apple will not acknowledge it but some of us are trying to find an answer and Apple locks the thread and deletes another one. As paying customers, Apple should realize that it is us who keeps the lights on in Cupertino. I think a bit more respect to the paying customer is in order here.

    Just post your questions and replies in a calm and concise way Don and follow the guidelines within the Terms of Use;-):
    http://discussions.apple.com/help.jspa#adua
    Contrary to any belief you may have I can assure you that there are no attempts of covering up any alleged bugs in software or anything else in these fora.
    Here's a reframe to your original question - The fact that the thread was locked means that the Hosts have seen the thread. It is reasonable therefore to conclude that they would have allerted the relevant people of the issue and referred them to that thread.

  • Are the image files on a Time Machine backup password protected?

    I have had a hard drive hooked up to my AirPort Express, backing up my computers to it using Time Machine.
    Now, the hard drive is broken and I have to return it to the dealer to have it replaced as it is still covered by their warranty.
    My question is, will they be able to access my personal data?
    I have to enter a password to access the disk over the network, does this mean the image files on it are also password protected?
    I know it's not very likely they have any interest in browsing my files, but I don't like the idea to just give everything away.
    The disk won't spin so I can't format the drive.

    TZW wrote:
    I have had a hard drive hooked up to my AirPort Express, backing up my computers to it using Time Machine.
    Now, the hard drive is broken and I have to return it to the dealer to have it replaced as it is still covered by their warranty.
    My question is, will they be able to access my personal data?
    I have to enter a password to access the disk over the network, does this mean the image files on it are also password protected?
    I know it's not very likely they have any interest in browsing my files, but I don't like the idea to just give everything away.
    The disk won't spin so I can't format the drive.
    If the disk isn't spinning it is unlikely to be repaired.. And if you passworded the disk people would need the password to access although given time all those things can be broken.. I would say you have little to fear.

  • Adding desktop API to java swings

    Hi,
    I want to open the default web browser through java. So, I used desktop api to open the default web browser and its working fine also.
    I tried like this:
    if(desktop.isDesktopSupported())
                        desktop.getDesktop().browse(new URI("http://www.aamec.com"));
    Now, I want to add the opened file to internal frame of my application. I tried using add() but it's not working..
    Pls help me out..
    Thanks in advance,
    M.Sivapreeya

    SATSA API is not available with wireless toolkit 2.2. Why dont u try Wireless Toolkit 2.3 Beta version, there SATSA is available as an optional pacakge.

  • What is the diffrence between java run time env and JVM ?

    I wrote an applet on computer that installed run time env J2SE 1.4 that is running ok.
    when i try to run the applet on diffrent mechine that has earlier version my applet didn't run ok.
    Isn't enught just to install JVM ?

    The target mechine requirements should be more then
    only JVM installed ?
    do I have to ask for updated Run Time Env installed
    also ?Yes, you have to. If your program has been developed taking advantage of a certain version of the JRE, then all people using your program must have at least that version of the JRE.

  • How to fix the value of first column in the JTable in java swing for every

    Hi ,
    I have a swing page that have table panel in which there is a table of size 7x4 now when I click on the perticulat row then that row data will displayin the table like that the selected row become the second column in the new table and the fist column of this table will remain constant for all the entry but the second column update according to the roe which is selected .How it is possible .
    Thanks in Advace,
    anu

    One thing you can do is to prevent the user from editing that column and programatically supply the values of that column yourself.
    JTable table = new JTable() {
       public boolean isCellEditable(int row, int col) {
           if(col == 0) {
              return false;
           return super.isCellEditable(row, col);
    };This allows you to prevent the user from editing the column information so you can supply some sort of a default value for the column always
    ICE

  • Where are the XI adapter java packages?

    Hello every Guru,
    i am a beginner in the XI adapter developement. I found in the SAP sample adapter source code a lot of
    import com.sap.aii.af.ra.cci.NWInteraction;
    import com.sap.aii.af.ra.cci.XIDeliveryException;
    import com.sap.aii.af.monitor.api.AdapterMonitor;
    import com.sap.aii.af.monitor.api.AdapterStatus;
    import com.sap.aii.af.monitor.api.AdapterStatusData;
    import com.sap.aii.af.monitor.api.MonitorManager;import com.sap.aii.af.service.auditlog.Audit;
    import com.sap.aii.af.service.auditlog.AuditDirection;
    import com.sap.aii.af.service.auditlog.AuditLogStatus;
    import com.sap.aii.af.service.auditlog.AuditMessageKey;
    import com.sap.aii.af.service.idmap.MessageIDMapper;
    import com.sap.aii.af.service.resource.SAPAdapterResources;
    i searched all around, but can not find these packages. This seemed a little stupid. But i am really confused about this problem. Can someone help?
    Message was edited by: Xiang Zhang

    Hi there,
    a description how to get the libs is available at help.sap.com:
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/16e140a786702ae10000000a155106/frameset.htm
    hope it helps,
    Regards Christiam

Maybe you are looking for

  • HR ABAP Simple Report

    in HR ABAP  Report I have Statement  saying,, Read all the action infotype (IT0000) record for the selected employee number from the table PA0000 where MASSN = Hire (01) or Rehire (ZD), BEGDA is Greater than or equal to ‘19000101’ and ENDDA is Less t

  • I keep getting an error message when trying to open a "digital booklet" on my computer

    I've downloaded a couple of albums with "Digital Booklets" - when I try to open them on my computer I keep getting an error message saying it was either downloaded wrong or some other problem...

  • How can change my payment info?

    I'm trying to purchase something and I typed in my account number but I still can't purchase anything!

  • CS 3 not accepting valid Serial #

    I had to reinstall Acrobat 8 and used my original install disks. I was in fact able to get a working copy of Acrobat 8 Professional installed and working on my machine. However, in the process of this installation, ALL of my Creative Suite Applicatio

  • Berkeley DB and DRBD

    Hello, Do you have any advices to give about the use of Berkeley DB with DRBD (on linux clusters)? Things I must have in mind, etc. Note : Currently, my Berkeley DB databases are stored on a replicated storage managed by DRBD on a two-node Linux clus