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: Trying to learn some swing.

  1. #1
    Member
    Join Date
    Sep 2012
    Posts
    98
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Trying to learn some swing.

    I am trying to learn some swing this week, one program I found to try and make was a simple GUI with checkboxes and buttons, which I have already made. The program would be used for selling computers at a base price -$500, and you can pick any combination of six peripherals. I have these boxes all made for the user to check off. I need to know where I need to implement the cost of these peripherals in the code. The main product should add together the peripherals that they have selected + the base cost of the computer. I am lost at where to stick in the cost of the peripherals. Do I do this in the actual codes for the Button that will be used to add them all up?
    Last edited by LoganC; October 24th, 2012 at 08:32 PM.


  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: Trying to learn some swing.

    What happened when you tried that?
    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
    Member
    Join Date
    Oct 2012
    Posts
    133
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default Re: Trying to learn some swing.

    not sure what u mean but i think u want to know how to calculate the price and stuff

    *content deleted by moderator*

    hwoarang, please read this: http://www.javaprogrammingforums.com...n-feeding.html
    Last edited by KevinWorkman; October 25th, 2012 at 06:13 PM.

Similar Threads

  1. Help me to learn java
    By leecher in forum Member Introductions
    Replies: 2
    Last Post: March 17th, 2022, 03:42 AM
  2. How to learn OOP
    By Alex L in forum Object Oriented Programming
    Replies: 7
    Last Post: December 8th, 2011, 11:53 PM
  3. [SOLVED] Do we need AWT to learn Swing? + One more question
    By beer-in-box in forum AWT / Java Swing
    Replies: 22
    Last Post: September 6th, 2011, 07:30 AM
  4. New to this..so lost trying to learn...
    By ryan1234 in forum Object Oriented Programming
    Replies: 5
    Last Post: September 21st, 2010, 05:35 PM
  5. here to learn and grow
    By cejay in forum Member Introductions
    Replies: 2
    Last Post: March 1st, 2010, 03:04 AM