Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 15th, 2006, 7:52 PM   #1
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
Basic Text Editor

This is a basic text editor I developed using Java. It's nothing major but I hope I can get you guys opinion on it and my style of coding in Java so far. This took me about 2 hours to do with testing and all that.

I've been on Java for 4 months and this is probably biggest thing right now I can do. I attached it as a text file but you can just change the extension to .java, compile, and then run it.

I know there are millions of text editors available but this was a test to see if I could really do it without any references or help. I used SciTe to develop it.
Attached Files
File Type: txt Pad.txt (8.6 KB, 27 views)
Toro is offline   Reply With Quote
Old Jun 15th, 2006, 9:11 PM   #2
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Compiles fine, doesn't run for me though. I get:

Exception in thread "main" java.lang.NoSuchMethodError: main
Press any key to continue...

Didn't bother trying to fix it, as it might be just me. Looks good though, needs some commenting
Booooze is offline   Reply With Quote
Old Jun 15th, 2006, 9:15 PM   #3
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
lol, yes. I have a habit of commenting very little. Sorry about that.
Toro is offline   Reply With Quote
Old Jun 15th, 2006, 9:35 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road

Quote:
Originally Posted by long ass first line in the window
C:\Borland\JBuilder2005\jdk1.4\bin\javaw -classpath "C:\Documents and Settings\David\jbproject\Pad\classes;
C:\Borland\JBuilder2005\jdk1.4\jre\javaws\javaws.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\charsets.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\dnsns.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\ldapsec.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\localedata.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\sunjce_provider.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\im\indicim.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\im\thaiim.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\jce.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\jsse.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\plugin.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\rt.jar;
C:\Borland\JBuilder2005\jdk1.4\jre\lib\sunrsasign.jar;
C:\Borland\JBuilder2005\jdk1.4\lib\dt.jar;
C:\Borland\JBuilder2005\jdk1.4\lib\htmlconverter.jar;
C:\Borland\JBuilder2005\jdk1.4\lib\tools.jar" pad.Pad
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 15th, 2006, 10:06 PM   #5
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
I had the main method in a seperate class. Sorry about that. Here's an uploaded version of my text editor anyways.
Attached Files
File Type: txt Pad.txt (11.1 KB, 12 views)
Toro is offline   Reply With Quote
Old Jun 15th, 2006, 11:22 PM   #6
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Works now. Nice job, looks good.
Booooze is offline   Reply With Quote
Old Jun 15th, 2006, 11:33 PM   #7
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
Thanks for the compliment, Boooze.
Toro is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC