hey acctually i m creating desktop application ... so in the page where i m try to enter data in database ... there is a scen created ,...
that is in the main class
public static void main (String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new registration().setVisible(true);
}
});
}
and got an error of... illegal start of expression....
kindly help me as soon as possible...
main class ceating problem....
Started by anuj6928, Sep 25 2010 02:49 AM
1 reply to this topic
#1
Posted 25 September 2010 - 02:49 AM
|
|
|
#2
Posted 25 September 2010 - 03:39 AM
There is nothign wrong with that piece of code.
Few things to notice:
But these things don't cause any errors. Your error lies somewhere else.
Few things to notice:
- It's more common to do "String[] args"
- class names must begin with a capital letter, so you should name yours "Registration"
But these things don't cause any errors. Your error lies somewhere else.


Sign In
Create Account

Back to top









