JOptionPane.showMessageDialog("Employee Id Is "+
empid , "\nEmploye Name is " + employeename ,
"\nFather Name is " + fathername ,
"\nJob Catagory is " + jobcatagory,
"\nAge is " + age,
"\nEducation is " + education,
"\nPay Scale is " + payscal,
"\nNIC is " + NIC);
正在此錯誤沒有合適的方法發現showMessageDialog
no suitable method found for showMessageDialog(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
method javax.swing.JOptionPane.showMessageDialog(java.awt.Component,java.lang.Object,java.lang.String,int,javax.swing.Icon) is not applicable
(actual and formal argument lists differ in length)
method javax.swing.JOptionPane.showMessageDialog(java.awt.Component,java.lang.Object,java.lang.String,int) is not applicable
(actual and formal argument lists differ in length)
method javax.swing.JOptionPane.showMessageDialog(java.awt.Component,java.lang.Object) is not applicable
(actual and formal argument lists differ in length)
你認爲錯誤的含義是什麼?看看你的方法調用,特別是衆多的','。 –