Results 1 to 20 of 23
- 04-05-2009, 09:39 AM #1moostico246 Guest
i need help here..now, da quicker da better
Make a Swing version of your Monogram program. Use all pop-up dialogs; no printing to the screen or reading from it.
import java.util.Scanner;
public class Monogram {
public static void main (String[]args) {
//declare vars
String first, middle, last, monogram;
Scanner input = new Scanner (System.in);
System.out.println("Enter your first name: ");
first = input.nextLine();
System.out.println("Enter your middle initial: ");
middle = input.nextLine();
System.out.println("Enter your last name: ");
last = input.nextLine();
input.close();
monogram =String.valueOf(first.charAt(0)).toLowerCase()+Str ing.valueOf(middle.charAt(0)).toUpperCase()+String .valueOf(last.charAt(0)).toLowerCase();
System.out.println("your monogram is "+monogram );
}
}
- 04-05-2009, 03:07 PM #2
JOptionPane
Check out the JOptionPane class. It has a lot of methods that do what you're looking for (examples are listed):
JOptionPane (Java Platform SE 6)
How to Make Dialogs (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 04-06-2009, 02:24 AM #3moostico246 Guest
anyways, dat didnt really help, can i get someone dat actually knows wat ther doin to post somthing here.
- 04-06-2009, 02:29 AM #4
Member
- Join Date
- Apr 2009
- Posts
- 9
- Rep Power
- 0
You know your ill attitude to other members isn't going to inspire them to help you. Neither is re-posting the same thing over and over again.
It has already been stated that people are willing to HELP you with the code (which given how you have responded to them is more than you deserve) but not DO it for you. If you want someone to do your assignment for you I guess you are in the wrong place.
CJSLMAN is trying to help you do the assigment by pointing you toward relevant resources, it's obvious he does know what he is talking about, a little courtesy wouldn't hurt?
- 04-06-2009, 02:32 AM #5moostico246 Guest
anyways, wolf brother go suck on somthin, i need help with this assignment, hopefully someone might come through and help me out here.
- 04-06-2009, 03:39 AM #6moostico246 Guest
CAN ANYONE DO THIS quick
-
When is it due?
- 04-06-2009, 03:47 AM #8moostico246 Guest
tomorrow............... lol, its not lke ur gonna help
-
- 04-06-2009, 03:50 AM #10moostico246 Guest
aight so, ill be gud now, ma attitude changed, can u help now.
- 04-06-2009, 04:09 PM #11
We already did. Look at my post above. You're so wrapped up in somebody giving you working code that you haven't even noticed that there are examples that all you have to do is practically cut and paste.
Since you're not interested in programming, just drop the class and go for something your interested in (something related to biology).
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 04-06-2009, 08:43 PM #12moostico246 Guest
wat who r u to tell me, ur a piece of shit, and dis class is only an elective
- 04-06-2009, 08:45 PM #13moostico246 Guest
can someone juss write out the code, instead of bein an ass and making smart stupiddd commentsss
- 04-06-2009, 08:46 PM #14
Member
- Join Date
- Apr 2009
- Posts
- 9
- Rep Power
- 0
It's already been said that no one is going to do the code for you. I'm afraid all you find in this forum is a bunch of "asses" who make "smart stupid comments" to try and help you do the code yourself.
- 04-06-2009, 08:51 PM #15moostico246 Guest
da only asses here is really juss da same asses, n ur one of em, so stop bein an ass..
- 04-06-2009, 09:43 PM #16
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Look who's talking. There is so much sh1t coming out of your mouth I would swear you're doing a handstand.
- 04-06-2009, 10:55 PM #17
Member
- Join Date
- Dec 2008
- Posts
- 41
- Rep Power
- 0
-
I'm convinced that this guy really isn't in a programming class, that all he is is a troll getting his jollies from getting us all flustered. In fact I hope that this is so, because otherwise it would be depressing to think that our schools are producing someone so pathetic.
- 04-07-2009, 04:03 AM #19moose246 Guest
ok can someone help dis guy out
-


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks