Results 1 to 2 of 2
  1. #1
    noom14921992 is offline Member
    Join Date
    Apr 2012
    Posts
    1
    Rep Power
    0

    Default First post. with a java question

    well hello to all. i am new to this forum, i joined because i am having some problems with a program i am trying to write.

    i am in computer programming class, and we are having to write a program that reads information from 2 files. there has to be a dialog box that lets the user choose which file to read from.

    once the choice is chosen, the program has to take the information from that file and turn it into a tri-color flag. the orientation of the flag (vertical/horizontal ) depends on the chosen file.

    it is not an applet. it has a flag class that will hold the information from the file. and it has a constructor/tester. and then there is the viewer.

    so i know the basics of what i want this program to do. but i dont know where to start as far as the actual coding goes. i am sure i should know more than i do, but my teacher is rubbish. i have a decent starting place i think, but it does not run nor does it completely compile.

    my tester works, but my other components do not.

    my classes are the tester/constructor, the flagPanel and the flags

    i guess i should ask where should i put the "thing" that asks the user what file to load? would that go in my flagPanel class?
    and i g=have all my gets and sets in my flags class.
    and the Tester just has the code to display the box all this will go into.

    thanks! and sorry for the long post.

    any advice would be greatly appreciated.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,242
    Rep Power
    19

    Default Re: First post. with a java question

    sorry for the long post.
    Post length is not the issue here. The lack of capital letters at the start of each sentence and for the singular first person 'I' makes it difficult to read.

    where should i put the "thing" that asks the user what file to load?
    Read the API for JFileChooser and follow the link to the tutorial on How to Use File Choosers. Once you have gone through that tutorial, you will be better placed to make an informed decision.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. First post-Simple question help please
    By Teesea in forum New To Java
    Replies: 2
    Last Post: 08-11-2011, 01:03 PM
  2. Read this SMALL post BEFORE you submit a question.
    By AcousticBruce in forum New To Java
    Replies: 11
    Last Post: 01-10-2011, 11:22 AM
  3. Replies: 3
    Last Post: 05-04-2009, 03:15 AM
  4. quick pre/post increment question
    By xtrmi in forum New To Java
    Replies: 4
    Last Post: 02-01-2009, 05:47 PM
  5. The first post and first question
    By m_kaleia in forum New To Java
    Replies: 8
    Last Post: 07-19-2008, 06:27 PM

Posting Permissions

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