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

Thread: Simple Text Editor

  1. #11
    Code Warrior Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n's Avatar
    Join Date
    May 2008
    Location
    4chan.org/g/
    Age
    20
    Posts
    3,836
    Blog Entries
    4

    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 05:06 AM. Reason: Edited

    Hatsune Miku ~❤❤❤
    初音ミク。~❤❤❤

  2. #12
    Newbie CSInTraining is an unknown quantity at this point CSInTraining's Avatar
    Join Date
    Oct 2009
    Location
    UK
    Posts
    5

    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.

  3. #13
    Code Warrior Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n's Avatar
    Join Date
    May 2008
    Location
    4chan.org/g/
    Age
    20
    Posts
    3,836
    Blog Entries
    4

    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

    Hatsune Miku ~❤❤❤
    初音ミク。~❤❤❤

  4. #14
    Newbie miami is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    2

    Re: Simple Text Editor

    where is the class "New" implementation ?

  5. #15
    Code Warrior Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n's Avatar
    Join Date
    May 2008
    Location
    4chan.org/g/
    Age
    20
    Posts
    3,836
    Blog Entries
    4

    Re: Simple Text Editor

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

    Hatsune Miku ~❤❤❤
    初音ミク。~❤❤❤

  6. #16
    Newbie miami is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    2

    Re: Simple Text Editor

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


    where is the definition for that object "New"

  7. #17
    Code Warrior Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n has much to be proud of Turk4n's Avatar
    Join Date
    May 2008
    Location
    4chan.org/g/
    Age
    20
    Posts
    3,836
    Blog Entries
    4

    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.

    Hatsune Miku ~❤❤❤
    初音ミク。~❤❤❤

+ Reply to Thread
Page 2 of 2
FirstFirst 1 2

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. javascript error in text editor
    By Divya in forum JavaScript and CSS
    Replies: 1
    Last Post: 08-04-2009, 09:08 AM
  2. Backup current text in textbox after x amount of time
    By Grue in forum Visual Basic Programming
    Replies: 4
    Last Post: 06-11-2009, 11:29 AM
  3. Text editor for teaching a novice?
    By Cicero480 in forum Software Development Tools
    Replies: 13
    Last Post: 04-05-2009, 01:39 AM
  4. C++ Text Editor Development
    By Natsuki in forum C and C++
    Replies: 7
    Last Post: 03-26-2008, 06:58 AM
  5. Replies: 3
    Last Post: 09-15-2007, 10:08 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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