If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

hey, can you guys help me with this hangman applet

Hey guys,

I need some help with a hangman applet and I figured this would be the place to go. Anyway, its the input I need help with, Im making a hangman game with a friend and Im doing the input while hes doing the other parts.
So we have the name of the films, books and tv programs for the game as follows in this data file which is saved as a notepad file. This is as follows;

book
cold mountain
book
stalingrad
book
behind the scenes at the museum
film
the thomas crown affair
film
psycho
film
the birds
film
mary poppins
film
the sound of music
tv
bbc news
tv
newsnight
tv
channel 4 news
tv
hollyoaks
tv
top gear
tv
not the nine o'clock news
tv
peak practice
book
harry potter and the philosopher's stone
book
catch 22
tv
columbo
book
far from the madding crowd
tv
ever decreasing circles
tv
the bill
book
private papers
book
the mill on the floss
book
jane eyre
tv
goodnight sweetheart
tv
fawlty towers
book
larry's party
tv
coronation street
book
northern lights
film
angela's ashes
tv
eastenders
film
the end of the affair
tv
frost
tv
red dwarf
film
the beach
book
angela's ashes
book
tis
book
alias grace
tv
top of the pops
tv
emerdale
book
cat's eye
tv
tarrant on tv
book
charlotte gray
tv
match of the day
tv
the simpsons
book
beloved
book
bird song
book
wild swans
book
fatherland
book
flaubert's parrot
book
brazzaville beach
tv
casualty
book
enduring love
book
possession
film
titanic
film
rugrats
film
the piano
tv
newsnight
tv
the royle family
tv
southpark
film
mousehunt
film
toy story
book
the hitchiker's guide to the galaxy
tv
brookside
book
the comedians
tv
only fools and horses
tv
neighbours
tv
friends
tv
frasier
book
tom jones
film
the green mile
book
i claudius
film
the sixth sense
film
american beauty
film
the talented mr ripley
film
topsy turvy
book
for whom the bell tolls
book
the house of the spirits
film
double jeopardy
film
stigmata
film
muppets from space
book
a christmas carol
film
sleepy hollow
book
matilda
book
fermats last theorem
tv
buffy the vampire slayer
tv
star trek
film
toy story 2
book
gulliver's travels
book
great expectations
tv
dinnerladies
tv
heartbeat
tv
london's burning
tv
midsomer murders

As you can see each category is identified by the keyword 'book', 'film', or 'tv', following a line containing the corrosponding title. All text is lowercase and it can be assumed that all text in the file is valid. Also, the info is in no particular order and contains an unspecified number of items. The hangman program we have must read this file of information and then store it in appropriate data structures.
The way we designed the program, when the applet is run the user will be presented with an applet screen asking them to select a book(1), a film(2) or a TV programme(3). The user will put in their selection and click the enter button. This input box will be displayed at the bottom of the applet screen with the enter button to the right. The user can put in a selection of 1, 2, or 3 and if any other input is provided a messsage will be displayed saying 'invalid input - select a book(1), a film(2) or a TV programme(3). The game will only proceed when a valid input has been inputted. So when a category is correctly inputted, a title from that category will be selected at random.

Am I right in thinking this is the the input section of the hangman game complete. After this my friends task will be to load the scaffolds and man with the entry of the selected book etc.

Although how do I do my section of this, I really am stuck and not sure where to even begin. We're meeting up tonight for him to look at my code so I need to have it completed real soon. You guys seem experts on here so any help is greatly appreciated.
Im using JCreatorLE to make this program if you need to know that.
So please help me out here, cus I really am stuck with this one.

Ive tried like you said there, but I am really stuck and I really need this done as soon as possible so we can move on. I really have no idea where to go from here and now Im starting to panic. Is this a big load of code for this section of the hangman game Ive been assigned to. Im trying to find out more about user input but Im totally lost.
Really any code you can provide me with is much appreciated, cus I really am very very lost.
With thanks,
Rik