Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing Observable interface in Jframe class

tajinder pal singh
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

is it possible to implement Observable Design pattern where Jframe is involved?
My Problem is i coded Uno Game as Console application and now i have to add GUI so calling Jframe main method everytime (to pass the object ) does not seem legit to me .

if yes we can, then please guide me what exactly should be done in Update method ( Which will be called in Jframe class )
As per my understanding i will be passing object of subject/Observable implementing class ?

Please make me correct .
Any Valuable advice will be highly appreciated.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic