1 package cve.core.elementEEL; 2 3 import cve.osservatori.*; 4 5 import java.awt.*; 6 import java.awt.event.*; 7 import java.util.*; 8 import javax.swing.text.*; 10 import javax.swing.*; 11 import javax.swing.event.*; 12 import javax.swing.border.*; 13 15 22 public class CveButton extends JButton 23 { 24 Action act; 25 26 31 public CveButton(ImageIcon icon) 32 { 33 super(icon); 34 setBorderPainted(true); 36 setMargin(new Insets(1,1,1,1)); 37 setToolTipText("Add unita"); 38 setEnabled(false); 40 } 44 45 49 public CveButton() 50 { 51 super(); 52 setBorderPainted(true); 54 setMargin(new Insets(1,1,1,1)); 55 setToolTipText("Add unita"); 56 } 61 62 66 public Dimension getPreferredSize() 67 { 68 return new Dimension(35,35); 69 } 70 71 78 } 79 | Popular Tags |