setBackground(Color.blue); requestFocus() We can't use WindowListener in same class so we defined two classes one for frame & another for WindowListener. 1.
確定! 回上一頁