![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Unknown
Join Date: Apr 2008
Location: unknown
Posts: 87
Rep Power: 1
![]() |
my program is correct but it acts weird(exception handling)
i run my program and it is acting weird even i inputted correct values, i reviewed it and i thnk my code is correct, please check it.. and debug itif you have some time... thanks
here is the data frame class java Syntax (Toggle Plain Text)
and here is the datapanel class java Syntax (Toggle Plain Text)
and the exception class java Syntax (Toggle Plain Text)
__________________
------------------------------------------------------------------------- I thought what I'd Do was, I'd pretend to be one of those deaf mutes ------------------------------------------------------------------------ |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Re: my program is correct but it acts weird(exception handling)
protected DataPanel panel = new DataPanel(); pane.add(new DataPanel(),BorderLayout.CENTER); You aren't actually adding the DataPanel you are validating input on to your DataFrame. Are you using an IDE? Eclipse maybe? It has a debugger you can use to step through your code. You would've spotted the problem pretty quickly.
__________________
http://www.kevinherron.com/ |
|
|
|
|
|
#3 |
|
Unknown
Join Date: Apr 2008
Location: unknown
Posts: 87
Rep Power: 1
![]() |
Re: my program is correct but it acts weird(exception handling)
but that's what it suppose to do... cause that was in the book... i'm not using eclipse, i am using blueJ, it runs slow in my computer...got 256mb or ram, 80g of harddisk drive, 3 gigahertz of processor speed, it runs slow for me... my program works but the exception handling is wrong... ill check my program tomorow... ill be doing some other exercise for now... thanks anyway...
__________________
------------------------------------------------------------------------- I thought what I'd Do was, I'd pretend to be one of those deaf mutes ------------------------------------------------------------------------ |
|
|
|
|
|
#4 |
|
Professional Programmer
|
Re: my program is correct but it acts weird(exception handling)
I told you exactly how to fix it. You are calling panel.validateInput() on a different DataPanel than the one you add to your DataFrame.
__________________
http://www.kevinherron.com/ |
|
|
|
|
|
#5 |
|
Unknown
Join Date: Apr 2008
Location: unknown
Posts: 87
Rep Power: 1
![]() |
Re: my program is correct but it acts weird(exception handling)
thanks dude... i haven't figured it out.... im stupid in not understanding that... thanks again
__________________
------------------------------------------------------------------------- I thought what I'd Do was, I'd pretend to be one of those deaf mutes ------------------------------------------------------------------------ |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| hello, I'd like to write a program for my work. | blake_jl | Community Introductions | 13 | Nov 23rd, 2007 4:31 PM |
| Sudoku program info & description | Adak | Software Design and Algorithms | 4 | Jul 2nd, 2006 12:49 PM |
| Language display in program | Prm753 | C++ | 3 | May 30th, 2006 5:45 PM |
| Creating a program to test a program | sixstringartist | C | 8 | Jan 21st, 2006 1:15 PM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |