1 package cve.staticLayout.metaphor; 2 3 import javax.swing.JToolBar ; 4 import javax.swing.JButton ; 5 import javax.swing.ImageIcon ; 6 7 import javax.swing.JFrame ; 8 import javax.swing.JTextArea ; 9 import javax.swing.JScrollPane ; 10 import javax.swing.JPanel ; 11 12 import java.awt.*; 13 import java.awt.event.*; 14 15 import cve.util.ConfigurationRead; 16 import cve.staticLayout.ViewLog; 17 18 import org.apache.log4j.Logger; 19 import cve.staticLayout.Cve; 20 21 28 public class LogbookTool extends JToolBar 29 { 30 31 34 public LogbookTool(){ 35 Cve.errLog.debug(""); 36 ViewLog.writeInLog("\n"+" Inizializzo metafora del logbook "); 37 setOrientation(0); addButtons(); 39 setSize(240,30); 40 setVisible(true); 41 } 42 43 46 protected void addButtons() { 47 Cve.errLog.debug(""); 48 JButton button = null; 49 ViewLog.writeInLog(" Inizializzo struttura di navigazione "+"\n"); 50 button = new JButton (new ImageIcon (ConfigurationRead.getCveRoot()+"/resource/metaphor/copycont_r_co.gif")); 51 button.setToolTipText("Next page"); 52 add(button); 53 button = new JButton (new ImageIcon (ConfigurationRead.getCveRoot()+"/resource/metaphor/copycont_l_co.gif")); 54 button.setToolTipText("Previous page"); 55 addSeparator(); 56 add(button); 57 button = new JButton (new ImageIcon (ConfigurationRead.getCveRoot()+"/resource/metaphor/copy_r_co.gif")); 58 button.setToolTipText("Last page"); 59 addSeparator(); 60 add(button); 61 button = new JButton (new ImageIcon (ConfigurationRead.getCveRoot()+"/resource/metaphor/copy_l_co.gif")); 62 button.setToolTipText(""); 63 addSeparator(); 64 add(button); 65 } 66 } 67 68 | Popular Tags |