Re: Displaying database results on a GUI in a JTextArea with button click
Please edit your post and wrap your code with
[code=java]
<YOUR CODE HERE>
[/code]
to get highlighting and preserve formatting.
Re: Displaying database results on a GUI in a JTextArea with button click
hi, thanks for your reply, i'm new to this site and accidentally deleted the post but i have set another one up under the same name as i have given this thread, any help you can give me would be great thanks, i have also but the code in the brackets as you have stated
Re: Displaying database results on a GUI in a JTextArea with button click
Can you be more specific about the problems you are having. This is a lot of code, most of which probably has nothing to do with the problem you are having.
Re: Displaying database results on a GUI in a JTextArea with button click
i wish i could trim the coding down but it's all revevant, what i need is to some how put the retrivefiletype class into the if(e.getSource==openButton) in the projectAssignment class which will make it so that when the open button is clicked it will get the hex values of the selectedFile, then i need it to somehow compare this data to a database of file signatures and then print out the corresponding file type in the row, for example, if the user selects a pdf file, the codng should get for example 25 40 46 34 from the selected file, and then match it with the pdf row in the database where it should then print the file type as (the file type of this file is: PDF file) in my JTextArea in the projectAssignment class, i am at a loss with this coding, i am at a brick wall
Re: Displaying database results on a GUI in a JTextArea with button click
Quote:
but it's all revevant
Make special testing drivers that set the values the user would enter to bypass that code.
What does the code do? Open a file, read some bytes compare those bytes to a table of bytes and find a match for those bytes that gives some info about the file.
Hard code as much of that as you can and work on one part at a time.
Not many people will want to work with this large of a program. Isolate and reduce each part of the program to a small program that is easier to work with.