Popup Message boxes

后端 未结 8 1152
粉色の甜心
粉色の甜心 2020-12-04 16:33

I am unsure of how to code popup message box in my methods.

public String verify(){
    String result = \"failed\";
    int authcode = staffBean.getVerifyCod         


        
8条回答
  •  一整个雨季
    2020-12-04 16:54

    JOptionPane.showMessageDialog(btn1, "you are clicked save button","title of dialog",2);
    

    btn1 is a JButton variable and its used in this dialog to dialog open position btn1 or textfield etc, by default use null position of the frame.next your message and next is the title of dialog. 2 numbers of alert type icon 3 is the information 1,2,3,4. Ok I hope you understand it

提交回复
热议问题