I'm coding a bet system to texas holdem and i have problem with opening all windows at once.
while (rozdania > 0){
for(Player p : pp){
if(p.inGame()){
pula+=p.bidWindow();
}
}
rozdania--;
}
public int bidWindow(){
new WindowBid(this);
return 1;
}
public WindowBid(Player p){
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(400,175);
setVisible(true);
}
I want to open windows right after when the previous was closed. But i have no idea how to do it.
I'm using JFrame for that. (Sorry for my English tough)
Thanks.