Well, just insert as a method. While one is open then have it run, while another thing opens then, if window 1 close, continue to next window and etc.
Or look here for ideas.
Multiply windows
Last edited by Turk4n; 10-25-2009 at 03:06 AM. Reason: Edited
where is the class "New" implementation ?
this part right here --> file.add(New);
where is the definition for that object "New"
Ah, you meant the "New" part, well...
New is an action that creates a new abstract-action we use to create new document or whatever so.Code:Action New = new AbstractAction("New", new ImageIcon("Path/image.gif")) { public void actionPerformed(ActionEvent e) { saveOld(); area.setText(""); currentFile = "Untitled"; setTitle(currentFile); changed = false; Save.setEnabled(false); SaveAs.setEnabled(false); } };
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks