文本编辑器源文件(java语言)(5) return true; } return false; } public boolean action(Event evt,Object arg) { if(evt.target instanceof Button) { if(evt.target== OK) { mp.setcolor(current); dispose(); return true; } if(evt.target== Cancel) { dispose(); return true; } } return super.action(evt,arg); }}class W_quick extends Window{ MainF fr; private Dimension sz; private int w,h; private int fw,fh; private FontMetrics fm; private int index=0; public W_quick(MainF fr,I_Method qm,int x,int y) { super(fr);