Reputation: 0 Apprentice
- Active Posts:
- 21 (0.01 per day)
- 23-September 10
- Profile Views:
- Last Active:
- May 09 2014 09:29 PM
- Dream Kudos:
Posts I've Made
Posted 11 Feb 2013So what is the error. Please post a stack trace.
the exception is java.lang.arrayindexoutofboundsexception:0 :: Actually it occurs as the array is declared with 0 size; as per my knowledge it should be declared as 0 since, we couldn't predict the portname so it should assign portname by default. What do you say? is there any flaw with that particular kind of declaration???
Posted 29 Jan 2013There could be many things going wrong in the actionPerformed() method, and we can't test them all. Write your own code, print statements, logs entries, etc., to test entry into and progress through the actionPerformed() method and the branches within.
If this is your first jdbc program, the problem(s) will probably be in connecting to the data base, getting info from it, etc., but you should be seeing error messages if that's the case, except . . .
Empty catch() blocks are worthless. Put something in there to indicate when errors have occurred.
can we set position for the labels in the above program??
I have tried with setLocation(); setBounds(new Rectangle(new Point(200, 200), lab1.getPreferedSize())); and setBounds command but couldn't get positioned according to it..
Is there any problem without it??
or Do i need any corrections????
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me