/* * McbSettingsSave.java * * Created on May 12, 2006, 4:46 PM */ package Current.popups.Settings; import java.awt.*; import java.awt.event.*; import org.pat.graphics.boxed.ListenString; import Current.manage.*; import Current.util.TextProcess; /** * * @author pat */ public class Save extends Canvas implements MouseListener, FocusListener, KeyListener { boolean selected=false; ListenString[] LS=new ListenString[3]; Manager M; static int padding=4; static Color bgColor=new Color(0,50,100); /** Creates a new instance of McbSettingsSave */ public Save(Manager M) { this.M=M; setFont(new Font("sanserif", Font.PLAIN, 12)); setBackground(bgColor); LS[0]=new ListenString("filename:", this); LS[0].showBorder=false; LS[1]=new ListenString("MMMMMMMMMMMM", this); LS[2]=new ListenString("save", this); double x=padding, y=padding; for (int i=0; i12) { temp=temp.substring(0,12); } if (! LS[1].str.equals(temp)) { LS[1].str=temp; repaint(); return; } } } public void focusGained(java.awt.event.FocusEvent focusEvent) { } public void focusLost(java.awt.event.FocusEvent focusEvent) { if (selected) { selected=false; selectColors(); repaint(); return; } } }