Page 1 of 2 12 LastLast
Results 1 to 20 of 23
  1. #1
    moostico246 Guest

    Default 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 );

    }
    }

  2. #2
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    7

    Default 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,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  3. #3
    moostico246 Guest

    Default

    anyways, dat didnt really help, can i get someone dat actually knows wat ther doin to post somthing here.

  4. #4
    Wolf_Brother is offline Member
    Join Date
    Apr 2009
    Posts
    9
    Rep Power
    0

    Default

    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?

  5. #5
    moostico246 Guest

    Default

    anyways, wolf brother go suck on somthin, i need help with this assignment, hopefully someone might come through and help me out here.

  6. #6
    moostico246 Guest

    Default

    CAN ANYONE DO THIS quick

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    When is it due?

  8. #8
    moostico246 Guest

    Default

    tomorrow............... lol, its not lke ur gonna help

  9. #9
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by moostico246 View Post
    tomorrow............... lol, its not lke ur gonna help
    No, not with your attitude, but I can't help following this thread. It's kind of like the same morbid curiosity that forces us to look at car crashes.

  10. #10
    moostico246 Guest

    Default

    aight so, ill be gud now, ma attitude changed, can u help now.

  11. #11
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    7

    Default

    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).

    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  12. #12
    moostico246 Guest

    Default

    wat who r u to tell me, ur a piece of shit, and dis class is only an elective

  13. #13
    moostico246 Guest

    Default

    can someone juss write out the code, instead of bein an ass and making smart stupiddd commentsss

  14. #14
    Wolf_Brother is offline Member
    Join Date
    Apr 2009
    Posts
    9
    Rep Power
    0

    Default

    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.

  15. #15
    moostico246 Guest

    Default

    da only asses here is really juss da same asses, n ur one of em, so stop bein an ass..

  16. #16
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    Look who's talking. There is so much sh1t coming out of your mouth I would swear you're doing a handstand.

  17. #17
    timkd127 is offline Member
    Join Date
    Dec 2008
    Posts
    41
    Rep Power
    0

    Default

    Quote Originally Posted by moostico246 View Post
    da only asses here is really juss da same asses, n ur one of em, so stop bein an ass..
    you should take da english class

  18. #18
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    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.

  19. #19
    moose246 Guest

    Default

    ok can someone help dis guy out

  20. #20
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •