Java Block last JFrame from being focused like a JOptionPane
问题 I got a program. When I clic on a button, it opens a 2nd JFrame. (NB: I do not not want to use a JOptionPane because it is too basic). I would like, just like the JOptionPane, that my first Frame cannot be focusable and if clicked, the 2nd one will blink like the JOP. Basicly: - I want to have the 2nd Jframe to be the focused frame out of the two and the 1st one cannot be clicked until the 2nd is closed. 回答1: You want to: Either use a modal JDialog in place of the second JFrame Or use a