question about swing

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
aaron217
Posts: 3
Joined: Sun Oct 03, 2004 10:21 pm

question about swing

Post by aaron217 »

Hello,

For my homework, I'm supposed to convert a Java applet to swing. Ive downloaded the BreezySwing and TerminalIO files - and copied these .jar files to lib/ext. I then set my path to java.sun's suggestion.

Im getting the compile error message:

Code: Select all

C:\TextPad for Java OOD\Ch3\Robotz.java:6: ';' expected
import java.awt.*;
^
1 error

Tool completed with exit code 1
My question is...what am I missing, or failing to do? Also, does TextPad recognize these I/O packages?

(I've done a search for swing, and looked at some posts...none of them seemed to address this issue.)

Thanks.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Check the line above that import statement whether it lacks the ;

No, Textpad does not recognize any java stuff.
It just calls the compiler who then does the work.
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

You can also try compiling from the command line to see if it's a path/code issue or a TextPad issue.
I choose to fight with a sack of angry cats.
aaron217
Posts: 3
Joined: Sun Oct 03, 2004 10:21 pm

Post by aaron217 »

Alright, thanks for the help you guys! I fixed my error and got it working later on :oops: .

I like Java better than the other languages, but this is the 2nd time Ive installed it which makes this the 2nd time Ive had problems starting out. I kinda wished that they would pre-package their sw like MS VisualStudio (all is there when installed), oh well :( .

Again, thanks for the quick responses. :wink:
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Install Netbeans if you want an IDE ...
Doqnach
Posts: 3
Joined: Mon Oct 11, 2004 9:42 pm

Post by Doqnach »

I've used JBuilder and Netbeans and I must say that Netbeans is by far the better IDE... it may be a tad slow (hey, it's written in java so you could expect that ;-]) it does give you the best support! (the build in javadocs creator is very good, and the way it works with packages is also much better.)
aaron217
Posts: 3
Joined: Sun Oct 03, 2004 10:21 pm

Post by aaron217 »

Well, guys, what can I say but thanks a lot for your help and knowledge.

Ive heard of and seen NetBeans, but thought it was way over my novice level :lol: , and didnt want to dl something that I wouldnt use (or understand using). Looks like I'll be dl'ing NetBeans soon!

Im blown away by the amount of help found here...thanks again!
Post Reply