public DemoModule(SwingSet2 swingset,String resourceName,String iconPath){
  UIManager.put("swing.boldMetal",Boolean.FALSE);
  panel=new JPanel();
  panel.setBorder(BorderFactory.createEmptyBorder(0,5,5,5));
  panel.setLayout(new BorderLayout());
  this.resourceName=resourceName;
  this.iconPath=iconPath;
  this.swingset=swingset;
  loadSourceCode();
}

public DemoModule ( SwingSet2 swingset , String resourceName , String iconPath ) { UIManager . put ( "swing.boldMetal" , Boolean . FALSE ) ; panel = new JPanel ( ) ; panel . setBorder ( BorderFactory . createEmptyBorder ( 0 , 5 , 5 , 5 ) ) ; panel . setLayout ( new BorderLayout ( ) ) ; this . resourceName = resourceName ; this . iconPath = iconPath ; this . swingset = swingset ; loadSourceCode ( ) ; }
instantiates a new demo module .
