Java Swing application - How can the controller access the UI? -


i'm create desktop application. decided in swing. confused architecture i'm going use. decided like.

ui-controller-service-dao

i'm confused in relationship between controller , ui. understand controller operations ui needs controller handles events of ui, such when button click. cases when button clicked disable ui, means controller needs acces ui disabling. how can provide access ui controller?

the controller have link respective view , model. button click not have go through controller since responsibility of ui handle event. on other hand if opening internal frame , there multiple panels, these should displayed going through controller. , if 1 panel wants change value of panel, should go through respective controller view belongs , not interact directly view.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -