الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مساعدة فى ال undo,redo

مغلق
بدأه ahabdeen في 6 أغسطس 2003 · 3 رد · 696 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

انا اسخدمت ال

text.getDocument().addUndoableEditListener(new MyUndoableEditListener());

فى عمل ال undo ,redo

و ال class

class MyUndoabelListener implements UndoableEditListener
        {
			public void undoableEditHappened(UndoableEditEvent e){
				//Remember the edit and update the menus
				undo.addEdit(e.getEdit());
				undoAction.update();
				redoAction.update();
			}
		}

ولكن دائما يطلع الخطا

C:Documents and SettingsahmedDesktopPadCopy of new stylenotePad.java:138: cannot resolve symbol
symbol  : class UndoableEditListener 
location: class notePad.MyUndoabelListener
 class MyUndoabelListener implements UndoableEditListener
                                     ^
C:Documents and SettingsahmedDesktopPadCopy of new stylenotePad.java:140: cannot resolve symbol
symbol  : class UndoableEditEvent 
location: class notePad.MyUndoabelListener
			public void undoableEditHappened(UndoableEditEvent e){
                                                         ^
C:Documents and SettingsahmedDesktopPadCopy of new stylenotePad.java:129: cannot resolve symbol
symbol  : class MyUndoableEditListener 
location: class notePad
        text.getDocument().addUndoableEditListener(new MyUndoableEditListener());
                                                       ^
3 errors

Tool completed with exit code 1

ارجو الافادة؟؟؟؟؟

ahabdeen.jpg

<marquee>

مش موجود بصفة دايمة للامتحانات

</marquee>

#3

انا اكتشفت ان لازم اضيف كل جديد فى الاول

زاى

import javax.swing.event.UndoableEditListener;
import javax.swing.event.UndoableEditEvent;

و ال

import javax.swing.*

;

لا تفيد بشىء مع ان هذا جديد و لم يحدث معى قبا كدة؟؟؟؟؟

ahabdeen.jpg

<marquee>

مش موجود بصفة دايمة للامتحانات

</marquee>

هذا الموضوع مغلق.

مواضيع مشابهة