Gavin Bong

Ranch Hand
+ Follow
since Apr 25, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gavin Bong

If your facade session bean accesses the entity bean via its local interface, then its impossible for you to get a RemoteException, ever.
Pho
Are there any step by step diagrams on how to apply the Fifth Position Break pattern ?
With regards to the book, I having a "hard" time wrapping my head around the concept. It's funny for a while, but it wears thin after a few reads. It's certainly more fun than reading GoF but ..
I would think that aggregation and composition are modelling concepts and
how that translates to Java code is something entirely different. I think it's certainly difficult to ascertain the difference b/w an association and aggregation from code (as Ilja pointed out) and whether it's necessary at all.
Fowler blogged on this in May.
Howard,
How do you go about organizing a study group on design patterns ?
Is there "pattern" to the agenda that you follow during discussion ?
What text would you recommend using ?
Cheers,
Gavin
[ December 01, 2003: Message edited by: Gavin Bong ]
Kyle,
Thus entity beans are domain objects ? Although I find that in most of the work that we do; the business logic is in the SLSB layer and the entity beans end up as proprietary POJOs.
Has anyone read Domain Driven Design by Eric Evans ?
value and code are the two member variables in my class, from which this code extract was taken from.
19 years ago
In the book Effective Java, Jason Bloch proposed this hashCode formula (here shown for strings). What is the significance of the magic numbers 17 and 37 ? Is some number theory math wizardry involved ?
20 years ago
In the field of RIA, Macromedia Flex (aka Royale) seems promising.
20 years ago
Thanks Tim.

If you look at the picture, I'm now able to display the strings in the combobox instead of the codes. However the selected item is now showing the code. This is due to the fact that I overrode getSelectedItem() in my custom model.
e.g.

Basically the getSelectedItem is behaving like I want it to be. However
the combobox should highlight the selected item & not display its code.
Any comments ?
Thanks
G
20 years ago
Avi,
If you're talking about "Generics", yes I have heard of it.
Gavin
20 years ago
A vector can contain objects of heterogeneous types.
If I want to write a verification method to ensure that
all its elements are of a certain class; are there any
convenience methods to do this; other then iterating thru it and
checking each individual.
Thanks
G
20 years ago
I want to create a ComboBox which will be constructed using:

My custom Combobox model will contain a Map (key and the actual name for display). Thus I will need a customRenderer to dereference the actual name
for display. Right ? Now, in the interface for ListCellRenderer, there is
a method:

What is the type of value parameter and who actually sets it ?
Thanks
G
20 years ago
Does eclipse plugins need to have a UI ?
Can we utilize it as a general purpose software updating mechanism
like webstart ?
Thanks
Gavin
I have a singleton that generates monotonically increasing ids for
my SWING app. Although the singleton will be unloaded when the SWING app terminates; I suspect that the app will be running for like 8 hours a day. Is there a way to replace the singleton ?
20 years ago
Is the term Business Object any different from Model objects (Model as in MVC) ?