Turn on thread page Beta

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
    • Clearing and Applications Advisor
    Offline

    21
    ReputationRep:
    Very Important Poster
    PS Reviewer
    Clearing and Applications Advisor
    (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)
 
 
 
Reply
Submit reply
Turn on thread page Beta
Updated: March 10, 2016
The home of Results and Clearing

1,082

people online now

1,567,000

students helped last year

University open days

  1. University of Buckingham
    Postgraduate Open Evening Postgraduate
    Thu, 23 Aug '18
  2. University of Glasgow
    All Subjects Undergraduate
    Tue, 28 Aug '18
  3. University of Aberdeen
    Undergraduate Open Day Undergraduate
    Tue, 28 Aug '18
Poll
How are you feeling about GCSE results day?

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.