public Logo(String img,String url){
  super(new BorderLayout());
  Icon image=new ImageIcon(ImageUtilities.loadImage(img,true));
  JLabel label=new JLabel(image);
  label.setBorder(BorderFactory.createEmptyBorder());
  label.setOpaque(false);
  label.addMouseListener(this);
  setOpaque(false);
  add(label,BorderLayout.CENTER);
  setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
  this.url=url;
}

public Logo ( String img , String url ) { super ( new BorderLayout ( ) ) ; Icon image = new ImageIcon ( ImageUtilities . loadImage ( img , true ) ) ; JLabel label = new JLabel ( image ) ; label . setBorder ( BorderFactory . createEmptyBorder ( ) ) ; label . setOpaque ( false ) ; label . addMouseListener ( this ) ; setOpaque ( false ) ; add ( label , BorderLayout . CENTER ) ; setCursor ( Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ; this . url = url ; }
creates a new instance of recentprojects
