+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Simple Text Editor

  1. #11
    Join Date
    May 2008
    Location
    Hell
    Posts
    3,851
    Blog Entries
    4
    Rep Power
    49

    Re: Simple Text Editor

    Quote Originally Posted by CSInTraining View Post
    sorry, I meant that how do you open a new window of this application, that is not attached (such as open it untitled1, use it to open untitled 2 , close untitled 1 but untitled 2 keeps going)
    sorry for my poor wording and "n00bish" question.
    +rep
    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

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #12
    Join Date
    Oct 2009
    Location
    UK
    Posts
    5
    Rep Power
    0

    Re: Simple Text Editor

    Quote Originally Posted by Turk4n View Post
    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.
    Thanks mate...worked perfectly and I understand GUI's quite a bit, and this is my first time using a GUI, thank you so much.

  4. #13
    Join Date
    May 2008
    Location
    Hell
    Posts
    3,851
    Blog Entries
    4
    Rep Power
    49

    Re: Simple Text Editor

    Quote Originally Posted by CSInTraining View Post
    Thanks mate...worked perfectly and I understand GUI's quite a bit, and this is my first time using a GUI, thank you so much.
    No problem

  5. #14
    miami is offline Newbie
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Re: Simple Text Editor

    where is the class "New" implementation ?

  6. #15
    Join Date
    May 2008
    Location
    Hell
    Posts
    3,851
    Blog Entries
    4
    Rep Power
    49

    Re: Simple Text Editor

    Quote Originally Posted by miami View Post
    where is the class "New" implementation ?
    Pardon?

  7. #16
    miami is offline Newbie
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Re: Simple Text Editor

    this part right here --> file.add(New);


    where is the definition for that object "New"

  8. #17
    Join Date
    May 2008
    Location
    Hell
    Posts
    3,851
    Blog Entries
    4
    Rep Power
    49

    Re: Simple Text Editor

    Quote Originally Posted by miami View Post
    this part right here --> file.add(New);


    where is the definition for that object "New"
    Ah, you meant the "New" part, well...
    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);
    		}
    	};
    New is an action that creates a new abstract-action we use to create new document or whatever so.

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Text Editor
    By hudbarnett in forum PHP Development
    Replies: 2
    Last Post: 08-31-2010, 12:27 AM
  2. Text Editor [C]
    By 539 in forum C and C++
    Replies: 1
    Last Post: 05-07-2010, 05:31 PM
  3. My new text editor
    By DarkLordoftheMonkeys in forum General Programming
    Replies: 3
    Last Post: 01-23-2010, 02:50 PM
  4. Text Editor vs IDE?
    By Psynic in forum General Programming
    Replies: 3
    Last Post: 05-28-2009, 11:42 AM
  5. C++ Text Editor Development
    By Natsuki in forum C and C++
    Replies: 7
    Last Post: 03-26-2008, 04:58 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts