Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: beginer

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default beginer

    I was trying to write a program that will accept values and transform the scores to grade. Like 70 and above will be given A from 60 to 69 is B, from 50 to 59 is C, from 40 to 49 is D and below 40 is F. I have defined the variables, for the textfield, am confused on how make this hapen on just a click of the comand botton.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: beginer

    Can you create a JButton that simply prints something to the console when it's clicked?

    If you can't, post an MCVE showing exactly what you've tried and where you're stuck. Note that this shouldn't be your whole project, but it should be complete enough that we can copy and paste it into our own editors to try out.

    Recommended reading: How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: beginer

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

Similar Threads

  1. java beginer
    By anuj_dup in forum Member Introductions
    Replies: 1
    Last Post: July 5th, 2012, 09:17 AM
  2. HELP WITH MY BEGINER JAVA CODE..
    By nfs1mostwanted in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 2nd, 2012, 12:01 PM
  3. Arrays (Beginer)
    By stephen6292 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 16th, 2012, 09:13 AM
  4. beginer neeeds helppppp!
    By NewAtJava in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 11th, 2011, 06:33 PM
  5. Yet another beginer help post...
    By Gondee in forum JDBC & Databases
    Replies: 3
    Last Post: November 14th, 2010, 02:31 AM