i need information can create custom login dialog.
public static void main(string args[]) { joptionpane.showinputdialog("enter username: "); // show dialog , after 'ok' button clicked // dialog, return input string, right? }
so, created new class extends jdialog includes 2 labels, 2 text fields , 1 button, after button clicked want simulate joptionpane.showinputdialog() want wait user input before other code proceed.
public static void main(string args[]) { logindialog ld=new logindialog(); ld.setvisible(true); // when button clicked want code continue... dl.getusername(); dl.getpassword(); }
Comments
Post a Comment