protected void initializeViews(boolean debugMode)
throws KameleonException {
GridBagLayout gridbag = new GridBagLayout() ;
GridBagConstraints c ;
this.setLayout(gridbag) ;
Model model = new Model(debugMode) ;
// Set drag and drop handler
JComponent cp = (JComponent) this.getContentPane() ;
cp.setTransferHandler(new FileDragAndDropHandler(model)) ;
// Menu
this.setJMenuBar(new Menu(model, this)) ;
// Selected file
c = new GridBagConstraints() ;
c.gridwidth = 1 ;
c.gridheight = 1 ;
c.anchor = GridBagConstraints.NORTH ;
c.fill = GridBagConstraints.BOTH ;
c.gridx = 0 ;
c.gridy = 0 ;
c.weightx = 0.0 ;
c.weighty = 0.0 ;
SelectionView vueSelection = new SelectionView(this,model) ;
vueSelection.setPreferredSize(new Dimension(350, 120)) ;
vueSelection.setMinimumSize( new Dimension(350, 120)) ;
this.add(vueSelection) ;
gridbag.setConstraints(vueSelection, c) ;
// Currently selected file format
c = new GridBagConstraints() ;
c.gridwidth = 1 ;
c.gridheight = 1 ;
c.anchor = GridBagConstraints.NORTH ;
c.fill = GridBagConstraints.BOTH ;
c.gridx = 1 ;
c.gridy = 0 ;
c.weightx = 0.0 ;
c.weighty = 0.0 ;
FormatView vueFormat = new FormatView(model, this) ;
vueFormat.setPreferredSize(new Dimension(100, 120)) ;
vueFormat.setMinimumSize( new Dimension(100, 120)) ;
this.add(vueFormat) ;
gridbag.setConstraints(vueFormat, c) ;
// Messages
c = new GridBagConstraints() ;
c.gridwidth = GridBagConstraints.REMAINDER ;
c.gridheight = 3 ;
c.fill = GridBagConstraints.BOTH ;
c.gridx = 2 ;
c.gridy = 0 ;
c.weightx = 1.0 ;
c.weighty = 1.0 ;
ViewMessages vm = new ViewMessages(model) ;
this.add(vm) ;
gridbag.setConstraints(vm, c) ;
// Recent files
c = new GridBagConstraints() ;
c.gridwidth = 2 ;
c.gridheight = 1 ;
c.weightx = 0.0 ;
c.weighty = 1.0 ;
c.gridx = 0 ;
c.gridy = 1 ;
c.fill = GridBagConstraints.BOTH ;
HistoryView vueHistorique = new HistoryView(model, this) ;
vueHistorique.setPreferredSize(new Dimension(350, 380)) ;
vueHistorique.setMinimumSize( new Dimension(350, 380)) ;
this.add(vueHistorique) ;
gridbag.setConstraints(vueHistorique, c) ;
// Output format selection
c = new GridBagConstraints() ;
c.gridwidth = 2 ;
c.gridheight = 1 ;
c.weightx = 0.0 ;
c.weighty = 0.0 ;
c.gridx = 0 ;
c.gridy = 2 ;
c.fill = GridBagConstraints.BOTH ;
GenerationView vueGeneration = new GenerationView(model,this) ;
vueGeneration.setPreferredSize(new Dimension(350, 200)) ;
vueGeneration.setMinimumSize( new Dimension(350, 200)) ;
this.add(vueGeneration) ;
gridbag.setConstraints(vueGeneration, c) ;
model.notifyLanguageChange() ;
}// initializeViews(boolean)