1,Repetitive bridging code in swing renderer.
- By William Louth
- November 15, 2000
Bridging the Gap Between Java Clients and EJBs Using XML
Listing 1. Repetitive bridging code in swing renderer.
// The renderer needs to have knowledge of all potential classes and
// their respective icons
if( obj instanceof Customer)
icon = iconCustomer;
else if( obj instanceof Order)
icon = iconOrder;