GeeCON Prague 2014*
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
Author

JAVA GUI Problem

Doug Cates
Greenhorn

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

portion.

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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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
Greenhorn

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
 
GeeCON Prague 2014
 
subject: JAVA GUI Problem