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 5 of 5

Thread: Newbie looking for a nudge in the right direction

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Newbie looking for a nudge in the right direction

    Hello folks, I am pretty new to Java programming. I've written two small simple programs. I am not fully aware of all of the capabilities of Java yet, so I am having a hard time planning the path I should take to complete my new project. I am basically building a planning program. Imagine a grocery store shelf that's 10 feet wide and 8 feet tall. I have limitations on where the shelves can be placed, and how many items can be placed on a shelf, but I have a huge variety of products from soft drinks, to toilet paper 4 packs to chips, etc. I am trying to write a program with a grid, where I can just drag and drop scale pictures of the products to develop the most efficient plan of placement for the list of products I have for each shelf. I'm just not sure of how to create a nice grid and these scale pictures that can be placed on this grid. All I am looking for is some direction so I know where to start my research. I would greatly appreciate any help.


  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: Newbie looking for a nudge in the right direction

    The honest answer to this question, and one you might not like very much, is that you might be biting off more than you can chew. What you've described involves quite a bit of custom painting and/or GUI code, which might not be obvious to a novice. It might be better to work through the basic tutorials and get some simpler animations under your belt before you try to tackle this project.
    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
    Junior Member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Newbie looking for a nudge in the right direction

    I appreciate the honesty, and I can agree it will be a bit difficult. I tend to find myself gravitating towards the more complicated projects, that way even if I fail I can learn a lot. I don't have a deadline for this, it's just sort of something in my free time, so I don't mind if it's a slow process if it's going to be packed full of learning.

  4. #4
    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: Newbie looking for a nudge in the right direction

    A common mistake novices make is trying to tackle bigger projects than they can handle, which just leads to frustration.

    But if you really want to continue pursuing this project, the best thing to do is to break it down into really small pieces.

    Your first step might be the model. Forget about the GUI for a second. Can you build a program that uses a grid internally to place certain objects? Maybe print the location of each object in the grid to the console window.

    Or you could start with a more basic GUI. Can you draw a grid of randomly colored squares? Now can you combine those squares into rectangles or whatever other shape you want to place?

    The key is to start with small pieces that you know how to do. What is the absolute smallest very next thing you know you have to do? Do it, and repeat the question to yourself. That's how larger projects are done.
    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!

  5. The Following User Says Thank You to KevinWorkman For This Useful Post:

    Hm88 (December 19th, 2013)

  6. #5
    Junior Member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Newbie looking for a nudge in the right direction

    That's all I needed, I do appreciate it.

Similar Threads

  1. Can Anyone Point me in the right direction?
    By ImyMTD in forum AWT / Java Swing
    Replies: 8
    Last Post: May 4th, 2013, 02:29 AM
  2. Pointer... in the right direction please
    By Zace66 in forum The Cafe
    Replies: 1
    Last Post: April 30th, 2013, 05:32 PM
  3. Replies: 10
    Last Post: April 21st, 2013, 09:28 AM
  4. Direction Needed for Newbie
    By SWWeatherGuy in forum Java Theory & Questions
    Replies: 0
    Last Post: September 30th, 2012, 04:08 PM
  5. Direction,
    By Time in forum Algorithms & Recursion
    Replies: 2
    Last Post: May 21st, 2010, 05:21 PM