Kristof Janssens

Greenhorn
+ Follow
since Jan 05, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Kristof Janssens

well, you can do it like I said I did it:
use slashes ( \/ and /\ )

It isn't the best solution but it's clean, easy and you see that something happened.
I've added it in my application, still waiting for the score so I can't tell you my GUI score.
But I can tell you it's quite simple to implement. The only problem is the arrow symbol that shows in which order the table is sorted. You can paint it yourself (with awt)or use an external image or you can keep it really simple like me:
add \/ or /\ depending on the sorting order.
I'm quit happy with it and it was really easy to make.
[ March 29, 2006: Message edited by: Kristof Janssens ]
I only provided the update of a record and only off certain fields, since all the rest is out of the scope of the assigment in my opinion. I also created some kind of "framework" in which I load panels that will be shown in a tabbed pane. This way I can easily add a new panel in the future without changing a lot in the GUI. Since it is a MUST that the GUI can be easily changed without many troubles for the user.
[ March 28, 2006: Message edited by: Kristof Janssens ]
I don't use that exception. I mentioned in my choices.txt file that this exception cannot be thrown because I also use the record position as primary key. I placed the exception in my methods so it is available for future enhancements, but it is never thrown.
J2SE 5.0 (1.5.0)TigerSept 29, 2004

So, as some other already calculate on this forum, J2SE 1.4.2 will be superseded on the 29th or march this year, E.T.A 6 days

That's why I rushed to complete my assignment and upload it this evening. It will compile and run perfectly without any errors or what so ever on 5.0, but I dont use any of the new features. That's my main reason to upload it today so I won't loose point because I didn't use any new classes that can be found in 5.0
I think you're making it too difficult for yourself

I shall explain how I did it:

- I have a client class and a server class, they have public constructors. There is NO main method in neither one of them
- I have a class called StartUp that only has 1 method: main()

That main method read the parameters the user gave in during the "java -jar runme.jar" procedure

StartUp.main() looks at the flag:
- is it SERVER, a new server object is created
- is it ALONE, a new client object is created and will start immediatly in standalone mode (I pass true or false in the client constructor so it knows which mode to run)
- is it empty, a new client object is created and will show my connection panel, which allows the user to go in local or in network mode

So my the manifest in my jar points to the startup class ... and that's it, you're done.

If you start it up, it will start client or server, depending on the flag you give. So by default the client is started.
Wow, thats terrible!
Note to myself: don't let the admin touch my pc!

I think the best thing you should to is to telephone to your local Sun office as quickly as you can to explain this because if Sun doesn't know about this ... they can think you failed the test and you have to resubmit your assigment. On the other hand, they should notice the extreme short test time ... but you can only be sure when you talk to Sun directly.
You could have used google to find this one ... did you even search?

anywhy, here you find an example:
http://www.java2s.com/Code/Java/Swing-JFC/Textfieldonlyacceptsnumbers.htm
19 years ago
I'm pretty sure that with deleting a record, they mean that you have to set a flag that will tell you if it is a deleted record or not.
I'm using a queue in my locking mechanism, well I call it a queue, but it doesnt look like Sun's queue

I'm almost done, gonna try to upload it this month, but if not, do I need to implement things like for example generics?
It only means that your app. should be able to compile/run on jdk 1.5? Or should it also implement it features?
I think you can upload the assignment before you have the voucher.

I have one question for you: what is that deadline you're talking about?
You're not allowed to use xml.

My mapping between model-view, model-controller, controller-view happens in the base class of my GUI application, so it's hardcoded.

What you suggest is beyond the scope, so don't need to worry about that I guess
The evaluation goes from left to right. So first i = 4, making the first [].length=4. Then you assign i = 3, making the other 2 [].length = 3.
The code like that will compile and run without any problem. The reason is that you have a non-static free floating block. This mean it will only be executed when you invoke the constructor (before the constructor itself will be executed).

So if you add "new Testaaaac();" to your code or you make the free floating block a static one: static { ... }, you'll get your exception

The main thread will also stop at that moment.