• Keine Ergebnisse gefunden

Exercise3Swing Exercise2MobileCodewithRMI Exercise1RMI-Chatsystem PracticeSheet12(HintsandComments) AdvancedAspectsofObject-OrientedProgramming(SS2015)

N/A
N/A
Protected

Academic year: 2022

Aktie "Exercise3Swing Exercise2MobileCodewithRMI Exercise1RMI-Chatsystem PracticeSheet12(HintsandComments) AdvancedAspectsofObject-OrientedProgramming(SS2015)"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Prof. Dr. A. Poetzsch-Heffter Mathias Weber, M.Sc.

University of Kaiserslautern Department of Computer Science Software Technology Group

Advanced Aspects of Object-Oriented Programming (SS 2015) Practice Sheet 12 (Hints and Comments)

Exercise 1 RMI-Chatsystem

See provided sources.

Exercise 2 Mobile Code with RMI

See provided sources.

Exercise 3 Swing

a) See provided sources.

b) The execution of aSwingWorkerinvolves three threads:

• Current thread: Theexecute()method is called on this thread.

• Worker thread: ThedoInBackgroud()method is called on this thread.

• Event Dispatch Thread: All Swing related activities occur on this thread. Specifically, the methodsprocess()

anddone()are invoked on this thread.

Typically, the interface between the worker and the GUI is very broad: Theprocess()method, which is part of the worker and updates the state of the GUI, will access most of the elements of the GUI directly. Great care has to be taken that this access is thread-safe. Thread-safety can be accomblished by relocating all access to the GUI elements to the Event Dispatch Thread usingSwingUtilities.invokeLaterorSwingUtilities.invokeAndWaitor the

processanddonemethods ofSwingWorkers.

Referenzen

ÄHNLICHE DOKUMENTE

voices of particular workers would be read as the “workers’ voice”, the documents of individual working people made testimony to working-class life and experience in general..

Επιπλέον, στην ημερήσια διάταξη των ισορροπιών κεφαλαίου και εργασίας συνεχίζουν να βρίσκονται και οι πιέσεις για κοινωνική επαναρύθμιση ( re-regulation )

In the event of a Local or Asian financial crisis our findings suggests that Malaysia will be the stock index affected the most as it is highly correlated

Bu çalışma içerisinde 2001 krizi sonrasında Türk bankacılık sektöründe oluşan yerel para cinsinden kredi- mevduat açığının çapraz kur swapları yoluyla

Together, these two conditions – the advance of technology due to international anarchy and the Hegelian struggle towards symmetrical recognition – make a world state

Finalmente, dado que la distribución de los residuos de la ecuación de corto plazo es unimodal y no presenta mayor masa de probabilidad en sus colas (o valores extremos),

To account for sources of output gains from SPs other than the productivity gap, we add a number of controls in the second stage production function equation (13), including the

A composite consists of a rigid base, an elastic layer and a film that can be assumed to be inextensible.. What form will assume the film when trying to tear