Shouldnt allow multiple instances of Friend or Party windows. After launching app, if you click on the Friends button (or Parties), it should only launch a window the first time. Right now, you can repeatedly launch multiple instances.
Logged In: YES user_id=909665
Sruthan,
To avoid mulitiple instances, we can create 2 variables friendWIN, partyWIN as instance variable of FriendGUI then create instances when App starts
then use two method
FriendWindow getFriendWindow() { return frinedWIN;} PartyWindow getPartyWindow() { return partyWIN; }
return reference to those instances from actionPerformed() inside FriendGUI.
I have the modified FriendGUI.java ready.
regards
Log in to post a comment.
Logged In: YES
user_id=909665
Sruthan,
To avoid mulitiple instances, we can create 2 variables
friendWIN, partyWIN as instance variable of FriendGUI
then create instances when App starts
then use two method
FriendWindow getFriendWindow() { return frinedWIN;}
PartyWindow getPartyWindow() { return partyWIN; }
return reference to those instances from actionPerformed()
inside FriendGUI.
I have the modified FriendGUI.java ready.
regards