Hey there! Sign in to join this conversationNew here? Join for free

Operating systems and Concurrency question: Java programming using swing watch

    • Thread Starter
    Offline

    0
    ReputationRep:
    Two questions, please help!

    This question is about Java programming using swing.

    Is it true that Threading problems cannot occur when using swing because it is thread safe?

    And Calling paint(this.getGraphics()) from a method running in the main thread will cause the paint method to be executed in the event dispatch thread ?


    I'm from america
    • Very Important Poster
    • PS Reviewer
    Offline

    21
    ReputationRep:
    Very Important Poster
    PS Reviewer
    (Original post by aniq2016)
    Two questions, please help!

    This question is about Java programming using swing.

    Is it true that Threading problems cannot occur when using swing because it is thread safe?

    And Calling paint(this.getGraphics()) from a method running in the main thread will cause the paint method to be executed in the event dispatch thread ?


    I'm from america
    Moved to the Computer Science and ICT study help forum (and bumped)
 
 
 
Poll
Do you agree with the PM's proposal to cut tuition fees for some courses?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.