File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes JAVA GUI Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "JAVA GUI Problem" Watch "JAVA GUI Problem" New topic

JAVA GUI Problem

Doug Cates

Joined: Jun 16, 2007
Posts: 7
I am trying to complete an assignment that converts all lower case letters to uppercase in a GUI. This is what I have so far:

I think that I am doing something dumb in the


Any help would be very appreciated.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

These three lines:

g.drawString( String s = "The Gators Rule";
String s2 = s.toUpperCase();
System.out.println(s2); 20, 30 );

Look like the victim of a bad cut and paste. The first line is only part of a valid statement; the middle line is a complete valid statement, while the last line is a valid statement follows by what looks like the missing part of the first line.

Now, if this much isn't obvious to you, then it sounds like you have some pretty basic larnin' to do. Do you understand methods, method calls, arguments, stuff like that? If not, then that's where we've got to start.

[Jess in Action][AskingGoodQuestions]
Doug Cates

Joined: Jun 16, 2007
Posts: 7
Thanks, you are right. I wrote part of it, got some help and then copied the two together. Been spending too many hours doing this. I figgered it was something simple. Thanks
I agree. Here's the link:
subject: JAVA GUI Problem
It's not a secret anymore!